Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 864

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
(16-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) > input value (s3)
Dead band upper limit value (s2) < input value (s3)
Dead band lower limit value (s1)  input value (s3)  dead band upper limit
(s2)
(s1)
• The following example shows the case where the operation result of the BAND(P) instruction is out of the range from -
32768 to 32767.
Ex.
When (s1) is 10 and (s3) is -32768, output value is -32768-10 = 8000H-000AH = 7FF6H = 32758.
• The following example shows the case when the operation result of the BAND(P)_U instruction is out of the range from 0 to
65535.
Ex.
When (s1) is 100 and (s3) is 50, output value is 50-100 = 0032H-0064H = FFCEH = 65486.
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
862
7.12 Data Control Instructions
(d)
(s3)
0
(s2)
Output value
Input value (s3) - dead band lower limit value (s1)
Input value (s3) - dead band upper limit value (s2)
0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents