Siemens NAN 67 Series Wartungshandbuch Seite 165

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 318
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 164
12-9
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
12.8 Establishing the Square and/or the Square Root of a Floating-Point
Number
With the Establishing the Square of a Floating-Point Number instruction, you
can square a floating-point number.
With the instruction Establishing the Square Root of a Floating-Point
Number, you can extract the square root of a floating-point number. This
instruction produces a positive result when the address is greater than “0”.
Sole exception: the square root of -0 is -0.
You can find information on the effects that the instructions SQR and SQRT
have on the status bits CC 1, CC 0, OV and OS in Section 12.6.
Table 12-8 shows the box SQR and describes the parameters. Table 12-9
shows the box SQRT and describes the parameters.
Table 12-8 Box SQR and Parameters
LAD Box Parameter Data
Type
Memory
Area
Description
EN BOOL I, Q, M, D, L Enable input
SQR
EN ENO
ENO BOOL I, Q, M, D, L Enable output
EN
IN OUT
ENO
IN REAL I, Q, M, D, L Number
IN OUT
OUT REAL I, Q, M, D, L Square of the
number
Table 12-9 Box SQRT and Parameters
LAD Box
Parameter Data
Type
Memory
Area
Description
SQ
EN BOOL I, Q, M, D, L Enable input
SQRT
EN ENO
ENO BOOL I, Q, M, D, L Enable output
EN
IN OUT
ENO
IN REAL I, Q, M, D, L Number
IN OUT
OUT REAL I, Q, M, D, L Square root of the
number
Description
Parameters
Floating-Point Math Instructions
Seitenansicht 164
1 2 ... 160 161 162 163 164 165 166 167 168 169 170 ... 317 318

Kommentare zu diesen Handbüchern

Keine Kommentare