Mitsubishi Electric M800VW Series Programming Manual page 189

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 64-bit floating-point real number data at D0 to D3 to the 64-bit floating-point real num-
ber data at D4 and D7.
[Ladder mode]
0
ED= D0 D4
4
 The following program compares the floating-point real number 1.23 to the 64-bit floating-point real number data at D4 to
D7.
[Ladder mode]
M3
0
ED<> E1.23 D4
8
 The following program compares the 64-bit floating-point real number data at D0 to D3 to the 64-bit floating-point real num-
ber data at D4 to D7.
[Ladder mode]
M3
0
ED> D0 D3
M8
7
 The following program compares the 64-bit floating-point real number data at D0 to D3 to the floating-point real number
1.23.
[Ladder mode]
M3
M8
0
ED<= D0 E1.23
9
IB-1501667-B
Steps
Y33
0
3
4
END
Steps
Y33
0
1
7
END
8
Steps
Y33
0
1
4
5
END
6
7
Steps
Y33
0
1
2
8
9
END
168
[List mode]
Inst.
Device
LDED=
D0
D4
OUT
Y33
END
[List mode]
Inst.
Device
LD
M3
ANDED<> E1.23
D4
OUT
Y33
END
[List mode]
Inst.
Device
LD
M3
LDED>
D0
D4
OR
M8
ANB
OUT
Y33
END
[List mode]
Inst.
Device
LD
M3
AND
M8
ORED<=
D0
E1.23
OUT
Y33
END

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents