Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 919

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

High-speed Counter/Pulse Output Instructions
Operands
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
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.
15
TB
Number of target values
TB+1
Lower word of target value 1
TB+2
Upper word of target value 1
TB+3
Interrupt task number for target value 1
Lower word of target value 48
TB+142
Upper word of target value 48
TB+143
TB+144
Interrupt task number for target value 48
Interrupt Task Number
15
14
12
11
8
7
0 0 0
0 0 0 0
Direction
OFF: Incrementing,
ON: Decrementing
For range comparison, the comparison table always contains eight ranges.
The table is 40 words long, as shown below. If it is not necessary to set eight
ranges, set the interrupt task number to FFFF hex for all unused ranges.
Port
CTBL(882) function
0
0001 to 0030 hex (1 to 48 target values)
00000000 to FFFFFFFF hex
00000000 to FFFFFFFF hex
4
3
0
Interrupt task number
00 to FF hex (0 to 255)
Section 3-21
879

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents