Publication 1763-RM001C-EN-P - October 2009
204 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 Instruction Source Operand
The source can be either a word address or the math register. The
maximum BCD source values permissible are:
• 9999 if the source is a word address (allowing only a 4-digit BCD
value)
• 32768 if the source is the math register (allowing a 5-digit BCD value
with the lower 4 digits stored in S:13 and the high order digit in
S:14).
If the source is the math register, it must be directly addressed as S:13.
S:13 is the only status file element that can be used.
FRD
From BCD
Source S:0
0000h<
Dest N7:0
0<
FRD
Execution Time for the FRD Instructions
Controller When Rung Is:
True False
MicroLogix 1100 29.87 μs 0.87 μs
FRD Instruction Valid Addressing Modes and File Types
For definitions of the terms used in this table see Using the Instruction Descriptions on page 82.
Parameter
Data Files Function Files
CS - Comms
IOS - I/O
DLS - Data Log
Address
Mode
(1)
Address Level
O
I
S
B
T, C, R
N
F
ST
L
MG, PD
RI/RIX
PLS
RTC
HSC
PTO, PWM
STI
EII
BHI
MMI
LCD
Immediate
Direct
Indirect
Bit
Word
Long Word
Element
Source •••••• • • ••
(2)
Destination • • • • • • • ••
(1) See Important note about indirect addressing.
(2) See FRD Instruction Source Operand on page 204.
IMPORTANT
You cannot use indirect addressing with: S, ST, MG, PD,
RTC, HSC, PTO, PWM, STI, EII, BHI, MMI, CS, IOS, and
DLS files.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive