Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 483

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Logic Instructions
Precautions
Examples
3-12-10 DOUBLE COMPLEMENT: COML(614)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
450
When COM(029) is executed, the Error Flag will turn OFF.
If as a result of COM, the content of R is 0000 hex, the Equals Flag will turn
ON.
If as a result of COM, the leftmost bit of R is 1, the Negative Flag will turn ON.
When CIO 0.00 is ON in the following example, the status of each bit will be
D100 is reversed.
0.00
D100
Turns OFF all ON bits and turns ON all OFF bits in Wd and Wd+1.
COML(614)
Wd
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Block program areas
OK
OK
Area
CIO Area
Work Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
DM Area
Indirect DM addresses
in binary
Indirect DM addresses
in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
D100
D100
Wd: Word
Step program areas
Subroutines
OK
CIO 0 to CIO 6142
W0 to W510
H0 to H510
A448 to A958
T0000 to T4094
C0000 to C4094
D0 to D32766
@ D0 to @ D32767
*D0 to *D32767
---
---
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Section 3-12
COML(614)
@COML(614)
Not supported.
Interrupt tasks
OK
Wd

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents