Mitsubishi Electric M800VW Series Programming Manual page 185

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.1 Comparison Operation Instructions
 Program example
 The following program compares the data at X0 to X1F with the data at D3 and D4, and turns Y33 ON if the data is identi-
cal.
0
D= K8X0 D3
4
 The following program compares BIN value K38000 to the data at D3 and D4, and establishes continuity if the data in D3
and D4 is something other than 38000.
M3
0
6
 The following program compares BIN value K-80000 to the data at D3 and D4, and establishes continuity if the data in D3
and D4 is less than -80000.
M3
0
8
 The following program compares the data in D0 and D1 with the data in D3 and D4, and establishes continuity if the data in
D0 and D1 is equal to or less than the data in D3 and D4.
M3
0
D<= D0 D3
6
IB-1501667-B
[Ladder mode]
Y33
END
[Ladder mode]
Y33
D<> K38000 D3
END
[Ladder mode]
Y33
D> K-80000 D3
M8
END
[Ladder mode]
Y33
M8
END
Steps
0
3
4
Steps
0
1
5
6
Steps
0
1
5
6
7
8
Steps
0
1
2
5
6
164
[List mode]
Inst.
Device
LDD=
K8X0
D3
OUT
Y33
END
[List mode]
Inst.
Device
LD
M3
ANDD<>
K38000
D3
OUT
Y33
END
[List mode]
Inst.
Device
LD
M3
LDD>
K-80000
D3
OR
M8
ANB
OUT
Y33
END
[List mode]
Inst.
Device
LD
M3
AND
M8
ORD<=
D0
D3
OUT
Y33
END

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents