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

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 318
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 199
15-4
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
15.3 WAnd Double Word
A 1 at the Enable (EN) input activates the (Word) And Double Word
instruction. This instruction combines the two digital values indicated in
inputs IN1 and IN2 bit by bit, according to the And truth table. The values
are interpreted as pure bit patterns. The result can be scanned at the output
OUT. ENO has the same signal state as EN.
The relationship of the result at output OUT to 0 affects condition code bit
CC 1 of the status word as follows:
S If the result at output OUT is not equal to 0, condition code bit CC 1 of
the status word is set to 1.
S If the result at output OUT is equal to 0, condition code bit CC 1 of the
status word is 0.
Certain restrictions apply to the placement of word logic boxes (see
Section 6.1).
Table 15-2 (Word) And Double Word Box and Parameters
LAD Box
Parameter Data Type Memory Area Description
WAND DW
EN BOOL I, Q, M, D, L Enable input
WAND
_
DW
EN ENO
ENO BOOL I, Q, M, D, L Enable output
IN1
EN ENO
IN1 DWORD I, Q, M, D, L First value for logic operation
IN1
IN2
OU
T
IN2 DWORD I, Q, M, D, L Second value for logic operation
IN2 OUT
OUT DWORD I, Q, M, D, L Result of logic operation
Status Word Bits
BR CC 1 CC 0 OV OS OR STA RLO FC
Write 1 x 0 0 x 1 1 1
I 0.0
A signal state of 1 at input I 0.0 activates the instruction.
Only bits 4 to 11 are important; the rest of memory double
word MD4 is masked:
IN1 = 0101010101010101 0101010101010101
IN2 = 0000000000000000 0000111111111111
OUT = 0000000000000000 0000010101010000
The signal state of output Q 4.0 is 1 if the operation is
executed.
Q 4.0
WAND_DW
IN2
OUT
EN ENO
DW#16#FF0
MD4
IN1MD0
Function is executed (EN = 1):
Figure 15-2 (Word) And Double Word
Description
Word Logic Instructions
Vista de página 199
1 2 ... 195 196 197 198 199 200 201 202 203 204 205 ... 317 318

Comentários a estes Manuais

Sem comentários