6.1.7 Set and reset
Operand
Input / output
Data type
Bit
I, Q, M, SM, T, C, V, S, L
Boolean
N
VB, IB, QB, MB, SMB, SB, LB, AC, constant, *VD, *AC, *LD
Byte
"Set” instruction can make a bit or a series of bits be 1.
"Reset” instruction can make a bit or a series of bits be 0.
The value of N is between 1 and 255.
The “reset” instruction can reset the bits of the timer and
counter, and can clear the current value of the timer and
counter.
Example:
79
Made with FlippingBook - Online magazine maker