Herunterladen Inhalt Inhalt Diese Seite drucken

Fnc23 (Div): Division - Mitsubishi MELSEC FX 2N Serie Bedienungsanleitung

Speicherprogrammierbare steuerungen
Vorschau ausblenden Andere Handbücher für MELSEC FX 2N Serie:
Inhaltsverzeichnis

Werbung

Programmierung/Programmformat
6.10.16

FNC23 (DIV): Division

FNC 23
Operanden
und
Anweisungs-
format
Abb. 6-64: Beispiel zu FNC23 (DIV): Division
Diese Anweisung wird nicht ausgeführt, wenn der Divisor den Wert 0 hat.
Der Rest ist ein negativer Wert, wenn der Dividend ein negativer Wert ist.
Positioniermodule FX
2N
DIV
16-Bit-Operation
7 Schritte
S1.
Wort-
Operand
K, H
KnX
Eingang
FNC 22
MUL
X33
FNC 23
D 0
DIV
FNC 23
D 10
[D] DIV
-10GM/20GM
Beschreibung der Applikationsanweisungen
Division
DIV
32-Bit-Operation [D]DIV
11 Schritte
S2.
S1.
S2.
KnY
KnM
D
V, Z
D.
S1.
S2.
D.
Divident
Divisor
Quotient
Divident ÷
(D0)
D 2
D 4
16 Bit
(D11, D10) ÷ (D13, D12) → (D15, D14) ... (D17, D16)
D 12
D 14
32 Bit
anwendbare Modelle
Modell
FX
-10GM
2N
FX
-20GM
2N
b S1. ÷ S2. = D. ... D+1
Achten Sie besonders auf das
Ergebnis der Operation.
(Siehe das folgende Beispiel.)
Divisor →
Quotient ...
(D2)
(D4)
16 Bit
16 Bit
32 Bit
32 Bit
Bem.
FXH0183C
Rest
(D5)
16 Bit
32 Bit
FXH0184C
6 - 71

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis