Siemens NAN 67 Series Manual de servicio Pagina 154

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 318
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 153
11-10
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
11.9 Return Fraction Double Integer
A signal state of 1 at the Enable (EN) input activates the Return Fraction
Double Integer instruction. This instruction divides input IN1 by IN2. The
remainder (fraction) can be scanned at OUT. If the result is outside the
permissible range for a double 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-9 Return Fraction Double Integer Box and Parameters
LAD Box Parameter Data Type Memory Area Description
MOD
EN BOOL I, Q, M, D, L Enable input
MOD
EN ENO
ENO BOOL I, Q, M, D, L Enable output
IN1
EN ENO
IN1 DINT I, Q, M, D, L Dividend
IN1
IN2 OUT
IN2 DINT I, Q, M, D, L Divisor
IN2 OUT
OUT DINT I, Q, M, D, L Remainder
Status Word Bits
I 0.0
A signal state of 1 at input I 0.0 activates
the MOD box. The remainder (fraction) of
dividing MD0 by MD4 is stored in memory
double word MD10. If the result is outside
the permissible range for a double integer
or the signal state of input I 0.0 is 0, output
Q 4.0 is set.
Q 4.0
MOD
IN2
EN ENO
MD4 MD10
IN1MD0
S
Function is executed (EN = 1):
NOT
OUT
BR CC 1 CC 0 OV OS OR STA RLO FC
Write x x x x x x 1 x x
Figure 11-9 Return Fraction Double Integer
Description
Integer Math Instructions
Vista de pagina 153
1 2 ... 149 150 151 152 153 154 155 156 157 158 159 ... 317 318

Comentarios a estos manuales

Sin comentarios