11/27/2014 1:16 PM | |
Posts: 40 Rating:
|
helloDarrenLloyd, I have set up the TSEND_C (and TRCV_C) blocks successfully and they seem to connect to the target devices (the status goes to 16#7004). And when I do a send request the status goes 16#7002 then 16#7004 which seems to indicate that data was sent. (It seems that I can connect and send data to the other 3rd party device as well but that behaves in the same way). If i understood correctly, you are trying to connect plc with 3rd party device(keeping plc as client and 3rd party device as server) .If you find TSEND_C and TRCV_C a bit confusing , you can use TCON,TDISCON,TSEND,TRCV which is located at same in open tcp communication instruction.In this for establishing connection between plc and 3rd party u shold use TCON . In TCON block you will find REQ,ID,CONNECT. For REQ u can use first scan bit or u can any memory.For ID use 1.For CONNECT , u should create a DB ,it should not be a global DB ,you should use tcon parameter DB.In that DB you should enter the SERVER(3rd party) IP and PORT id in REM IP ADD and REM PORT ID . For confirmation of your plc connection establishment ,u should set a memory .Done bit will open only one scan cycle if connection established .so using DONE bit u should set a memory . (Infact I have to communicate with another 3rd party printer using open ethernet also) Yes you can connect another 3rd party device with the plc .For this you have to create another TCON and others where similar to above.EXCEPT CONNECTION ID .you should change your ID as 2. For TSEND and TRCV .It will be similar . You can do tat in your own regards prasanna gk |
11/28/2014 6:52 AM | |
Posts: 40 Rating:
|
hello You can refer this forum .am attaching the link here/tf/WW/en/Posts/49723#top regards Prasanna Gk
|
7/4/2017 1:42 PM | |
Joined: 6/19/2017 Last visit: 9/6/2024 Posts: 8175 Rating:
|
New question published by RamAMAT is split to a separate thread with the subject Want to communicate with S7 1200 through open TCP socket program. Best regards |
Follow us on