Omron SYSMAC CP CP1E-N@@D@-@ Instrukcja Użytkownika Strona 148

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 467
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 147
2 Instructions
2-112
CP1E CPU Unit Instructions Reference Manual(W483)
Function
Hint
The same word can be specified for both S and D to copy a bit within a word.
Precautions
The other bits in the destination word are left unchanged.
Sample program
When CIO 0.00 is ON in the following example, the 5
th
bit of the source word (W0) is copied to the 12
th
bit of the destination word (W100) in accordance with the control words value of 0C05.
MOVB(082) copies the specified bit (n) from S
to the specified bit (m) in D.
Cm n
S
n
D
m
MOVB
W0
D200
W100
0.00
S
C
D
D:W100
011415
S:W0
0151415
C:D200
0C 05
07
8
78
78
15
12
Przeglądanie stron 147
1 2 ... 143 144 145 146 147 148 149 150 151 152 153 ... 466 467

Komentarze do niniejszej Instrukcji

Brak uwag