
Chapter 5. Application instructions
5-15
-
Execution conditions
-
Operation Error
In the following cases, operation error occurs and the error flag (F110) turns on.
a) Each digit (4 bits) of source [ S ] is outside the range of 0 to 9
(Example : [ S ] = h78A5)
2) Program example
-
While P020 is on, convert the BCD data of P00 word and transfer the result to the D0001.
Input condition
BIN, DBIN
BINP, DBINP
Executed only once
Executed only once
Executed per scan
Executed per scan
BIN P00 D0001
P020
0
8192
1
4096
0
32768
0
16384
0
512
1
256
0
2048
0
1024
0
32
1
16
0
128
0
64
0
2
1
1
0
8
0
4
0
2000
0
1000
0
8000
1
4000
1
200
1
100
0
800
0
400
1
20
0
10
0
80
1
40
0
2
1
1
1
8
0
4
D0001 (h1111)
P00 (4369)
4000
300
60
9