Skip to main content

Example - Ladder Diagram

RECV


The RECV instruction receives the frame, F_Name, from the communication module defined by the communication configuration program ID, PID, and saves the reception result in an assigned data register, Result.

Ladder Diagram Example


When the contact M0.0, is powered ON (1), the frame, H0101, is received from the communication module defined by the program ID, 1.
The result of the received transmission is saved in the data register, L60.


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.

RECVP


The RECVP one-shot instruction receives the frame, F_Name, from the communication module defined by the communication configuration program ID, PID, and saves the reception result in an assigned data register, Result.
Every time this instruction executes, it energizes the output only once.

Ladder Diagram Example


When the contact M0.0, is powered ON (1), the frame, H0101, is received from the communication module defined by the program ID, 1.
The result of the received transmission is saved in the data register, L50.


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.