Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 866

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

Processing details
• These instructions control the output value to be stored in the device specified by (d) by checking whether the input value
(32-bit binary data) in the device specified by (s3) is within range of the upper and lower limits of the dead band in the
devices specified by (s1) and (s2). The output value is controlled as follows.
Condition
Dead band lower limit value ((s1), (s1)+1) > Input value ((s3), (s3)+1)
Dead band upper limit value ((s2), (s2)+1) < Input value ((s3), (s3)+1)
Dead band lower limit value ((s1), (s1)+1)  Input value ((s3), (s3)+1)  Dead
band upper limit ((s2), (s2)+1)
(s1)+1, (s1)
• The following example shows the case when the operation result of the DBAND(P) instruction is out of the range from -
2147483648 to 2147483647.
Ex.
When ((s1), (s1)+1) is 1000 and ((s3), (s3)+1) is -2147483648, output value is -2147483648-1000 = 80000000H-000003E8H
= 7FFFFC18H = 2147482648.
• The following example shows the case when the operation result of the DBAND(P)_U instruction is out of the range from 0
to 4294967295.
Ex.
When ((s1), (s1)+1) is 100 and ((s3), (s3)+1) is 50, output value is 50-100 = 00000032H-00000064H = FFFFFFCEH =
4294967246.
Operation error
Error code
Description
(SD0)
3405H
The lower limit value specified by (s1) is greater than the upper limit value specified by (s2).
7 APPLICATION INSTRUCTIONS
864
7.12 Data Control Instructions
(d)+1, (d)
(s3)+1, (s3)
0
(s2)+1, (s2)
Output value
Input value ((s3), (s3)+1) - Dead band lower limit value ((s1), (s1)+1)
Input value ((s3), (s3)+1) - Dead band upper limit value ((s2), (s2)+1)
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents