Mitsubishi Electric M800VW Series Programming Manual page 193

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 NULL code "00H" does not exist in the relevant device range starting from the device number designated in S1 or
S2.
(Error code: 82)
- The character string of S1 or S2 is longer than 255 characters. (Error code: 82)
 Program example
 The following program compares the character string stored in the area starting from D0 and the character string stored in
the area starting from D10.
[Ladder mode]
0
$= D0 D10
4
 The following program compares the character string "ABCDEF" and the character string stored in the area starting from
D10.
[Ladder mode]
M3
0
$<> "ABCDEF" D10
8
 The following program compares the character string stored in the area starting from D10 and the character string stored in
the area starting from D100.
[Ladder mode]
M3
0
$> D10 D100
M8
7
 The following program compares the character string stored in the area starting from D200 and the character string
"12345".
[Ladder mode]
M3
M8
0
$<= D200 "12345"
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
172
[List mode]
Inst.
Device
LD$=
D0
D10
OUT
Y33
END
[List mode]
Inst.
Device
LD
M3
AND$<>
"ABCDEF"
D10
OUT
Y33
END
[List mode]
Inst.
Device
LD
M3
LD$>
D10
D100
OR
M8
ANB
OUT
Y33
END
[List mode]
Inst.
Device
LD
M3
AND
M8
OR$<=
D200
"12345"
OUT
Y33
END

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents