Comparison Instructions; Input Comparison Instructions (300 To 328) - Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual

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

Advertisement

Comparison Instructions

3-7
Comparison Instructions
3-7-1

Input Comparison Instructions (300 to 328)

Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
for Instructions for One-
word Data
This section describes instructions used to compare data of various lengths
and in various ways.
Instruction
Input Comparison Instructions
Time Comparison Instructions
COMPARE
DOUBLE COMPARE
SIGNED BINARY COMPARE
DOUBLE SIGNED BINARY
COMPARE
MULTIPLE COMPARE
TABLE COMPARE
BLOCK COMPARE
EXPANDED BLOCK COMPARE BCMP2
AREA RANGE COMPARE
DOUBLE AREA RANGE COM-
PARE
Input comparison instructions compare two values (constants and/or the con-
tents of specified words) and create an ON execution condition when the
comparison condition is true. Input comparison instructions are available to
compare signed or unsigned data of one-word or double length data.
Note Refer to 3-15-24 Single-precision Floating-point Comparison Instructions for
details on single-precision floating-point input comparison instructions and 3-
16-21 Double-precision Floating-point Input Instructions for details on double-
precision floating-point input comparison instructions.
Symbol & options
S
S
Variations
Creates ON Each Cycle Comparison is True
Immediate Refreshing Specification
Block program areas
OK
Area
CIO Area
Work Area
Mnemonic
=, <>, <, <=, >, >=
(S, L) (LD, AND, OR)
=DT, <>DT, <DT, <=DT, >DT,
>=DT (LD, AND, OR)
CMP
CMPL
CPS
CPSL
MCMP
TCMP
BCMP
ZCP
ZCPL
S
1
: Comparison data 1
1
S
2
: Comparison data 2
2
Step program areas
OK
S
1
CIO 0000 to CIO 6143
W000 to W511
Section 3-7
Function
code
300 to 328
341 to 346
020
060
114
115
019
085
068
502
088
116
Input compari-
son instruction
Not supported
Subroutines
Interrupt tasks
OK
OK
S
2
Page
291
297
303
306
309
312
315
317
320
322
326
329
291

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents