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

Table of Contents

Advertisement

3. Instructions
Sample program
BINS
BCD Format 0 (C=#0000)
When CIO 0.00 is ON in the following example, the signed BCD data format and range in D100 are
checked against the format specified in the control word (0000). The source data is correct, so the
signed BCD data in D100 is converted to signed binary and output to D200.
0.00
BCD Format 3 (C=#0003)
When CIO 0.01 is ON in the following example, the signed BCD data format and range in D100 are
checked against the format specified in the control word (0003). The source data is correct, so the
signed BCD data in D300 is converted to signed binary and output to D400.
0.01
BISL
BCD Format 2 (C=#0002)
When CIO 0.00 is ON in the following example, the double signed BCD data format and range in D101
and D100 are checked against the format specified in the control word (2). The source data is correct,
so the double signed BCD data in D101 and D100 is converted to double signed binary and output to
D201 and D200.
0.00
410
S: D100
1 1 2 3
Signed BCD data (–123)
D100
D: D200
D200
F F 8 5
Signed binary data
S: D300
A 3 6 9
Signed BCD data
(–1,369)
D300
D: D400
D400
F A A 7
Signed binary data
S+1: D101
S: D100
F 3 4 5
6 7 8 9
D100
D+1: D201
D: D200
D200
F F C B
4 0 E B
i
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Double signed BCD data
(–3,456,789)
Double signed binary data

Advertisement

Table of Contents
loading

Table of Contents