EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Page 870

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...
868
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 (32-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 DZONE(P) instruction is out of the range from -
2147483648 to 2147483647.
Ex.
When ((s1), (s1)+1) is -1000 and ((s3), (s3)+1) is -2147483648, output value is -2147483648+(-1000) = 80000000H-
FFFFFC18H = 7FFFFC18H = 2147482648.
The following example shows the case where the operation result of the DZONE(P)_U instruction is out of the range from 0
to 4294967295.
Ex.
When ((s2), (s2)+1) is 1000 and ((s3), (s3)+1) is 4294967295, output value is 4294967295+1000 = FFFFFFFFH-00003E8H =
000003E7H = 999.
The DZONE(P)_U instruction treats the data in the device specified by (s1) and (s1)+1 as dummy and does not use them.
Operation error
There is no operation error.
Condition Output value
Input value ((s3), (s3)+1) < 0 Input value ((s3), (s3)+1) + negative bias value (s1), (s1)+1
Input value ((s3), (s3)+1) = 0 0
Input value ((s3), (s3)+1) > 0 Input value ((s3), (s3)+1) + positive bias value (s2), (s2)+1
0
(d)+1, (d)
(s3)+1, (s3)
(s1)+1, (s1)
(s2)+1, (s2)

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals