EasyManuals Logo

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #362 background image
3. Instructions
324
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
z ROR
z RORL
Hint
It is possible to set the Carry Flag contents to 1 or 0 immediately before executing this instruction, by
using the Set Carry (STC(040)) or Clear Carry (CLC(041)) instructions.
Example Programming
ROR(028) shifts all bits of Wd including the
Carry Flag (CY) to the right (from leftmost bit
to rightmost bit).
RORL(573) shifts all bits of Wd and Wd +1
including the Carry Flag (CY) to the right
(from leftmost bit to rightmost bit).
When CIO 0.00 is ON, word CIO 100 and the
Carry Flag (CY) will shift one bit to the right.
The contents of CIO 100.00 will be shifted to
the Carry Flag (CY) and the Carry Flag
contents will be shifted to CIO 100.15.
When CIO 0.00 is ON, word CIO 100, CIO 101 and
the Carry Flag (CY) will shift one bit to the right. The
contents of CIO 101.00 will be shifted to the Carry
Flag (CY) and the Carry Flag contents will be shifted
to CIO 101.15.
Wd
Wd
Wd+1
Instruction executed once
Wd
Wd: CIO 100
0.00
Wd
Instruction executed once
Wd: CIO 100Wd+1: CIO 101
0.00

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals