Publication 1766-RM001A-EN-P - October 2008
246 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)
S:0/3 Sign Bit always resets
Math Status Bits
With this Bit: The Controller:
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 1400 5.4790 µs 0.5151 µ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 92.
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
PTOX, PWMX
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 246.
IMPORTANT
You cannot use indirect addressing with: S, MG, PD, RTC, HSC, PTOX,
PWMX, STI, EII, BHI, MMI, CS, IOS, and DLS files.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive