Delta-electronics Extension Digital I/O Module DOP-EXIO14RAE Manual de usuario Pagina 130

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 157
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 129
Appendix D Use of Application Instructions|DOP-EXIO Series
Revision March, 2008, Doc. Name: 2007PDD23000014 D-49
Mnemonic Operands Function
RCR D
D
n
Rotation Right with Carry
Bit Devices Word Devices
X Y M S K H KnX KnY KnM KnS T C D E F
D
n
y Note:
1. If D is used in device F, only 16-bit instruction is applicable.
2. If D is designated as KnY, KnM, and KnS, only K4 (16-bit) and K8
(32-bit) are valid.
3. Range of n: 1 ~ 16 (16-bit); 1 ~ 32 (32-bit)
16-bit instruction (5 Steps)
RCR
Continuous
execution
32-bit instruction (9 Steps)
DRCR
Continuous
execution
y Flags: M1022 (Carry flag)
Operands:
D
: Device to be rotated
n
: Number of bits to be rotated in 1 rotation
Explanations:
This instruction rotates the device content designated by D together with carry flag M1022 to the right
for
n bits.
Program Example:
When X0 = OffOn, the 16 bits (4 bits as a group) in D10 together with carry flag M1022 (total 17 bits)
will rotate to the right, as shown in the figure below. The bit marked with
will be sent to carry flag
M1022.
00011100 01001 001
10001100111000 0
0
1
X0
D10 K4
Rotate to the right
16 bits
Carry
flag
Carry
flag
After one rotation
to the right
lower bit
lower bit
1
D10
D10
higher bit
higher bit
Vista de pagina 129
1 2 ... 125 126 127 128 129 130 131 132 133 134 135 ... 156 157

Comentarios a estos manuales

Sin comentarios