EasyManuals Logo

Omron SYSMAC CP Series Instruction & Reference Manual

Omron SYSMAC CP Series
467 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 #148 background imageLoading...
Page #148 background image
2 Instructions
2-112
CP1E CPU Unit Instructions Reference Manual(W483)
Function
Hint
The same word can be specified for both S and D to copy a bit within a word.
Precautions
The other bits in the destination word are left unchanged.
Sample program
When CIO 0.00 is ON in the following example, the 5
th
bit of the source word (W0) is copied to the 12
th
bit of the destination word (W100) in accordance with the control word’s value of 0C05.
MOVB(082) copies the specified bit (n) from S
to the specified bit (m) in D.
Cm n
S
n
D
m
MOVB
W0
D200
W100
0.00
S
C
D
D:W100
011415
S:W0
0151415
C:D200
0C 05
07
8
78
78
15
12

Table of Contents

Other manuals for Omron SYSMAC CP Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron SYSMAC CP Series and is the answer not in the manual?

Omron SYSMAC CP Series Specifications

General IconGeneral
BrandOmron
ModelSYSMAC CP Series
CategoryComputer Hardware
LanguageEnglish

Related product manuals