212
7 BASIC INSTRUCTIONS
7.2 Arithmetic Operation Instructions
■
Related flag
Precautions
■
Operation result
• The most significant bit of the quotient and remainder indicates the sign (positive: 0, negative: 1), respectively.
• The quotient is negative when either (s1) or (s2) is negative. The remainder is negative when the (s1) is negative.
■
Device specified by (d)
• The remainder is not obtained when a bit device is specified with nibble specification.
Operation error
Device
Name
Description
SM700
Carry
When the operation result of the signed operation exceeds 32767, the carry flag is turned ON.
SM8304
Zero
When the operation result is 0, the zero flag is turned ON.
SM8306
Carry
When the operation result of the signed operation exceeds 32767, the carry flag is turned ON.
Error code
(SD0/SD8067)
Description
2820H
The range of the device specified by (d) exceeds the range of said device.
3400H
0 is specified for (s2) value.
3403H
The data type of the data setting is signed data and the operation result exceeds 32767.
Summary of Contents for MELSEC iQ-F FX5
Page 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 17: ...15 CONTENTS ...
Page 24: ...22 MEMO ...
Page 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Page 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Page 1107: ...I 1105 MEMO ...
Page 1111: ......