Siemens NAN 67 Series Manual de servicio Pagina 168

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 318
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 167
12-12
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
12.10 Establishing the Exponential Value of a Floating-Point Number
With the Establishing the Exponential Value of a Floating-Point Number
instruction you can establish the exponential value of a floating-point number
to base e (= 2.71828...).
You can find information on the effects that the instruction EXP has on the
status bits CC 1, CC 0, OV and OS in Section 12.6.
Table 12-11 Box EXP and Parameters
LAD Box Parameter Data
Type
Memory
Area
Description
EXP
EN BOOL I, Q, M, D, L Enable input
EXP
EN ENO
ENO BOOL I, Q, M, D, L Enable output
EN
IN OUT
ENO
IN REAL I, Q, M, D, L Number
OUT REAL I, Q, M, D, L Exponent of the
number
Status Word Bits
BR CC 1 CC 0 OV OS OR STA RLO FC
Write x x x x x 0 x x 1
Function is executed (EN = 1):
I 0.0
Q 4.0
EXP
OUT
EN ENO
MD10
INMD0
S
NOT
The box EXP is activated when I 0.0 = 1. The
result of EXP (MD0) is stored in the memory
double word MD10. If MD0 < 0 or if the result
is outside of the permissible area for
floating-point numbers or if the signal state of
I 0.0 = 0, output Q 4.0 is set.
Figure 12-8 Establishing the Exponential Value of a Floating-Point Number
Description
Floating-Point Math Instructions
Vista de pagina 167
1 2 ... 163 164 165 166 167 168 169 170 171 172 173 ... 317 318

Comentarios a estos manuales

Sin comentarios