Siemens NAN 67 Series Manual de servicio Pagina 165

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 318
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 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
Vista de pagina 164
1 2 ... 160 161 162 163 164 165 166 167 168 169 170 ... 317 318

Comentarios a estos manuales

Sin comentarios