866
7 APPLICATION INSTRUCTIONS
7.12 Data Control Instructions
• These instructions add the bias value specified by (s1) or (s2) to the input value (16-bit binary) specified by (s3), and store
the result in the device number specified by (d). The bias value is controlled as follows.
• The following example shows the case where the operation result of the ZONE(P) instruction is out of the range from -
32768 to 32767.
When (s1) is -100 and (s3) is -32768, output value is -32768+(-100) = 8000H-FF9CH = 7F9CH = 32668.
• The following example shows the case where the operation result of the ZONE(P)_U instruction is out of the range from 0
to 65535.
When (s2) is 100 and (s3) is 65535, output value is 65535+100 = FFFFH-0064H = 0063H = 99.
• The ZONE(P)_U instruction treats the data in the device specified by (s1) as dummy and does not use it.
There is no operation error.
Condition Output value
Input value (s3) < 0 Input value (s3) + negative bias value (s1)
Input value (s3) < 0 0
Input value (s3) < 0 Input value (s3) + positive bias value (s2)