Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 752

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

High-speed Counter/Pulse Output Instructions
3-20-4 REGISTER COMPARISON TABLE: CTBL(882)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operands
CTBL(882) is used to register a comparison table and perform comparisons
for a high-speed counter PV. Either target value or range comparisons are
possible. An interrupt task is executed when a specified condition is met.
CTBL(882)
P
P: Port specifier
C
C: Control data
TB: First comparison table word
TB
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
P: Port Specifier
P specifies the port for which pulses are to be counted as shown in the follow-
ing table.
P
0000 hex High-speed counter 0
0001 hex High-speed counter 1
0002 hex High-speed counter 2
0003 hex High-speed counter 3
C: Control Data
The function of CTBL(882) is determined by the control data, C, as shown in
the following table.
C
0000 hex Registers a target value comparison table and starts comparison.
0001 hex Registers a range comparison table and performs one comparison.
0002 hex Registers a target value comparison table. Comparison is started with INI(880).
0003 hex Registers a range comparison table. Comparison is started with INI(880).
TB: First Table Comparison Word
TB is the first word of the comparison table. The structure of the comparison
table depends on the type of comparison being performed.
For target value comparison, the length of the comparison table is determined
by the number of target values specified in TB. The table can be between 4
and 145 words long, as shown below.
Step program areas
Subroutines
OK
OK
Port
CTBL(882) function
Section 3-20
CTBL(882)
@CTBL(882)
Not supported
Interrupt tasks
OK
719

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents