862
7 APPLICATION INSTRUCTIONS
7.12 Data Control Instructions
• 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.
• The following example shows the case where the operation result of the BAND(P) instruction is out of the range from -
32768 to 32767.
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.
When (s1) is 100 and (s3) is 50, output value is 50-100 = 0032H-0064H = FFCEH = 65486.
Condition Output value
Dead band lower limit value (s1) > input value (s3) Input value (s3) - dead band lower limit value (s1)
Dead band upper limit value (s2) < input value (s3) Input value (s3) - dead band upper limit value (s2)
Dead band lower limit value (s1) input value (s3) dead band upper limit
(s2)
0
Error code
(SD0)
Description
3405H The lower limit value specified by (s1) is greater than the upper limit value specified by (s2).