Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
6-13
$=,$<>,$>,$<=,$<,$>=
1
2
3
4
4
6
7
8
6.1 Comparison Operation Instructions
6.1.5 Character string data comparisons ($=,$<>,$>,$<=,$<,$>=)
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns ON, and
an error code is stored into SD0.
The code "00
H
" does not exist within the range of the relevant device, starting from the
device number designated by and . (Error code: 4101)
The character string of and exceeds 16383 characters. (Error code: 4101)
The character string data comparison instruction checks the device range while
comparing the designated character string data. For this reason, if the "00
H" code
does not exist in the relevant device range, the instruction outputs the comparison
result instead of returning an operation error when no match of characters is
detected.
If and data are as shown above, the second character of does not
match with that of , and the comparison result is expressed as (the
operation result is "non-conductive"). Though the "00
H
" code is not included
within the device range, no operation error is returned, because the
no-match is detected at D12287, which is within the device range.
Program Example
(1) The following program compares character strings stored following D0 and characters
following D10.
[Ladder Mode] [List Mode]
(2) The following program compares the character string "ABCDEF" with the character string
stored following D10.
[Ladder Mode] [List Mode]
S1
S2
S1
S2
M0
D10D12287
$
BA
D12287
C
00
H
Z A
D11
C
00
H
W0
D10
Data of
Data of
Example
S1
S2
S1
S2
S1
S2
S1
S2
S1
S2
S1
Step
Instruction
Device
Step
Instruction
Device