EasyManua.ls Logo

Omron CP1E CPU UNIT SOFTWARE - Page 160

Omron CP1E CPU UNIT SOFTWARE
450 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
Loading...
11 High-speed Counters
11-22
CP1E CPU Unit Software User’s Manual(W480)
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).
Note Always set the upper limit greater than or equal to the lower limit for any one range.
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
MODE CONTROL Instruction: INI
Operand Settings
C1 Port specifier #0010 High-speed counter 0
~
~
#0015 High-speed counter 5
C2 Control data #0000 Start comparison.
#0001 Stop comparison.
#0002 Change the PV.
SFirst word of
new PV
S contains the first word of the new PV when C is set to #0002
(change the PV).
S
S+1
S+2
S+3
0
15
S+25
S+26
S+27
S+28
S+29
Range 1 interrupt task number
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.)
Interrupt task number
0000 to 000F hex: Interrupt task number 0 to 15
AAAA hex: Do not execute interrupt task.
FFFF hex: Ignore the settings for this range.
Lower word of range 1 lower limit
Upper word of range 1 lower limit
Lower word of range 1 upper limit
Upper word of range 1 upper limit
Range 6 interrupt task number
Lower word of range 6 lower limit
Upper word of range 6 lower limit
Lower word of range 6 upper limit
Upper word of range 6 upper limit
@INI
C1
C2
S
Execution condition
C1: Port specifier
C2: Control data
S: First word of new PV

Table of Contents

Related product manuals