2/12/2021 10:12 AM | |
Joined: 12/2/2019 Last visit: 11/11/2023 Posts: 17 Rating: (0) |
Good morning, I am new in PLC programming and I am solving problem with communication via ethernet. I am using TCON, TSEND and TRCV for this. My TCON is ok, I can connect to external device, but device take type of string, which is not working. For "start" device I should send <EOT>01G000<ETX>u When I try to send it like a string, it is not working. Should I convert it to something else, or how should I send it properly? Thank you for help, I include manual for device. AttachmentFCO752 Fbus Commands Issue 12a (2).pdf (448 Downloads) |
2/12/2021 11:22 AM | |
Joined: 12/2/2019 Last visit: 11/11/2023 Posts: 17 Rating: (0) |
I tried to do this, but it is still not working, may you know what am I doing wrong? Thank you for your time. |
2/12/2021 11:23 AM | |
Joined: 12/2/2019 Last visit: 11/11/2023 Posts: 17 Rating: (0) |
|
2/12/2021 11:32 AM | |
Joined: 3/5/2014 Last visit: 8/5/2022 Posts: 5521 Rating: (1054)
|
hi Dufino, I try to explain, what the other mean. S7-String is different to other string-formats. The first 2 Byte contain information about the length of the string, the maximum length and the actual length. This is why a string[16] is 18 bytes long. Non-Siemens-devices don´t know that and missinterpret these 2 bytes as user-data. TIA provides instructions for this case. In extended instruction you will find a folder called String + Char. In there is a function that converts a string to array of char. Use that and send the array of char. Also check for an error of the TSEND-block. How do you evaluate the status of system blocks in STEP 7 (TIA Portal)?hope this helps, regards, |
Last edited by: mopS04 at: 02/12/2021 11:37:35FCK WAR! |
|
2/12/2021 2:23 PM | |
Joined: 3/5/2014 Last visit: 8/5/2022 Posts: 5521 Rating: (1054)
|
Do you get the DONE-Bit? |
FCK WAR! |
|
Follow us on