Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual page 352

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).
Example Programming
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
316
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

Table of Contents