Floating Point Band Comparisons (Single Precision) - Mitsubishi Electric MELSEC-Q/L Programming Manual

Hide thumbs Also See for MELSEC-Q/L:
Table of Contents

Advertisement

Floating point band comparisons (single precision)

EZCP(P)
High
Basic
Process
performance
• QnUDVCPU, LCPU: The serial number (first five digits) is "16112" or later.
EZCP
EZCPP
(S1): Start number of the devices where the lower limit value is stored (real number)
(S2): Start number of the devices where the upper limit value is stored (real number)
(S3): Data to be compared or start number of the device where the data to be compared is stored (real number)
(D): Start bit device number to which the comparison result is output (Bit)
Setting
Internal device
data
Bit
(S1)
(S2)
(S3)
(D)
Processing details
• One of (D), (D)+1, and (D)+2 turns on depending on the results (small, within the band, large) after the lower limit values
"(S1) and (S1)+1" and the upper limit values "(S2) and (S2)+1" are compared with the comparison data "(S3) and (S3)+1".
Contact
EZCP
D
D
+1
D +2
• When the contact turns off, "(D) to (D)+2" hold the conditions immediately before the contact turns on and off.
Precautions
• The three points starting from the device specified by (D) are used. Therefore, do not overlap any device used by others.
• Set values smaller than the upper limit values (S2), (S2)+1 as the lower limit values (S1), (S1)+1. If the lower limit values
(S1), (S1)+1 are larger than the upper limit values (S2), (S2)+1, the upper limit values (S2), (S2)+1 will be handled as the
same values as the lower limit values (S1), (S1)+1.
Operation error
• In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an error code is stored in SD0.
Error
Error details
code
4101
The range of three points from the device specified by (D) exceeds the range
of the corresponding device.
4140
The specified device value is -0, a subnormal number, NaN (not a number),
or .
6 BASIC INSTRUCTIONS
216
6.1 Comparison Operation Instructions
Ver.
Ver.
Redundant
Universal
LCPU
Command
Command
R, ZR
Word
S1
S2
S3
Turns on when
[
S1
,
S1
+1
]
Turns on when
[
S1
,
S1
+1
]
Turns on when
EZCP
EZCPP
J\
Bit
Word
D
>
[
S3
,
S3
+1
]
[
S3
,
S3
+1
]
[
S2
,
[
S3
,
S3
+1
]
>
[
S2
,
Q00J/
Q00/
Q01
S1
S2
S3
S1
S2
S3
U\G
Zn
S2
+1
]
S2
+1
]
QnH
QnPH
QnPRH
D
D
Constant
Others
E
QnU
LCPU

Advertisement

Table of Contents
loading

Table of Contents