EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 868

Mitsubishi Electric MELSEC iQ-R Series
2110 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
866
7 APPLICATION INSTRUCTIONS
7.12 Data Control Instructions
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.
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.
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)
0
(d)
(s3)
(s1)
(s2)

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals