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