![Omron CVM1D Скачать руководство пользователя страница 161](http://html1.mh-extra.com/html/omron/cvm1d/cvm1d_operation-manual_742532161.webp)
156
Example
When CIO 000000 is ON in the following example, the18 bits of data beginning
from bit 03 of CIO 0001 are shifted to the right, one at a time. A “0” is entered for
the beginning bit (CIO 000204) of the shift. The status of bit CIO 000103 is
shifted to CY.
Address
Instruction
Operands
00000
LD
000000
00001
NSFR(055)
0001
#0003
#0018
D+1: Wd 0002
D: Wd 0001
N: 18 bits
Executed once
CY
0
0
0
0
0 0
0
0 0 0 1 1
1
1
1
1
1
1
04
03
MSB
LSB
0
0
0
0 0
0
0
0
0
1
1
1
1
1
1
1
1
04
03
MSB
LSB
CY
1
0
1
5-14-7 SHIFT N-BITS LEFT: NASL(056)
(
056
)
NASL D C
Operand Data Areas
Ladder Symbol (NASL)
Variations
↑
NASL(056)
D: Shift word
CIO, G, A, DM, DR, IR
C: Control word
CIO, G, A, T, C, #, DM, DR, IR
When the execution condition is OFF, NASL(056) is not executed. When the ex-
ecution condition is ON, NASL(056) shifts the status of the 16 bits in the speci-
fied word to the left the specified number of bits.
The number of bits to shift is set in the two rightmost digits of the control word. If
the number is “0,” the data will not be shifted. The appropriate flags (see below)
will turn ON and OFF, however, according to data in the specified word.
CY
Wd D
. . . . .
Number of bits shifted
A5004
Description
Shift Instructions
Section 5-14
(055)
NSFR 0001 #0003 #0018
0000
00
Содержание CVM1D
Страница 462: ...SYSMAC CVM1D Duplex System Programmable Controllers Operation Manual Revised August 2001...
Страница 463: ...iv...
Страница 465: ...vi...