3. Instructions
330
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
Example Programming
z NSFL
When CIO 0.00 is ON, all bits from the beginning bit 3 to the shift data length (B hex) will be shifted one
bit to the left (from the rightmost bit to the leftmost bit). “0” will be placed into bit 3 of CIO 100. The
contents of the leftmost bit in the shift area (bit 13 of CIO 100) are copied into the Carry Flag (CY).
z NSFL
NSFL(578) shifts the specified number of bits by
the shift data length (N) from the beginning bit (C)
in the rightmost word, as designated by D one bit to
the left (towards the leftmost word and the leftmost
bit). “0” is place into the beginning bit and the con-
tents of the leftmost bit in the shift area are shifted
to the Carry Flag (CY).
Note • When the shift data length (N) is 0, the contents of
the beginning bit will be copied to the Carry Flag
(CY), and its contents will not be changed.
• Only the bits shifted into rightmost word in the shift
area (i.e. leftmost word data) will be changed.
z NSFR
NSFR(579) shifts the specified number of bits by
the shift data length (N) from the beginning bit (C)
in the rightmost word as designated by D one bit to
the right (towards the rightmost word and the right-
most bit). “0” will be placed into the beginning bit
and the contents of the rightmost bit in the shift
area will be shifted to the Carry Flag (CY).
Note • When the shift data length (N) is 0, the contents of
the beginning bit will be copied to the Carry Flag
(CY), and its contents will not be changed.
• Only the bits shifted into rightmost word in the shift
area (i.e. leftmost word data) will be changed
Shifts one bit to the left
N−1 bit
N−1 bit
Shifts one bit to the right
N-1 bit
N-1 bit
0
D: CIO 100
D: CIO 100
&3
&11
D
C
N
0.00
C: Starting from bit 3
N: 11 bits