Example - Ladder Diagram
RCV
The RCV instruction receives Size bytes of a frame from a communication module, Slot, and saves the data in an assigned data register, D. The result of the received transmission is saved in an assigned data register, Result.
Ladder Diagram Example
When the contact, M5.0, is powered ON (1), 20 bytes of the frame from the communication module at slot H0001 are received and saved in the data register, D0.
The result of the received transmission is saved in the data register, L00.
Memory Monitor
The above example shows the binary result if there was no error.
The above example shows the binary result if there was an error.
RCVP
The RCVP one-shot instruction receives Size bytes of a frame from a communication module, Slot, and saves the data in an assigned data register, D. The result of the received transmission is saved in an assigned data register, Result.
Every time this instruction executes, it energizes the output only once.
Ladder Diagram Example
When the contact, M6.0, is powered ON (1), 50 bytes of the frame from the communication module at slot H0001 are received and saved in the data register, D2.
The result of the received transmission is saved in the data register, L30.
Memory Monitor
The above example shows the binary result if there was no error.
The above example shows the binary result if there was an error.