Omron CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 Reference Manual page 345

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
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).
Sample program
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
308
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
Need help?

Need help?

Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?

Questions and answers

Table of Contents