Mitsubishi Electric MELSEC-Q/L Programming Manual page 206

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

• The following program compares the constant with the value data stored at D0 to D9, and then stores the operation result
into D10.5 to D10.9, when M0 is turned on.
[Ladder Mode]
[Operation]
b31
b0
-60000
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
• 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
-2147483000
D1,D0
D3,D2
60000
D5,D4
-900000
6 BASIC INSTRUCTIONS
204
6.1 Comparison Operation Instructions
b31
-70000
D1,D0
50000
D3,D2
D5,D4
-32768
D7,D6
32767
D9,D8
0
D10.F
0
0
1
0
D10.F
0
0
1
0
No change
b0
b31
-2147483000
D11,D10
D13,D12
60001
D15,D14
-899999
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)
[List Mode]
Step
b0
(1)
D10.5
ON
(0)
D10.6
OFF
(0)
D10.7
OFF
(0)
D10.8
OFF
(0)
D10.9
OFF
1
1
1
1
1
0
0
1
1
1
0
0
0
0
1
1
[List Mode]
Step
b0
M20
ON
M21
ON
M22
ON
SM704
ON
SM716
ON
SM717
OFF
SM718
OFF
Instruction
Device
D10.0
1
0
0
0
D10.0
1
0
0
0
No change
Device
Instruction
(1)
(1)
(1)
(1)
(1)
(0)
(0)

Advertisement

Table of Contents
loading

Table of Contents