6. BASIC INSTRUCTIONS
6
−
7
MELSEC-A
Program Examples D=
(1) Program which compares the data of X0 to 1F and the data of D3 and D4.
D<>
(2) Program which compares the BCD value 18000 and the data of D3 and D4.
D>
(3) Program which compares the BIN value -80000 and the data of D3 and D4.
D<=
(4) Program which compares the data of D1 and D0 that of D3 and D4.
(
)
0
K8
D= X000 D3
Y033
•
Coding
0 LDD=
K8X000 D3
11
OUT
Y033
12
END
(
)
0
H
D<> 00018000 D3
Y033
•
Coding
0 LD
M3
1 ANDD<> H00018000 D3
12
OUT
Y033
13
END
M3
(
)
0
K-
D> 80000 D3
Y033
•
Coding
0 LD
M3
1 LDD>
K-80000
D3
12
OR
M8
13
ANB
14
OUT
Y033
15
END
M3
M8
(
)
0
D<= D0
D3
Y033
•
Coding
0 LD
M3
1 AND
M8
2 ORD<= D0
D3
13
OUT
Y033
14
END
M3 M8
Summary of Contents for MELSEC-A series
Page 1: ......
Page 2: ......
Page 13: ...A 11 MEMO...
Page 505: ...APPENDICES APP 100 MELSEC A MEMO...
Page 507: ......
Page 508: ......