Siemens NAN 67 Series Wartungshandbuch Seite 204

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 318
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 203
15-8
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
15.7 WXOr Double Word
A 1 at the Enable (EN) input activates the (Word) Exclusive Or Double Word
instruction. This instruction combines the two digital values indicated in
inputs IN1 and IN2 bit by bit, according to the XOr 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-6 (Word) Exclusive Or Double Word Box and Parameters
LAD Box
Parameter Data Type Memory Area Description
WXOR DW
EN BOOL I, Q, M, D, L Enable input
WXOR
_
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 OUT
IN2 DWORD I, Q, M, D, L Second value for logic operation
IN2 OUT
O 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.
IN1 = 0101010101010101 0101010101010101
IN2 = 0000000000000000 0000111111111111
OUT = 0101010101010101 0101010101010101
The signal state of output Q 4.0 is 1 if the operation is
executed.
Q 4.0
WXOR_DW
IN2
OUT
EN ENO
DW#16#FFF
MD4
IN1MD0
Function is executed (EN = 1):
Figure 15-6 WXOr Double Word
Description
Word Logic Instructions
Seitenansicht 203
1 2 ... 199 200 201 202 203 204 205 206 207 208 209 ... 317 318

Kommentare zu diesen Handbüchern

Keine Kommentare