Example - Ladder Diagram
BRST
The BRST instruction sets a BOOL value in the WORD data register, D, from ON (1) to OFF (0). The BOOL value of the bit to set is defined by the value, n.
Ladder Diagram Example
Currently, the value of the data register, D60, is 32,028, and the 14th bit is 1.
![]()
When the contact, M3.5, is powered ON (1), the 14th bit of the data register, D60, turns from 1 to 0.
As a result, the value of the data register, D60, is now 15,644, and the 14th bit is now 0.
![]()
BRSTP
The BRSTP one-shot instruction sets a BOOL value in the WORD data register, D, from ON (1) to OFF (0). The BOOL value of the bit to set is defined by the value, n.
Every time this instruction executes, it energizes the output only once.
Ladder Diagram Example
Currently, the value of the data register, D65, is -25,412, and the 3rd bit is 1.
![]()
When the contact, M4.0, is powered ON (1), the 3rd bit of the data register, D65, turns from 1 to 0.
As a result, the value of the data register, D65, is now -25,420, and the 3rd bit is now 0.
![]()