11-21
11 High-speed Counters
CP2E CPU Unit Software User’s Manual(W614)
11-3 High
-sp
eed
Co
un
ter
Interrupts
11
11
-
3
-
3
Hig
h-speed Coun
ter Interr
upt I
nstr
uction
z
Contents of the Comparison Table
•
Target-value Comparison Table
Depending on the number of target values in the table, the target-value comparison table requires
a continuous block of 4 to 19 words.
•
Range Comparison Table
The range comparison table requires a continuous block of
3
0 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.
MODE CONTROL Instruction: INI
S+1
S+2
S+3
S
0
15
0
3
4
7
8
0 0 0
0
11
12
14
15
S+16
S+17
S+18
Upper
w
ord of target
v
al
u
e 1
Interr
u
pt task n
u
m
b
er for target
v
al
u
e 1
00000000 to FFFFFFFF hex
00000000 to FFFFFFFF hex
Nu
m
b
er of target
v
al
u
es
0001 to 0006 hex (1 to 6 target
v
al
u
es)
Interr
u
pt Task
Nu
m
b
er
Interr
u
pt task n
u
m
b
er
00 to 0F hex (0 to 15)
Direction
OFF: Incrementing,
O
N
: Decrementing
Upper
w
ord of target
v
al
u
e 6
Interr
u
pt task n
u
m
b
er for target
v
al
u
e 6
Lo
w
er
w
ord of target
v
al
u
e 1
Lo
w
er
w
ord of target
v
al
u
e 6
S
S+1
S+2
S+3
0
15
S+25
S+26
S+27
S+28
S+29
Range 1 interr
u
pt task n
u
m
b
er
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.)
Interr
u
pt task n
u
m
b
er
0000 to 000F hex: Interr
u
pt task n
u
m
b
er 0 to 15
AAAA hex: Do not exec
u
te interr
u
pt task.
FFFF hex: Ignore the settings for this range.
Lo
w
er
w
ord of range 1 lo
w
er limit
Upper
w
ord of range 1 lo
w
er limit
Lo
w
er
w
ord of range 1
u
pper limit
Upper
w
ord of range 1
u
pper limit
Range 6 interr
u
pt task n
u
m
b
er
Lo
w
er
w
ord of range 6 lo
w
er limit
Upper
w
ord of range 6 lo
w
er limit
Lo
w
er
w
ord of range 6
u
pper limit
Upper
w
ord of range 6
u
pper limit
Содержание SYSMAC CP Series
Страница 1: ...USER S MANUAL Cat No W614 E1 01 SYSMAC CP Series CP2E E D CP2E S D CP2E N D CP2E CPU Unit Software ...
Страница 3: ......
Страница 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Страница 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Страница 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Страница 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Страница 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Страница 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Страница 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Страница 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Страница 577: ......