Convert To Integer (Frd); Relay Ladder; Function Block; Fbd_Convert Structure - Allen-Bradley Logix5000 Reference Manual

1756 controllogix, 1768 compactlogix, 1769 compactlogix, 1789 softlogix, 1794 flexlogix, powerflex 700s with drivelogix
Hide thumbs Also See for Logix5000:
Table of Contents

Advertisement

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

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents