Example - Ladder Diagram
RND
The RND instruction randomly generates a WORD value number and saves the number in an assigned WORD register, D.
Ladder Diagram Example
When the contact, M0.0, is ON (1), the instruction randomly generates the number, 7,103.
Memory Monitor
RNDP
The RNDP one-shot instruction randomly generates a WORD value number and saves the number in an assigned WORD register, D.
Every time this instruction executes, it energizes the output only once.
Ladder Diagram Example
When the contact, M0.1, is ON (1), the instruction randomly generates the number, 27,850.