Publication 1762-RM001C-EN-P
11-4 Conversion Instructions
FRD - Convert from
Binary Coded Decimal
(BCD)
Instruction Type: output
The FRD instruction is used to convert the Binary Coded Decimal (BCD)
source value to an integer and place the result in the destination.
Addressing Modes and File Types can be used as shown in the following
table:
FRD
From BCD
Source S:0
0000h<
Dest N7:0
0<
FRD
Table 11.7 Execution Time for the FRD Instructions
Controller When Rung Is:
True False
MicroLogix 1200 14.1
µ
s0.0
µ
s
MicroLogix 1500 12.3
µ
s0.0
µ
s
Table 11.8 FRD Instruction Valid Addressing Modes and File Types
For definitions of the terms used in this table see Using the Instruction Descriptions on page4-2.
Parameter
Data Files Function Files
CS - Comms
IOS - I/O
Address
Mode
(1)
(1) See Important note about indirect addressing.
Address
Level
O
I
S
B
T, C, R
N
ST
L
MG, PD
RTC
HSC
PTO, PWM
STI
EII
BHI
MMI
DAT
TPI
Immediate
Direct
Indirect
Bit
Word
Long Word
Element
Source •••••• • ••
(2)
(2) See FRD Instruction Source Operand on page 11-5.
Destination •• •••
• ••
IMPORTANT
You cannot use indirect addressing with: S, ST, MG, PD,
RTC, HSC, PTO, PWM, STI, EII, BHI, MMI, DAT, TPI, CS,
IOS, and DLS files.