Mitsubishi MELSEC-Q/L Programming Manual page 556

Table of Contents

Advertisement

LIMIT, LIMITP, DLIMIT, DLIMITP
DLIMIT
(1) The function controls the output value to be stored at the device designated by ( ,
value (BIN 32 bits) designated by ( ,
and ( ,
+1) or not.
S2
S2
S1
+1
S1
When
Lower limit value
S2
S2
+1
When
Upper limit value
S1
+1
S1
When
Lower limit value
Output value (
Value designated by
+1,
S1
(2) The values designated by ( ,
(3) To perform controls based only on the upper limit value, set the lower limit value designated by ( ,
"-2147483648".
(4) To perform controls based only on the lower limit value, set the upper limit value designated by ( ,
"2147483647".
Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Error
code
The lower limit value specified in
4100
specified in
.
S2
Program Example
(1) The following program conducts limit controls from 500 to 5000 on the data set as BCD values from X20 to X2F, and
stores the result at D1 when X0 is turned ON.
[Ladder Mode]
554
+1) is within the range of upper and lower limit values specified by ( ,
S3 S3
S3
+1
S3
Input value
S3
+1
S3
Input value
S3
+1
S3
S2
S2
+1
Input value
Upper limit value
D +1, D
)
Value designated by
S2
Output value (
0
S1
+1), ( ,
+1), or ( ,
S1 S1
S2
S2
S3 S3
Error details
is greater than the upper limit value
S1
[List Mode]
Step
D
S1
S1
D
+1
+1
Lower limit value
Output value
S2
S2
D
+1
+1
Upper limit value
Output value
S3
+1
S3
D
+1
Input value
Output value
+1,
S2
)
S3 +1, S3
+1) are within the range of -2147483648 to 2147483647.
Q00J/
Q00/
QnH
Q01
––
––
Instruction
Device
+1) by checking whether the input
D
S1 S1
D
D
D
+1) to
S1 S1
+1) to
S2
S2
QnPH QnPRH
QnU
––
––
+1)
LCPU

Advertisement

Table of Contents
loading

Table of Contents