Siemens NAN 67 Series Wartungshandbuch Seite 202

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 318
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 201
15-6
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
15.5 WOr Double Word
A 1 at the Enable (EN) input activates the (Word) Or Double Word
instruction. This instruction combines the two digital values indicated in
inputs IN1 and IN2 bit by bit, according to the Or 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-4 (Word) Or Double Word Box and Parameters
LAD Box
Parameter Data Type Memory Area Description
WOR DW
EN BOOL I, Q, M, D, L Enable input
WOR
_
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
Read * * * *
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.
Bits 0 to 11 are set to 1; the rest of memory double word
MD4 remains unchanged:
IN1 = 0101010101010101 0101010101010101
IN2 = 0000000000000000 0000111111111111
OUT = 0101010101010101 0101111111111111
The signal state of output Q 4.0 is 1 if the operation is
executed.
Q 4.0
WOR_DW
IN2
OUT
EN ENO
DW#16#FFF
MD4
IN1MD0
Function is executed (EN = 1):
Figure 15-4 (Word) Or Double Word
Description
Word Logic Instructions
Seitenansicht 201
1 2 ... 197 198 199 200 201 202 203 204 205 206 207 ... 317 318

Kommentare zu diesen Handbüchern

Keine Kommentare