Skip to main content

Example - Ladder Diagram

SND


The SND instruction sends Size bytes of a frame starting at the data register, S, to the communication module, Slot, and saves the transmission result in an assigned data register, Result.

Ladder Diagram Example


When the contact, M1.0, is powered ON (1), 8 bytes of the frame starting at the data register D10 are sent to the communication module at slot H0001.
The result of the transmission is stored in the data register, M00.


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.

SNDP


The SNDP one-shot instruction sends Size bytes of a frame starting at the data register, S, to the communication module, Slot, and saves the transmission result in an assigned data register, Result.
Every time this instruction executes, it energizes the output only once.

Ladder Diagram Example


When the contact, M2.0, is powered ON (1), 16 bytes of the frame starting at the data register D20 are sent to the communication module at slot H0001.
The result of the transmission is stored in the data register, L20.


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.