Omron CS1G/H-CPUxxH Instructions Manual page 286

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Comparison Instructions
Flags
Example
3-7-7
TABLE COMPARE: TCMP(085)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Name
Label
Error Flag
ER
Equals Flag
=
When CIO 000000 is ON in the following example, MCMP(019) compares
words D00100 through D00115 in order to words D00200 through D00215
and turns ON the corresponding bits in D00300 when the words are not
equal.
S1:
Compares the source data to the contents of 16 consecutive words and turns
ON the corresponding bit in the result word when the contents of the words
are equal.
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
Operation
OFF
ON if the result word is 0000.
(The two 16-word sets contain the same data.)
OFF in all other cases.
S2:
TCMP(085)
S
S: Source data
T: First word of table
T
R
R: Result word
Step program areas
Subroutines
OK
Section 3-7
R: D00300
TCMP(085)
@TCMP(085)
Not supported
Interrupt tasks
OK
265

Advertisement

Table of Contents
loading

Table of Contents