7 APPLICATION INSTRUCTIONS
7.13 Data Control Instructions
663
7
■DLIMIT
• The function controls the output value to be stored at the device designated by ((D), (D)+1) by checking whether the input
value (BIN 32 bits) designated by ((S3), (S3)+1) is within the range of upper and lower limit values specified by ((S1),
(S1)+1) and ((S2), (S2)+1) or not.
• The values designated by ((S1), (S1)+1), ((S2), (S2)+1), or ((S3), (S3)+1) are within the range of -2147483648 to
2147483647.
• To perform controls based only on the upper limit value, set the lower limit value designated by ((S1), (S1)+1) to "-
2147483648".
• To perform controls based only on the lower limit value, set the upper limit value designated by ((S2), (S2)+1) to
"2147483647".
• In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error code is stored into SD0.
Condition Result
Lower limit value ((S1)+1, (S1)) > Input value ((S3)+1, (S3)) Lower limit value ((S1)+1, (S1)) Output value ((D)+1, (D))
Upper limit value ((S2)+1, (S2)) < Input value ((S3)+1, (S3)) Upper limit value ((S2)+1, (S2)) Output value ((D)+1, (D))
Lower limit value ((S1)+1, (S1)) Input value ((S3)+1, (S3)) Upper limit
value ((S2)+1, (S2))
Input value ((S3)+1, (S3)) Output value ((D)+1, (D))
Error
code
Error details Q00J/
Q00/
Q01
QnH QnPH QnPRH QnU LCPU
4100 The lower limit value specified in (S1) is greater than the upper limit value
specified in (S2).
S1
Value designated by
+1,
Value designated by
Output value ( )
S3
+1,
S3
S2
+1,
S2
Output value ( )
D
+1,
D
S1
0