Com/Coml - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

3. Instructions

COM/COML

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

Advertisement

Table of Contents
loading

Table of Contents