Siemens NAN 67 Series Wartungshandbuch Seite 152

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 318
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 151
11-8
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
11.7 Divide Integer
A signal state of 1 at the Enable (EN) input activates the Divide Integer
instruction. This instruction divides input IN1 by IN2. The integer quotient
(truncated result) can be scanned at OUT. The remainder cannot be scanned.
If the quotient is outside the permissible range for an integer, the OV and the
OS bit of the status word are 1 and the ENO is 0.
Certain restrictions apply to the placement of integer math boxes (see
Section 6.1).
Table 11-7 Divide Integer Box and Parameters
LAD Box Parameter Data Type Memory Area Description
DIV I
EN BOOL I, Q, M, D, L Enable input
DIV_I
EN ENO
ENO BOOL I, Q, M, D, L Enable output
IN1
EN ENO
IN1 INT I, Q, M, D, L Dividend
IN1
IN2 OUT
IN2 INT I, Q, M, D, L Divisor
IN2 OUT
OUT INT I, Q, M, D, L Result of division
Status Word Bits
BR CC 1 CC 0 OV OS OR STA RLO FC
Write x x x x x x 1 x x
I 0.0
A signal state of 1 at input I 0.0 activates the
DIV_I box. The quotient of dividing MW0 by
MW2 is put into memory word MW10. If the
quotient is outside the permissible range for
an integer or the signal state of input I 0.0
is 0, output Q 4.0 is set.
Q 4.0
DIV_I
IN2
EN ENO
MW2 MW10
IN1MW0
S
Function is executed (EN = 1):
NOT
OUT
Figure 11-7 Divide Integer
Description
Integer Math Instructions
Seitenansicht 151
1 2 ... 147 148 149 150 151 152 153 154 155 156 157 ... 317 318

Kommentare zu diesen Handbüchern

Keine Kommentare