Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 416

Table of Contents

Advertisement

3. Instructions
In this example, N words of binary data is converted to BCD data.
If N = 3, the three words of binary starting from D10 will be converted to binary data one word at a time
when CIO 0.00 turns ON. The resulting BCD data will be stored starting from D100.
0.00
0.00
378
MOVR
D10
D10
IR0
D11
D12
MOVR
D100
BIN
IR1
BCD
FOR
&3
D100
D101
BCD
D102
,IR0+
,IR1+
NEXT
(Hexadecimal #0064)
Decimal &100
Decimal &200
(Hexadecimal #00C8)
Decimal &300
(Hexadecimal #012C)
BCD #0100
BCD #0200
BCD #0300
CS/CJ/NSJ Series Instructions Reference Manual (W474)

Advertisement

Table of Contents
loading

Table of Contents