Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 309
Move/Logical Instructions (MOV, MVM, BTD, MVMT, BTDT, CLR, SWPB, AND, OR, XOR, NOT, BAND, BOR, BXOR, BNOT) Chapter 7
Clear (CLR)
The CLR instruction clears all the bits of the Destination.
Operands:
Relay Ladder
Structured Text
Structured text does not have a CLR instruction. Instead, assign 0 to the tag you want to
clear. This assignment statement clears dest.
See Structured Text Programming
for information on the syntax of expressions and
assignment statements within structured text.
Description: The CLR instruction clears all the bits of the Destination.
Arithmetic Status Flags: Arithmetic status flags are affected.
Fault Conditions: None
Execution:
Operand Type Format Description
Destination SINT
INT
DINT
REAL
Tag Tag t o clear
Condition Relay Ladder Action
Prescan The rung-condition-out is set to false.
Rung-condition-in is false The rung-condition-out is set to false.
Rung-condition-in is true The instruction clears the Destination.
The rung-condition-out is set to true.
Postscan The rung-condition-out is set to false.