Omron SYSMAC CP CP1E-N@@D@-@ Bedienungsanleitung Seite 393

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 467
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 392
2-357
2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
Basic I/O Unit Instructions
2
DSW
DSW
Applicable Program Areas
Operands
I: Input Word (Data Line D0 to D3 Inputs)
Specify the input word allocated to the Input Unit and connect the digital switch’s D0 to D3 data lines to
the Input Unit as shown in the following diagram.
O: Output Word (CS/RD Control Signal Outputs)
Specify the output word allocated to the Output Unit and connect the digital switch’s control signals (CS
and RD signals) to the Output Unit as shown in the following diagram.
Instruction Mnemonic Variations
Function
code
Function
DIGITAL SWITCH INPUT DSW --- 210
Reads the value set on a external digital switch (or
thumbwheel switch) connected to an I/O Unit and
stores the 4-digit or 8-digit value in the specified
words.
Symbol
DSW
Area Step program areas Subroutines Interrupt tasks
Usage OK OK Not allowed
Operand Description Data type Size
I Input word UINT 1
O Output word UINT 1
D First result word WORD Variable
C1 Number of digit UINT 1
C2 System word WORD 1
I: Input word
O: Output word
D: First result word
C1: Number of digits
C2: System word
DSW(210)
I
O
D
C1
C2
0123456789101112131415
I
D0
D1
D2
D3
D3
D2
D1
D0
Rightmost 4 digitsLeftmost 4 digits
0123456789101112131415
O
CS0
CS1
CS2
CS3
CS signals
One Round Flag
RD0 Read signal
Seitenansicht 392
1 2 ... 388 389 390 391 392 393 394 395 396 397 398 ... 466 467

Kommentare zu diesen Handbüchern

Keine Kommentare