Mitsubishi Electric M800VW Series Programming Manual page 187

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
 Operation errors
 In the following cases, an arithmetic error occurs, the error flag (SM0) turns ON, and an error code is stored at SD0.
- The designated device value is not within the following range. (Error code: 35)
-126
0, 2
≤ | Designated device value | < 2
- The designated device value is "-0", unnormalized number, nonnumeric, or ± ∞ . (Error code: 35)
 Program example
 The following program compares the 32-bit floating-point real number data at D0 and D1 to the 32-bit floating-point real
number data at D3 and D4.
[Ladder mode]
0
E= D0 D3
4
 The following program compares the floating-point real number 1.23 to the 32-bit floating-point real number data at D3 and
D4.
[Ladder mode]
M3
0
E<> E1.23 D3
6
 The following program compares the 32-bit floating-point real number data at D0 and D1 to the 32-bit floating-point real
number data at D3 and D4.
[Ladder mode]
M3
E> D0 D3
0
M8
7
 The following program compares the 32-bit floating-point real number data at D0 and D1 to the floating-point real number
1.23.
[Ladder mode]
M8
M3
0
E<= D0 E1.23
7
IB-1501667-B
128
Steps
Y33
0
3
4
END
Steps
Y33
0
1
5
END
6
Steps
Y33
0
1
4
5
END
6
7
Steps
Y33
0
1
2
6
7
END
166
[List mode]
Inst.
Device
LDE=
D0
D3
OUT
Y33
END
[List mode]
Inst.
Device
LD
M3
ANDE<>
E1.23
D3
OUT
Y33
END
[List mode]
Inst.
Device
LD
M3
LDE>
D0
D3
OR
M8
ANB
OUT
Y33
END
[List mode]
Inst.
Device
LD
M3
AND
M8
ORE<=
D0
E1.23
OUT
Y33
END

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents