C40K-CDR-A Omron, C40K-CDR-A Datasheet - Page 124

no-image

C40K-CDR-A

Manufacturer Part Number
C40K-CDR-A
Description
PROGRAMMABLE CONTROLLER CPU
Manufacturer
Omron
Datasheet

Specifications of C40K-CDR-A

Leaded Process Compatible
No
Peak Reflow Compatible (260 C)
No
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
DATA COMPARE – CMP(20)
Example 1:
Saving CMP(20) Results
Example 2:
Obtaining Indications
during Timer Operation
Address
0000
0001
0002
0003
0004
Instruction
LD
OUT
CMP(20)
LD
AND
The following example shows how to save the comparison result immedi-
ately. If the content of HR 8 is greater than that of 9, 0200 is turned ON; if the
two contents are equal, 0201 is turned ON; if content of HR 8 is less than
that of HR 9, 0202 is turned ON. In some applications, only one of the three
OUTs would be necessary, making the use of TR 0 unnecessary. With this
type of programming, 0200, 0201, and 0202 are changed only then CMP(20)
is executed.
The following example uses TIM, CMP(20), and the LE flag (1907) to pro-
duce outputs at particular times in the timer’s countdown. The timer is started
by turning ON 0000. When 0000 is OFF, the TIM (10) is reset and the second
two CMP(20)s are not executed (i.e., executed with OFF execution condi-
tions). Output 0200 is output after 100 seconds; output 0201, after 200 sec-
onds; output 0202, after 300 seconds; and output 0204, after 500 seconds.
0000
TR
HR
HR
TR
Operands
TR
0
1905
1906
1907
0000
1905
0
8
9
0
Address
0005
0006
0007
0008
0009
0010
0011
Instruction
OUT
LD
AND
OUT
LD
AND
OUT
TR
TR
Operands
CMP(20)
0200
1906
0201
1907
0202
HR 8
HR 9
0
0
0200
0202
0201
Section 5-14
Greater Than
Less Than
Equal
113

Related parts for C40K-CDR-A