For an application I have the following setup:
- S7 400 PLC with CP card
- 1 PC with ethernet card sending data via UDP to the PLC
The PC sends data (500 bytes) every 10 milliseconds to the CP card.
I need to synchronize my data processing in the CPU with the data packets received. Having an OB which runs every 10 ms is not good enough, because than the data receiving and data processing is not synchronized, resulting in occasionaly loosing data packets or processing data packets twice.
Due to other program parts, I expect the OB1 cycle time to be significantly higher than 10 ms.
Is there a way to have my program synchronized with the received data? Would it be possible to let the CP card generate an interrupt, which triggers an OB when new data received?
Your help is very much appreciated.
- S7 400 PLC with CP card
- 1 PC with ethernet card sending data via UDP to the PLC
The PC sends data (500 bytes) every 10 milliseconds to the CP card.
I need to synchronize my data processing in the CPU with the data packets received. Having an OB which runs every 10 ms is not good enough, because than the data receiving and data processing is not synchronized, resulting in occasionaly loosing data packets or processing data packets twice.
Due to other program parts, I expect the OB1 cycle time to be significantly higher than 10 ms.
Is there a way to have my program synchronized with the received data? Would it be possible to let the CP card generate an interrupt, which triggers an OB when new data received?
Your help is very much appreciated.