Preface
MicroLogix 1000 Programmable Controllers User Manual
9–6
Note To
convert numbers lar
ger than 9999 BCD, the sour
ce must be the Math Register
(S:13). Y
ou must r
eset the Minor Err
or Bit (S:5.0) to pr
event an err
or.
Example
The BCD value 32,760 in the math register is converted and stored in N7:0. The
maximum source value is 32767, BCD.
0 0 0 3
2 7 6 0
32760
5–digit BCD
S:14
S:13
0000 0000 0000 0011 0010 0111 0110 0000
N7:0
0111
1111 1111 1000
Decimal
FRD
FROM BCD
Source S:13
00032760
Dest N7:0
32760
MPS displays S:13
and S:14 in BCD.
You should convert BCD values to integer before you manipulate them in your
ladder program. If you do not convert the values, the controller manipulates them as
integers and their value may be lost.
Note If
the math register (S:13 and S:14) is used as the sour
ce for the FRD instruction
and the BCD value does not exceed 4 digits, be sur
e to clear wor
d S:14 before
executing the FRD instruction. If S:14 is not clear
ed and a value is contained in
this wor
d fr
om another math instruction located elsewher
e in the pr
ogram, an
incorr
ect decimal value will be placed in the destination wor
d.
efesotomasyon.com - Allen Bradley,Rockwell,plc,servo,drive