EasyManua.ls Logo

Omron SYSMAC CV Series - Shift N-Bits Left: Nasl(056)

Omron SYSMAC CV Series
636 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
168
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
000
00 0 00011111111
04 03MSB LSB
00000 0 0 0011111111
04 03MSB LSB
CY
1
0
1
5-14-7 SHIFT N-BITS LEFT: NASL(056)
(
056
)
NASL D C
Operand Data AreasLadder 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
(CVM1 V2)
Shift Instructions Section 5-14
(055)
NSFR 0001 #0003 #0018
0000
00

Table of Contents

Related product manuals