Mitsubishi MELSEC Q Series Programming Manual page 219

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

(2) The following program compares, when X1C is turned ON, the constant K1000 with the data
stored at D10 to D13, and stores the operation result at b4 to b7 in D0.
[Ladder Mode]
[Operation]
b15
b0
1000
(BIN)
D0 before
operation
D0 after
operation
(3) The following program compares, when X20 is turned ON, the data at D10 to D12 with the
data at D30 to D32, and stores the operation result into the area starting from M100.
The following program transfers the character string "ALL ON" to D100 onward when all
devices from M100 onward have reached the 1 "ON" state.
[Ladder Mode]
[Operation]
b15
b0
1234
(BIN)
D10
5678
(BIN)
D11
9876
(BIN)
D12
[List Mode]
Step
b15
b0
D10
2000 (BIN)
D11
1000 (BIN)
D12
1000 (BIN)
D13
2222 (BIN)
b15
b7
b4
b0
0 1 0 0 0 0 1 0 0 0 1 0 0 0 0 0
b15
b7
b4
b0
0 1 0 0 0 0 1 0 1 0 0 1 0 0 0 0
[List Mode]
Step
b15
b0
4321
(BIN)
D30
5678
(BIN)
D31
9999
(BIN)
D32
b15
4C
D100
20
D101
4E
D102
BKCMP
,BKCMP
Device
Instruction
Instruction
Device
ON
M100
ON
M101
ON
M102
b8
b7
b0
$MOV
(L)
41
(A)
H
H
( )
4C
(L)
H
H
(N)
4F
(O)
H
H
P
1
2
3
4
4
6
7
8
SM704
ON
6-17

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents