Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 565

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Processing details
• These instructions add the bias value specified by (s1) or (s2) to the input value (32-bit binary data) specified by (s3), and
store the operation result in the device 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)
0
• When the output values to be stored in the devices specified by (d) and (d)+1 are 32-bit signed binary values and the
operation result exceeds the range of -2147483648 to 2147483647, the output value is calculated as follows.
Ex.
When (s1) and (s1)+1 are -1000, and (s3) and (s3)+1 are -2147483648: Output value = -2147483648+(-1000) = 80000000H-
FFFFFC18H = 7FFFFC18H = 2147482648
• When the output values to be stored in the devices specified by (d) and (d)+1 are 32-bit unsigned binary values and the
operation result exceeds the range of 0 to 4294967295, the output value is calculated as follows.
Ex.
When (s2) and (s2)+1 are 1000, and (s3) and (s3)+1 are 4294967295: Output value =4294967295+1000 = FFFFFFFFH-
00003E8H = 000003E7H = 999
• When the DZONE(P)_U instructions are used, (s1) and (s1)+1 are regarded as dummy data and ignored.
Operation error
There is no operation error.
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
(s3+1, s3)
(s1+1, s1)
8 APPLICATION INSTRUCTION
8.12 Data Control Instruction
8
563

Hide quick links:

Advertisement

loading