EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #787 background imageLoading...
Page #787 background image
749
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
High-speed Counter/Pulse Output Instructions
3
CTBL
• For range comparisons, the interrupt task for any one range will be executed only once each time the
comparison value enters or leaves the range. It will not be executed again until the condition for
execution is no longer met and then met again. The Range Comparison Condition Met Flag, however,
will be ON whenever the comparison value is within the range regardless of the out of range/in range
specification.
• Set the interrupt task number to FFFF hex to disable the range. Any range set to FFFF hex will be
ignored.
Example Programming
When CIO 0.00 turns ON in the following programming example, CTBL(882) registers a target value
comparison table and starts comparison for high-speed counter 0. The PV of the high-speed counter is
counted incrementally and when it reaches 500, it equals target value 1 and interrupt task 1 is
executed. When the PV is incremented to 1000, it equals target value 2 and interrupt task 2 is executed.
@CTBL
#0000
#0000
D100
0002
01F4
0000
0001
03E8
0000
0002
0.00
D100
D101
D102
D103
D104
D105
D106
No.1
No.2
No.1
High-speed counter PV
Target value 2: 1,000 decimal
Target value 1: 500 decimal
Interrupt task that is started
Operating time
Register target comparison table
and start comparison
High-speed counter input 0
Number of target values: 2
Target value 1
01F4 hex (500 decimal)
Target value 1 interrupt task No.:
1 (incrementing)
Target value 2
03E8 hex (1,000 decimal)
Target value 2 interrupt task No.:
2 (incrementing)
High-speed counter PV
Upper limit value 2: 2,100 decimal
Lower limit value 2: 1,900 decimal
Upper limit value 1: 1,050 decimal
Lower limit value 1: 950 decimal
Interrupt task number to execute
Time
No.000 No.255 No.255 No.000
High-speed counter input 0
Range comparison table registration
and comparison start for 8 ranges
First range comparison table word
Lower limit value: 1
03B6 hex (950 decimal)
Upper limit value: 1
041A hex (1,050 decimal)
Interrupt task 0
Range 1 interrupt task No.: 0 (entering range)
Lower limit value: 2
076C hex (1,900 decimal)
Upper limit value: 2
0834 hex (2,100 decimal)
Range 2 interrupt task No.: 255 (entering range)
FFFF hex is set in D214, D219, D224, D229,
D234, and D239. (Ranges 3 to 8 are not used.)
0.00
@CTBL
#0000
#0001
D200
D200
D201
#03B6
#0000
#041A
#0000
#0000
#076C
#0000
#0834
#0000
#00FF
D202
D203
D204
D205
D206
D207
D208
D209
z Example for Range Comparison with Eight Ranges
When CIO 0.00 turns ON in the following
programming example, CTBL(882) registers a range comparison table using upper and lower limits for
high-speed counter 0 and starts comparison.
The corresponding interrupt task is called and executed when the PV is within the limits set for range 1 or 2.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals