EasyManua.ls Logo

Mitsubishi MELSEC-A series - Page 117

Mitsubishi MELSEC-A series
508 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Table of Contents

Other manuals for Mitsubishi MELSEC-A series

Related product manuals