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

Programmable controllers
Hide thumbs Also See for CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009:
Table of Contents

Advertisement

3. Instructions
Function
ASR
ASR(026) shifts the contents of Wd
one bit to the right (from leftmost bit to
rightmost bit). "0" will be placed in the
leftmost bit and the contents of the
rightmost bit will be shifted into the
Carry Flag (CY).
ASRL
ASRL(571) shifts the contents of Wd
and Wd +1 one bit to the right (from
leftmost bit to rightmost bit). "0" will be
placed in the leftmost bit of Wd +1 and
the contents of the rightmost bit of Wd
will be shifted into the Carry Flag (CY).
Sample program
When CIO 0.00 is ON, word CIO 100 will
shift one bit to the right. "0" will be placed in
CIO 100.15 and the contents of CIO 100.00
will be shifted to the Carry Flag (CY).
0.00
Wd
310
Wd
Wd+1
When CIO 0.00 is ON, word CIO 100 and CIO 101
will shift one bit to the right. "0" will be placed into CIO
100.15 and the contents of CIO 100.00 will be shifted
to the Carry Flag (CY).
0.00
Wd
Wd
CS/CJ/NSJ Series Instructions Reference Manual (W474)
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