Installation manual

Publication 1747-RM001G-EN-P - November 2008
Data Handling Instructions 5-7
Example 2
The BCD value 32760 in the math register is converted and stored in N7:0.
The maximum source value is 32767, BCD.
You should convert BCD values to integer before you manipulate them in
your ladder program. If you do not convert the values, the processor
manipulates them as integers and their value is lost.
S:14 S:13
0000 0000 0000 0011 0010 0111 0110 0000
15 0 15 0 5-digit BCD
0003 2760
32760N7:0 Decimal 0111 1111 1111 1000
FRD
FROM BCD
Source S:13
00032760
Dest N7:0
32760
S:13 and S:14 are displayed in
BCD format.
TIP
If the math register (S:13 and S:14) is used as the
source for the FRD instruction and the BCD value
does not exceed 4 digits, be sure to clear word S:14
before executing the FRD instruction. If S:14 is not
cleared and a value is contained in this word from
another math instruction located elsewhere in the
program, an incorrect decimal value will be placed
in the destination word.