6. BASIC INSTRUCTIONS
6
−
5
MELSEC-A
REMARK
The number of steps is seven in the following cases:
•
Index qualification has been performed.
•
The digit specification of bit device is not K4.
•
The head number of bit device is not a multiple of 8.
A multiple of 16 when the A3H, A3M, or A ACPU is used.
Program Examples =
(1) Program which compares the data of X0 to F and the data of D3.
<>
(2) Program which compares the BCD value 100 and the data of D3.
>
(3) Program which compares the BIN value 100 and the data of D3.
<=
(4) Program which compares the data of D0 and that of D3.
(
)
0
K4
= X000
D3
Y033
•
Coding
0 LD=
K4X000 D3
5 OUT
Y033
6 END
(
)
0
H
<> 0100 D3
Y033
•
Coding
0 LD
M3
1 AND<> H0100 D3
6 OUT
Y033
7 END
M3
(
)
0
K
> 100 D3 Y033
•
Coding
0 LD
M3
1 LD>
K100
D3
6 OR
M8
7 ANB
8 OUT
Y033
9 END
M3
M8
(
)
0
<= D0
D3
Y033
•
Coding
0 LD
M3
1 AND
M8
2 OR<=
D0
D3
7 OUT
Y033
8 END
M3 M8
Содержание MELSEC-A series
Страница 1: ......
Страница 2: ......
Страница 13: ...A 11 MEMO...
Страница 505: ...APPENDICES APP 100 MELSEC A MEMO...
Страница 507: ......
Страница 508: ......