Siemens NAN 67 Series Manual de Serviço Página 188

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 318
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 187
14-10
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
14.8 Ones Complement Integer
The Ones Complement Integer instruction reads the contents specified in the
input parameter IN and performs the Boolean word logic instruction
Exclusive Or Word (see Section 15.6) masked by FFFF
H
, so that every bit is
changed to its opposite value. The output parameter OUT provides the result.
ENO and EN always have the same signal state.
Certain restrictions apply to the placement of the Ones Complement Integer
conversion box (see Section 6.1).
Table 14-8 Ones Complement Integer Box and Parameters
LAD Box Parameter Data Type Memory Area Description
INV I
EN BOOL I, Q, M, D, L Enable input
INV
_
I
EN ENO
ENO BOOL I, Q, M, D, L Enable output
IN OUT
IN INT I, Q, M, D, L Input value
OUT INT I, Q, M, D, L Ones complement integer
Status Word Bits
BR CC 1 CC 0 OV OS OR STA RLO FC
Write x x 1 x x
I 0.0
If the signal state of input I 0.0 is 1, the
conversion is executed. Every bit in MW8
is reversed.
MW8 = 00000000 00000000
MW10 = 11111111 11111111
If the conversion is not executed, the signal
state of output Q 4.0 is 1 (ENO = EN).
Q 4.0
INV_I
EN ENO
MW10INMW8
NOT
OUT
Function is executed (EN = 1):
Figure 14-8 Ones Complement Integer
Description
Move and Conversion Instructions
Vista de página 187
1 2 ... 183 184 185 186 187 188 189 190 191 192 193 ... 317 318

Comentários a estes Manuais

Sem comentários