Siemens NAN 67 Series Manual de servicio Pagina 150

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 318
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 149
11-6
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
11.5 Multiply Integer
A signal state of 1 at the Enable (EN) input activates the Multiply Integer
instruction. This instruction multiplies inputs IN1 and IN2. The result is a
32-bit integer that can be scanned at OUT. If the result is outside the
permissible range for a 16-bit 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-5 Multiply Integer Box and Parameters
LAD Box Parameter Data Type Memory Area Description
MUL I
EN BOOL I, Q, M, D, L Enable input
MUL_I
EN ENO
ENO BOOL I, Q, M, D, L Enable output
IN1
EN ENO
IN1 INT I, Q, M, D, L First value for multiplication
IN1
IN2 OUT
IN2 INT I, Q, M, D, L Second value for multiplication
IN2 OUT
OUT DINT I, Q, M, D, L Result of multiplication
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
MUL_I box. The result of the multiplication
MW0 x MW2 is put into memory double word
MD10. If the result is outside the permissible
range for a 16-bit integer or the signal state
of input I 0.0 is 0, output Q 4.0 is set.
Q 4.0
MUL_I
IN2
EN ENO
MW2 MD10
IN1MW0
S
Function is executed (EN = 1):
NOT
OUT
Figure 11-5 Multiply Integer
Description
Integer Math Instructions
Vista de pagina 149
1 2 ... 145 146 147 148 149 150 151 152 153 154 155 ... 317 318

Comentarios a estos manuales

Sin comentarios