
Chapter 5. Application instructions
5-76
-
Execution conditions
2) Program example
-
Program that converts 8- bits from the bit 2 of D0010 into ASCII code data, and stores the result to
16-bits from the bit 1 of P06 while P030 is on.
Input condition
ASC
ASCP
Executed only once
Executed only once
Executed per scan
Executed per scan
ASC D0010 P06 h2102
P030
0
0
1
1
1
0
1
0
1
1
0
1
0
0
1
1
1
0
0
0
0
1
0
0
0
1
1
0
1
0
0
D0010
D
C
F
E
9
8
B
A
5
4
7
6
1
0
3
2
D
C
F
E
9
8
B
A
5
4
7
6
1
0
3
2
P06
hB
h4
h42
h34
Start from bit 2 of
D0000
Start from bit 1 of
P06 (P061)
0
0
1
0
2
P07