Chapter 20
Math Instructions
20–15
Convert from BCD
FRD
Output Instruction
(FRD)
Fixed, SLC 5/01 Processors
FRD
FROM BCD
Source
N7:0
2620
Dest
N7:1
2620
FRD
FROM BCD
Source
S:13
00000557
Dest
N7:1
557
F1
F2
F3
F4
F5
ZOOM on FRD –(FRD)– 2.3.0.0.2
NAME: FROM BCD
DEST: N7:1 557
SOURCE: S:13 1367 (decimal)
EDT_DAT
HHT Ladder Display:
HHT Zoom Display:
Ladder Diagrams and APS Displays:
F1
F2
F3
F4
F5
ZOOM on FRD –(FRD)– 2.3.0.0.2
NAME: FROM BCD
SOURCE: N7:0 9760 (decimal)
DEST: N7:1 2620
EDT_DAT
(online monitor mode)
BCD
BCD
Fixed, SLC 5/01 Processors
SLC 5/02 Processors
SLC 5/02 Processors
Use this instruction when you want to convert BCD values to integer or
decimal values.
Entering Parameters
•
Source – word address of the value in BCD to be converted to
integer/decimal. With SLC 5/02 processors, the source parameter can be
a word address in any data file, or it can be the math register, S:13. With
fixed and SLC 5/01 processors, the source can only be the math register.
If the math register is the source, 32,767 is the maximum value. If a word
address is used, 9999 is the maximum value.
•
Destination – word address to contain the converted decimal/integer
value.
Convert from BCD (FRD)