Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 868

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

Advertisement

Processing details
• 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.
Condition
Input value (s3) < 0
Input value (s3) < 0
Input value (s3) < 0
(s2)
• The following example shows the case where the operation result of the ZONE(P) instruction is out of the range from -
32768 to 32767.
Ex.
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.
Ex.
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.
Operation error
There is no operation error.
7 APPLICATION INSTRUCTIONS
866
7.12 Data Control Instructions
(d)
(s3)
0
(s1)
Output value
Input value (s3) + negative bias value (s1)
0
Input value (s3) + positive bias value (s2)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents