Omron SYSMAC C Series User Manual page 92

Hide thumbs Also See for SYSMAC C Series:
Table of Contents

Advertisement

Instruction words
Coding chart
Contents of data (S1, S2)
[Address [Instruction
| Data]
LD
Input/output re-
lay, internal auxi-}
00 to 19
liary relay
Holding relay
HRO to 9
Timer/counter
TIM/CNT00 to 47
Constant
#0000 to FFFF
OUT
CMP (20)
Note:
When the result register is jogical
1 , a CMP instruction is executed at
each scanning. To execute it only one time, program a differentiation
circuit for the input.
Nothing is executed when the content of the result register is logical 0.
Therefore, the compare result area of special auxiliary relays 1905 to
1907 holds the previous status, and on execution of an END instruction,
all of these relays are cleared to 0. When the contents of the result register
are logica! 1, the CMP instruction is executed.
In the circuit example, when the program is executed, the 16-bit data of
10CH (1000 to 1015) are compared with the 16-bit data of HROCH
(HR900 to 915), and the result is output to the result area of special
auxiliary relays 1905 to 1907.
(nput/output relay
Result of comparison
10CH
1905 | 1906 | 1907
10CH>HR9OCH
1
0
x16
[40CH=HRSCH
| 0 | 1
10CH<HR9CH
0
0
x16?
x16?
A constant iscompared with the four-digit hexadecimal (binary 16-bit)
data.
B-17

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SYSMAC C Series and is the answer not in the manual?

This manual is also suitable for:

Sysmac c20

Table of Contents