Siemens NAN 67 Series Wartungshandbuch Seite 196

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 318
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 195
14-18
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
14.16 Floor
The Floor conversion instruction reads the contents specified in the input
parameter IN as a real number and converts this number to a double integer.
The result is the highest integer component which is lower than or equal to
the specified real number. The output parameter OUT provides the result. If
an overflow occurs, ENO is 0.
Certain restrictions apply to the placement of the Floor conversion box (see
Section 6.1).
Table 14-16 Floor Conversion Box and Parameters
LAD Box Parameter Data Type Memory Area Description
FL
OO
R
EN BOOL I, Q, M, D, L Enable input
FLOOR
EN ENO
ENO BOOL I, Q, M, D, L Enable output
IN OUT
IN REAL I, Q, M, D, L Value to convert
OUT DINT I, Q, M, D, L Result
Status Word Bits
BR CC 1 CC 0 OV OS OR STA RLO FC
Write x x x x 1 x x
I 0.0
If the signal state of input I 0.0 is 1, the
conversion is executed. The contents of
memory double word MD8 is read as a real
number and converted to a double integer by
rounding to the next lower (or equal) whole
number. The result is stored in memory
double word MD12. If an overflow occurred,
the signal state of output Q 4.0 is 1. If the
signal state at input EN is 0 (that is, if the
conversion is not executed), the signal state
of output Q 4.0 is also 1.
Q 4.0
FLOOR
IN
EN ENO
MD8 MD12
Function is executed (EN = 1):
NOT
OUT
Figure 14-16 Floor
Description
Move and Conversion Instructions
Seitenansicht 195
1 2 ... 191 192 193 194 195 196 197 198 199 200 201 ... 317 318

Kommentare zu diesen Handbüchern

Keine Kommentare