12/9/2013 4:11 PM | |
Posts: 51 Rating:
|
Another. |
12/9/2013 4:12 PM | |
Posts: 51 Rating:
|
And another. |
12/11/2013 11:14 AM | |
Posts: 51 Rating:
|
Hello, I have looked at the sample onhttps://support.automation.siemens.com/WW/llisapi.dll?func=cslib.csinfo&lang=en&objid=67196808&caller=view. I am trying to do this: S7-1200 has to send a string ('MyString') over TCP to my router (192.168.1.1) on port 3001. I have problems with doing this. Can anyone tell me how to do this wright? Can anyone please attache any sample program for this?!! Best regards
|
12/11/2013 4:14 PM | |
Joined: 7/7/2010 Last visit: 8/22/2024 Posts: 15105 Rating:
|
S7 string is not a tcp string. A tcp string is a series of characters. To get to the characters within your s7 string "MyString", you need to access the absolute address of your string. If the DB containing your string is set up for symbolic addressing, you will need to change it (V12) or recreate it (V11) using s7-300/400 compatibility mode. Then let's say the db (DB1) only contains "MyString" with the actual string length you are sending is 30 characters long. P#DB1.DBX2.0 BYTE 30 is what you pass to your TUSEND block for your characters. It starts at the first character within the string, and passes in the 30 character length of your string. Hope this is helpful. If you do not have wireshark, I suggest checking it out to see what the plc is sending while you iterate through your project solution. It is difficult to know when it starts sending and the router is ignoring it because of a malformed instruction. |
science guy |
|
12/11/2013 10:27 PM | |
Posts: 51 Rating:
|
Hello, I have managed to do semthing. What do you think, will it work? Best regards
AttachmentSEND STRING_S7-1200.zip (222 Downloads) |
Follow us on