Search the Community
Showing results for tags 'somachine'.
Found 29 results
-
how read data from modbus read_var function
saruans posted a topic in Modicon / Telemecanique / Schneider Electric
hello, Somebody have suggest how need read data from slave using modbus RTU. I am using M241 PLC and read_var function. The picture you can see my PLC program. The data of slave is placed 3394 address. Then I try to read, always "READ_VAR" function get "CommError" which number is 254 that means "The detected operation error contains protocol- specific code" and "OpenError" which number is 3 that means I don't know. How need read from slave data, which modbuss adress is 3394? -
How do I setup a Read_Var in SoMachine Basic ?
-
Hi all, Is it possible to simulate LMC058 PLC with ethernet in soMachine software. I want to test the logic written in PLC which uses tcpudp library.
-
Hi, I am working wih 251MESE and somachine 4.3 And I am developing an application and the user who is going to use it needs to donwload a graphic that appears on the webvis, with all the information that it contains, does anyone done this before? How? I need some tips. I have the webvisu up and running I need something like download button to be able to download the info. Thanks!
-
SoMachine, Web Visu download csv file
sst posted a topic in Modicon / Telemecanique / Schneider Electric
Hello I have a M251, running a webvisu. I have created a program to create a test report to a *csv file and store it on sd card. What I want to do next is to allow the user to download the * csv from the webvisu and not via ftp client like Filezilla. On codesys forums I see there are file up and download options for buttons (click behaviour) but they are not available in Somachine 4.3. One option I am considering is using the TCP server and steam the file manually from a button click. I dont want a ftp client as now the customer will then needsoftware on his pc, this plc is a portable test system and will be controlled by many different pc's. Is anyone aware of a simpler way to do this? -
How to read PacDrive / SoMachine Motion program scan / execution time?
Transistor posted a topic in Modicon / Telemecanique / Schneider Electric
SoMachine Motion Logic Builder V4.31. Can anyone guide me on how to read the execution time of the STL logic in my application? Thanks. -
Somachine ethernet port
ETR Automazione srl posted a topic in Modicon / Telemecanique / Schneider Electric
Hello, i need more information about possibility to connect a LC28 CPU with OpenVPN with Mikrotik. I checked tecnical information about TCP port and i wrote the NAT routes on the Mikrotik. I saw a little exchange of bit over 1217 and 1105 ports, but my Somachine (installed over VM) coudn't connect with PLC. Everything works fine with a local connection. We haven't any problem with other PLCs and our VPNs (Siemens, B&R, Mitsubishi). Someone have more information about TCP/UDP ports about Somachine protocoll ? Best regards, Ennio -
Export symbols from SoMachine Motion for import to OPC server
Transistor posted a topic in Modicon / Telemecanique / Schneider Electric
This is hard work! I've installed the CODESYS OPC Server V3 in the hope of using it to communicate with my Schneider PacDrive LMC. Apparently the PLC doesn't support OPC tag browsing so I need to export the symbols from the SoMachine Motion project file in a format that the OPC server can use. I've got the Symbol Configuration panel open and can see the symbol tree. What do I do next?-
- somachine motion
- opc
-
(and 1 more)
Tagged with:
-
M221 & SoMachine Basic - ANALOG INPUT SCALING
horvatmiha posted a topic in Modicon / Telemecanique / Schneider Electric
Hello! I am new at PLC programming. I am using TM221CE16R PLC with TM3AI8 analog input module and SoMachine Basic v1.6. I am trying to scale analog input value. I am using 4-20 mA pressure sensor. I managed my wiring so that I get raw values in SoMachine Basic. But I don't know how to scale these values to usable values. My sensor works in range 0 - 16 bar. What is best way to get values? Is it PID function block or multioperand function block using equations to get range 0 - 16? I will appreciate your help. Thanks in advance! -
M241 - Modbus TCP - problema reading analog inputs (#300001)
horvatmiha posted a topic in Modicon / Telemecanique / Schneider Electric
Hello! I am new at programing PLCs. I am using TM241CE24R PLC with TM3AI4 analog input module. I can successfully read temperature from 4-20 mA sensor. I want to communicate with my PC (SCADA) via Modbus TCP. For testing purposes I am using CAS Modbus Scanner. I can read digital inputs, coils and holding registers successfully. Problem is that I can't read analog inputs (#300001 etc.). I have nothing defined in GVL list. Is this causing problem? I also don't have any Modbus TCP Slave device in Ethernet_1. But how can be all the other registers read successfully? Please take a look at screenshots below. Also check Error message from CAS Modbus Scanner. Where is problem? Please help. Thanks in advance!- 5 replies
-
- m241
- tm241ce24r
-
(and 4 more)
Tagged with:
-
SoMachine Basic Modbus Read_Var help
JohnB315 posted a topic in Modicon / Telemecanique / Schneider Electric
Hi guys, I have an M221 and trying to read process data from a HACH controller via Modbus 485. In the Read_Var function block I need to configure ObjType, FirstObj, Quantity and IndexData. Slave ID is 3 and I am using SL2. So, say if I wanted to read to following registers, Register #40001, Data Type Integer, Length 1, Description- Sensor Measure Register #40005, Data Type Float, Length 2, Description - Sensor Temp Register #40007, Data Type String, Length 6, Description - Sensor Name what do I put into the Read_Var function ? I am completely new to this and it's just not clear to me. Thanks John- 7 replies
-
- somachine basic
- m221
-
(and 1 more)
Tagged with:
-
BLOCK MOVE VALUE IN %MW#.... TO %MW#... IN SOMACHINE v4.3
KY WONG posted a topic in Modicon / Telemecanique / Schneider Electric
Hi, I am learning on Schneider PLC Programming. May I know is the Schneider PLC Programming have a same function of "Block move" in Mitsubishi PLC which can move a few number of address value to another address in once time. What is the code of it?Example, I wish to move %MW1 (Int) until %MW10 (Int) to %MW100 (Int) until %MW110 (Int). Is there any code can done it in once? I am using Schneider PLC TM241 model with Somachine V4.3 Programming Software. @Wasan, Hi, Do you familiar with Schneider PLC Programming? -
Time variable comparison. IF T#3S <= 0
Transistor posted a topic in Modicon / Telemecanique / Schneider Electric
This isn't urgent but a TIME value is failing a comparison test for me. t_delay : TIME; // Declaration ----- IF t_delay <= 0 THEN t_delay := T#3S END IF If I modify the variable value to T#2S the IF sets it back to T#3S. Internally the TIME variables are integer. Why would a compare not work as I intend? Many thanks. -
hey, I'm making a program to controlle mutliple machines. But the problem is that i'm working on 2 plcs to controll it all, but there are some %MW that i need in both PLCs. Is there a way to connect the PLCs so they share these %MWs to both PLCs know what value is in it?
-
Hi Everyone, I just finished my first project and I don't know how to make comments next to my "actions". I'm using SFC. I'm use to writing C code so this is so different!
- 2 replies
-
- how to
- how to comment
-
(and 2 more)
Tagged with:
-
changing time of schedule block
wouter94 posted a topic in Modicon / Telemecanique / Schneider Electric
Hi, I'm working in so machine basic v1.5 and I'm wondering if it is possible to change the start time and stop time in a schedule block with a %MW. So is there a possibility to for example say %CH0.??? := %MW5 in an operation block? And is there a page where u can see al the possible codes. I already discovered that %TM0.P changes its preset but i don't find a list of al those possibility's. -
"Ladder Logic" internal contact set-up
MikeOrsini87 posted a topic in Modicon / Telemecanique / Schneider Electric
Hi Everyone, I'm working on my first PLC program and I have gotten my hands on some ladder logic I'm trying to duplicate. I'm using SoMachine 4.1 and have started a new Ladder Logic diagram POU. I'm curious on how do I create internal contacts. EXAMPLE: 24v--------l START BUTTON l----------------( COIL A)----- --------------l COIL A CONTACT 1; attached to a real output, solenoid valvel-------------l COIL A INTERNAL CONTACT TO CLOSE l---------------- Are there standards for numbering and labeling? I'm seeing L and U inside coil contacts. Does this have an underlying meaning according to standard? Is there a RTO function inside SoMachine 4.1- 1 reply
-
- ladder logic
- somachine
-
(and 1 more)
Tagged with:
-
I just started working with somachine basic V1.5 SP1. I made a little program inside a POU with ladder. But when I open the simulator nothing seems to work. When I activate an input it doesn't seem to do aanything except making my contact green but it doesn't opperate annything that is placed behind it. Can someone tell me why that is?
-
Hi Everyone! Where are my experts? I am undertaking a project at work. The project contains analog style motor positioning circuits (operational amplifiers, integrators, and other PI elements). Not that this is relevant to the post yet ;) .It's my first PLC project ever! I am using the Schneider M258 with SoMachine 4.1 The PLC is talking to SoMachine via Ethernet (obviously I have a router between the PLC and my pc).I can Login and run the first POU I created. It's a simple And logic circuit for now. I have a co worker (c programmer) agreeing to help me pass data from my PLC to a browser screen. Although he's not familiar with PLC he's quite skilled writing code. He has wrote a Modbus protocol which allows him to interpret Modbus commands on his desktop. 1) Do I Need any special hardware to pass the data out of the PLC into the Router then into his browser. 2) As a trial can I send him MODBUS commands regarding my AND circuit? 3) How do I create such a command? 4) Is it possible for him to send me Modbus commands to change variables inside my program? 5) Are there web browser "plug-ins" for this idea? Thanks for reading and hopefully all of you can help me answer some of these questions.
- 1 reply
-
- modbus tcp/ip
- communications
-
(and 4 more)
Tagged with:
-
Hello, I have problem with math operation div. I attached picture. In the picture you see I try number 9863 div 100 and answer I get 98, but to me need 98,63. How need do what I get answer under the cable?
-
M241 PLC SoMachine Webvisualization
saruans posted a topic in Modicon / Telemecanique / Schneider Electric
Hello, Maybe somebody could give to me suggest how need to insert Photo or picture in the page HTM? I am using SoMachine V4.1- 1 reply
-
- webvisualization
- somachine
-
(and 1 more)
Tagged with:
-
How To use Timer Pulse in SOmachine
Arum posted a topic in Modicon / Telemecanique / Schneider Electric
Hello All, I am quite new using SoMachine version 1.5. I am just trying to use Timer Pulse Fucntion block. I my understanding the timer pulse function block can generate pulse in the output. Hereby I attach the programm ive made. In this program, i want to add %MW0 by 1 until 10 second. I expect the result is 10 but when I simulate the program, it add 10 in every second. Why this is happend? Do I have a wrong understanding about the timer pulse. When I read the help I think this timer is the same as timer on. Thank you for your help Regards, Arum -
Conveyor Speed Control By Using PID Control in PLC
mrtasln01 posted a topic in Modicon / Telemecanique / Schneider Electric
Hi,friends. I have a project which is about control of speed.When I do this ,I need to use Schneider PLC with M238 by using PID Controller.I decided to control speed of electric motor of this PLC . Is there any source material or anyone who struggled with this before for this project? -
Hi I have a device that requires ascii string to be sent to read or write specific variables. Below is the format I am using a m241 and serial port 2 and connecting by 485 2 wire. Only n would be used as a variable to change speeds. only problem is I cant find how to send the whole string. Write_var seems to only let me send a single word. any help would be appreciated. thanks
-
Run/Stop modes with somachine
DiegoDVG posted a topic in Modicon / Telemecanique / Schneider Electric
Hi, in my proyect i need integrate 2 modes, Auto abd Manual, but i have a doubt if i can use GEMMA (run/stop modes guide) I don't now if the software integrate this functions or I need integrate a subgrafcet (each mode need one) Thanks