EasyManua.ls Logo

Mitsubishi Electric MELSEC-Q/L - Page 668

Mitsubishi Electric MELSEC-Q/L
1084 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
666
7 APPLICATION INSTRUCTIONS
7.13 Data Control Instructions
DBAND
Controls the output value to be stored at the device designated by (D) by checking whether the input value (BIN 32 bits)
designated by ((S3), (S3)+1) is within the range of dead band upper and lower limit values specified by ((S1), (S1)+1) and
((S2), (S2)+1) or not. Output value is controlled in the way shown below:
The values designated by ((S1), (S1)+1), ((S2), (S2)+1), or ((S3), (S3)+1) are within the range of from -2147483648 to
2147483647.
The output value stored at (D), (D)+1 is a signed 32-bit BIN value. Therefore, if the operation results exceed the range of
from -2147483648 to 2147483647, the following will take place:
Ex.
When the dead band lower limit value ((S1), (S1)+1) is 1000 and the input value ((S3), (S3)+1) is -2147483648
-2147483648-1000 = 80000000H-000003E8H = 7FFFFC18H = 2147482648
Operation error
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)) 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)) 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))
0 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).

0
D
Output value ( +1, )
D
S1
Dead band lower
limit value ( , +1)
S1
S3
Input value ( , +1)
S3
S2
Dead band upper
limit value ( , +1)
S2

Table of Contents

Related product manuals