Omron SYSMAC CS Series Instruction & Reference Manual page 266

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

3. Instructions
Function
 ASL
ASL(025) shifts the contents of Wd one bit to
the left (from rightmost bit to leftmost bit). "0"
is placed in the rightmost bit and the data
from the leftmost bit is shifted into the Carry
Flag (CY).
 ASLL
ASLL(570) shifts the contents of Wd and Wd
+1 one bit to the left (from rightmost bit to
leftmost bit). "0" is placed in the rightmost bit
of Wd and the contents of the leftmost bit of
Wd and Wd +1 are shifted into the Carry Flag
(CY).
Example Programming
When CIO 0.00 is ON, CIO 100 will be
shifted one bit to the left. "0" will be placed in
CIO 100.00 and the contents of CIO 100.15
will be shifted to the Carry Flag (CY).
0.00
Wd
Wd
232
15
Wd+1
When CIO 0.00 is ON, word CIO 100 and CIO
101 will shift one bit to the left. "0" is placed into
CIO 100.00 and the contents of CIO 101.15 will
be shifted to the Carry Flag (CY).
0.00
Wd
Wd
CS/CJ/NSJ Series Instructions Reference Manual (W474)
0
Wd
Wd

Advertisement

Table of Contents
loading

Table of Contents