Mitsubishi MELSEC-Q/L Programming Manual page 189

Table of Contents

Advertisement

When certain bits are specified in a word device, bits other than the certain bits that store the operation result do not
change.
Before execution
After execution
(3) The following program compares the value data stored at D0 to D5 with the value data stored at D10 to D15, and then
stores the operation result into M20 to M22, when M0 is turned on. Also, the program transfers the character string "ALL
ON" to D100 and up when all devices from M20 to M22 have reached the on status.
[Ladder Mode]
[Operation]
b31
b0
-2147483000
D1,D0
D3,D2
60000
D5,D4
-900000
When all operation results are on(1),
the special relays corresponding to
each program turn on(1).
(Since this program examples refer
to scan programs, SM704 and SM716
turn on(1), SM7171 and SM718 do not
change in the scan program)
D10.F
0
0
1
0
1
1
1
D10.F
0
0
1
0
1
1
0
No change
[List Mode]
Step
b31
b0
-2147483000
D11,D10
D13,D12
60001
D15,D14
-899999
DBKCMP , DBKCMP P
D10.0
1
1
0
0
1
1
0
0
D10.0
0
0
0
1
1
1
0
0
No change
Device
Instruction
(1)
M20
ON
(1)
M21
ON
(1)
M22
ON
(1)
SM704
ON
(1)
SM716
ON
(0)
SM717
OFF
(0)
SM718
OFF
0
0
1
2
3
4
6
7
8
187

Advertisement

Table of Contents
loading

Table of Contents