Mitsubishi Electric MELSEC iQ-R Series Programming Manual page 870

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 (32-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), (s3)+1) < 0
Input value ((s3), (s3)+1) = 0
Input value ((s3), (s3)+1) > 0
(d)+1, (d)
(s2)+1, (s2)
• 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.
7 APPLICATION INSTRUCTIONS
868
7.12 Data Control Instructions
(s3)+1, (s3)
0
(s1)+1, (s1)
Output value
Input value ((s3), (s3)+1) + negative bias value (s1), (s1)+1
0
Input value ((s3), (s3)+1) + positive bias value (s2), (s2)+1

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents