Rockwell Automation Publication 1756-RM003N-EN-P - October 2011 567
Math Conversion Instructions (DEG, RAD, TOD, FRD, TRN, TRUNC) Chapter 16
Convert to Integer (FRD)
The FRD instruction converts a BCD value (Source) to a decimal value and
stores the result in the Destination.
Operands:
Relay Ladder
Function Block
FBD_CONVERT Structure
Operand Type Format Description
Source SINT
INT
DINT
Immediate
Tag
Value to convert to decimal
A SINT or INT tag converts to a DINT value by zero-fill.
Destination SINT
INT
DINT
Tag Stores the result
Operand Type Format: Description
FRD tag FBD_CONVERT Structure FRD structure
Input Parameter Data Type Description
EnableIn BOOL Enable input. If cleared, the instruction does not execute and outputs are not updated.
Default is set.
Source DINT Input to the conversion instruction.
Valid = any integer
Output Parameter Data Type Description
EnableOut BOOL The instruction produced a valid result.
Dest DINT Result of the conversion instruction. Arithmetic status flags are set for this output.