6/27/2025 3:12 AM | |
Joined: 5/30/2013 Last visit: 8/20/2025 Posts: 5 Rating:
|
Dear experts, I would like to ask you about freeport communication. So far, I have only used the functions of standard libraries such as Modbus RTU and TCP. I need to migrate an S7-200 PLC to an S7-1200. Port 0 of the S7200 is configured in freeport mode. This is used to communicate with an electronic card, manufactured for the application, which receives signals from three position transducers. The program in the S7200, I attach the program extract, I have managed to understand it, an event 8 of character reception in port 0 is associated with an interrupt (INT_1), where a frame of 14 characters is saved in a memory buffer, when the 14 are counted, the data is saved in a segment of MW memories, a byte with value 1 is sent to the card with the XMT instruction, and the character counter is reset, to then restart the sequence when the next interrupt event occurs. I created a program on the S7-1200, CPU1214c v4.5, and a CM 1241 module (RS422/485) v2.2. The program is attached. To my surprise, with this simple program and the RCV_PTP function (on network 7), I can read the data, all 14 characters. There are no errors, and the status code is 0. However, with the SEND_PTP function (on network 2), the error bit is 0, and the status codes are 7000 and 7002. I think it's because I don't know how to create the trigger when character 14 arrives.If I don't use the RCV_CFG function, in network 6, I get the same result. The valuesof the 14 bytes in the S71200 are the same as in the S7200. But there are moments, a few milliseconds, like a blink, when the values become severely distorted. I would greatly appreciate your help can create an equivalent program for the S71200, so as not to have these distortions in the readings.------------------------------------------------------------------------------------------ AttachmentPrograms_S7200_and_S71200.pdf (137 Downloads) |
Last edited by: Moderator_Lan at: 06/27/2025 07:22:08New subject after splitting |
|
Follow us on