Mitsubishi Electric MELSEC FX3U Programming Manual page 296

Melsec fx series programmable logic controllers
Table of Contents
FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
Program examples
1. 16-bit operation
X000
FNC 23
DIV
2. 32-bit operation
X001
FNC 23
DDIV
Function Changes According to Versions
FX
3G
Ver. 1.00 or later Ver. 2.30 or later
294
S
S
1
2
D 0
D 2
S
S
1
2
D 0
D 2
Compatible Versions
FX
FX
3U
Ver. 2.30 or later
10 Arithmetic and Logical Operation (+, −, ×, ÷) – FNC 20 to FNC 29
D
Dividend
Divisor
D 4
÷ (D 2) → (D 4)
(D 0)
100
33
D
Dividend
Divisor
D 4
(D 1,D 0) ÷ (D 3,D 2) → (D 5,D 4) ... (D 7,D 6)
100,000
3333
Item
3UC
Turns M8304 ON when the operation result of DIV
Zero Flag
instruction is 0.
Turns M8306 ON when the operation result of DIV
instruction overflows.
16-bit operation : Only when the maximum negative
Carry Flag
32-bit operation : Only when the maximum negative
10.4 FNC 23 – DIV / Division
Quotient
Remainder
...
(D 5)
3
1
Quotient
Remainder
30
10
Function Summary
value(-32,768) is divided by -1.
value
(-2,147,483,648) is divided by -1.
Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents