Omron CP1E CPU UNIT SOFTWARE User Manual page 160

Cp1e cpu unit software
Table of Contents

Advertisement

11 High-speed Counters
• Range Comparison Table
The range comparison table requires a continuous block of 30 words for comparison conditions 1
to 6 require 5 words each (two words for the upper range value, two words for the lower range
value, and one word for the interrupt task number).
15
Lower word of range 1 lower limit
S
Upper word of range 1 lower limit
S+1
Lower word of range 1 upper limit
S+2
Upper word of range 1 upper limit
S+3
Range 1 interrupt task number
Lower word of range 6 lower limit
S+25
Upper word of range 6 lower limit
S+26
Lower word of range 6 upper limit
S+27
Upper word of range 6 upper limit
S+28
Range 6 interrupt task number
S+29
Interrupt task number
0000 to 000F hex: Interrupt task number 0 to 15
AAAA hex:
FFFF hex:
Note Always set the upper limit greater than or equal to the lower limit for any one range.
MODE CONTROL Instruction: INI
The INI instruction is used for the following items.
• Starting and stopping comparison with the high-speed counter comparison table
Use the CTBL instruction to register the target value or range comparison table before using INI to
start or stop comparison.
If the comparison is started simultaneously when registering the comparison table and then the
high-speed counter interrupts are always valid, the INI instruction is not required.
• Changing the PV of a High-speed Counter
Execution condition
Operand
C1
Port specifier
C2
Control data
S
First word of
new PV
11-22
0
0000 0000 to FFFF FFFF hex (See note.)
0000 0000 to FFFF FFFF hex (See note.)
0000 0000 to FFFF FFFF hex (See note.)
0000 0000 to FFFF FFFF hex (See note.)
Do not execute interrupt task.
Ignore the settings for this range.
@INI
C1: Port specifier
C1
C2: Control data
C2
S: First word of new PV
S
#0010
High-speed counter 0
#0015
High-speed counter 5
#0000
Start comparison.
#0001
Stop comparison.
#0002
Change the PV.
S contains the first word of the new PV when C is set to #0002
(change the PV).
Settings
CP1E CPU Unit Software User's Manual(W480)

Advertisement

Table of Contents
loading

Table of Contents