Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 367

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Comparison Instructions
Description
Area
EM Area with bank
Indirect DM/EM
addresses in binary
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing using
Index Registers
ZCP(088) compares the 16-bit signed binary data in CD with the range
defined by LL and UL and outputs the result to the Greater Than, Equals, and
Less Than Flags in the Auxiliary Area. (The Less Than or Equal, Greater
Than or Equal, and Not Equal Flags are left unchanged.)
Arithmetic Flag Status
The following table shows the status of the Arithmetic Flags after execution of
ZCP(088).
ZCP(088)Result
CD > UL
ON
CD = UL
OFF
LL < CD < UL
CD = LL
CD < LL
Using ZCP(088) Results in the Program
When ZCP(088) is executed, the result is reflected in the Arithmetic Flags.
Control the desired output or right-hand instruction with a branch from the
same input condition that controls ZCP(088), as shown in the following dia-
gram. In this case, the Equals Flag and output A will be turned ON when
LL
CD
UL.
CD
En_00000 to En_32767
(n = 0 to C)
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
#0000 to #FFFF
(binary)
DR0 to DR15
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Flag status
>
=
<
OFF
OFF
ON
OFF
ON
Section 3-7
LL
UL
327

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents