Download Print this page

Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual page 563

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 (16-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) < 0
Input value (s3) = 0
Input value (s3) > 0
(d)
(s2)
0
(s1)
• When the output value to be stored in the device specified by (d) is a 16-bit signed binary value and the operation result
exceeds the range of -32768 to 32767, the output value is calculated as follows.
Ex.
When (s1) is -100 and (s3) is -32768: Output value = -32768+(-100) = 8000H-FF9CH = 7F9CH = 32668
• When the output value to be stored in the device specified by (d) is a 16-bit unsigned binary value and the operation result
exceeds the range of 0 to 65535, the output value is calculated as follows.
Ex.
When (s2) is 100 and (s3) is 65535: Output value =65535+100 = FFFFH-0064H = 0063H = 99
• When the ZONE(P)_U instructions are used, (s1) is regarded as dummy data and ignored.
Operation error
There is no operation error.
Output value
Input value (s3) + Negative bias value (s1)
0
Input value (s3) + Positive bias value (s2)
(s3)
8 APPLICATION INSTRUCTION
8.12 Data Control Instruction
8
561

Hide quick links:

Advertisement

loading