EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

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 #484 background imageLoading...
Page #484 background image
3. Instructions
446
CS/CJ/NSJ Series Instructions Reference Manual (W474)
COM/COML
Applicable Program Areas
Operands
z Operand Specifications
Flags
Function
z COM
COM(029) reverses the status of every specified bit in Wd.
Wd
→Wd: 1 → 0 and 0 → 1
Note When using the COM instruction, be aware that the status of each bit will change each cycle in which the
execution condition is ON.
z COML
COML(614) reverses the status of every specified bit in Wd and Wd+1.
(Wd+1, Wd
)→(Wd+1, Wd)
Note When using the COML instruction, be aware that the status of each bit will change each cycle in which the
execution condition is ON.
Instruction Mnemonic Variations
Function
code
Function
COMPLEMENT COM @COM 029
Turns OFF all ON bits and turns ON all OFF bits in
Wd.
DOUBLE COMPLEMENT COML @COML 614
Turns OFF all ON bits and turns ON all OFF bits in
Wd and Wd+1.
Symbol
COM COML
Area
Function block
definitions
Block program areas Step program areas Subroutines Interrupt tasks
SFC action or
transition programs
Usage OK OK OK OK OK OK
Operand Description
Data type Size
COM COML COM COML
Wd Word WORD DWORD 1 2
Area
Word addresses
Indirect DM/EM
addresses
Con-
stants
Registers Flags
Pulse
bits
TR
bits
CIO WR HR AR T C DM EM
@DM
@EM
*DM
*EM
DR IR
Indirect
using IR
TK CF
COM Wd
OK OK OK OK OK OK OK OK OK OK ---
OK
--- OK --- --- --- ---
COML Wd ---
Name Label Operation
Error Flag ER OFF
Equals Flag = • ON when the result is 0.
• OFF in all other cases.
Negative Flag N • ON when the leftmost bit of R is 1.
• OFF in all other cases.
Wd: Word
COM(029)
Wd
Wd: Word
COML(614)
Wd

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