166
5-14-5 SHIFT N-BIT DATA LEFT: NSFL(054)
(
054
)
NSFL D C N
Operand Data AreasLadder Symbol
Variations
↑NSFL(054)
N: Shift data length CIO, G, A, T, C, #, DM, DR, IR
D: Beginning word for shift CIO, G, A
C: Beginning bit CIO, G, A, T, C, #, DM, DR, IR
When the execution condition is OFF, NSFL(054) is not executed. When the ex-
ecution condition is ON, NSFL(054) shifts the specified number of bits (i.e., the
shift data length) from the beginning bit in the beginning word (bit C of word D),
one bit to the left. A “0” is shifted into the beginning bit. The status of the Nth bit is
shifted to CY (A50004).
If the shift data length (D) is “0,” the beginning bit (C) data will be copied to CY
and the status of the beginning bit (C) will not be changed.
Set the beginning bit to a value from 0000 to 0015 BCD.
CY
D Wd: C bit
N bits
0
D Wd
Precautions C must be between 0000 and 0015 and must be BCD.
Note Refer to page 115 for general precautions on operand data areas.
Flags ER (A50003): C is not 0000 to 0015 BCD.
Content of a*DM word is not BCD when set for BCD.
CY (A50004): “1” has been shifted to CY.
Example When the CIO 000000 is ON in the following example, the 18 bits of data starting
from bit 03 of CIO 0001 are shifted to the left one bit at a time. A “0” is entered for
the beginning bit (CIO 000103) of the shift. The status of bit CIO 000204 is
shifted to CY.
Address Instruction Operands
00000 LD 000000
00001 NSFL(054)
0001
#0003
#0018
Description
(CVM1 V2)
Shift Instructions Section 5-14
(054)
NSFL 0001 #0003 #0018
0000
00