Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 565
Math Conversion Instructions (DEG, RAD, TOD, FRD, TRN, TRUNC) Chapter 16
Description: BCD is the Binary Coded Decimal number system that expresses individual
decimal digits (0…9) in a 4-bit binary notation.
If you enter a negative Source, the instruction generates a minor fault and clears
the Destination.
Arithmetic Status Flags: Arithmetic status flags are affected.
Fault Conditions:
Execution:
Relay Ladder
A minor fault will occur if Fault Type Fault Code
Source < 0 4 4
Condition 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 controller converts the Source to BCD and places the result in the Destination.
The rung-condition-out is set to true.
Postscan The rung-condition-out is set to false.
Rung-condition-in is true.
End
Source < 0
No
Yes
Source > 99,999,999
No
Yes
Convert source
S:V is set to 1.
Rung-condition-out is
set to true.