A-41
Appendices
CP2E CPU Unit Software User’s Manual(W614)
A
-1 In
struction
Fu
nctio
n
s
App
A-1-1
8
High-speed Cou
nter/Pulse
Output In
str
uctions
REGISTER
COMPARISON
TABLE
CTBL
@
Registers a comparison table and performs comparisons for a PV
of high-speed counter 0 to 5. An interrupt task between 0 to 15 will
be executed when an execution condition is turned ON.
P: Port specifier
C: Control data
TB: First comparison table word
TB is the first word of the comparison table. The structure of the
comparison table depends on the type of comparison being per-
formed.
•
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 19 words long, as shown
below.
Instruction
Mnemonic
Variations
Symbol/Operand
Function
P
: Port specifier
C
: Control data
TB
: First comparison table word
CTBL(
88
2)
P
C
TB
END
END
Rot
a
ry Encoder
B
u
ilt-in inp
u
t
Pre
s
ent v
a
l
u
e Pre
s
ent v
a
l
u
e m
a
tche
s
s
et t
a
rget v
a
l
u
e
Time
Interr
u
pt t
as
k
L
a
dder di
a
gr
a
m
Interr
u
pt occ
u
r
s
Cyclic t
as
k
s
(l
a
dder progr
a
m
s
)
I/O refre
s
h
0000 hex
High-speed counter 0
0001 hex
High-speed counter 1
0002 hex
High-speed counter 2
000
3
hex
High-speed counter
3
0004 hex
High-speed counter 4
0005 hex
High-speed counter 5
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(
88
0).
000
3
hex
Registers a range comparison table. Com-
parison is started with INI(
88
0).
TB+1
TB+2
TB+3
TB
0
15
0
3
4
7
8
0 0 0
0
11
12
14
15
TB+16
TB+17
TB+1
8
Upper word of target value 1
Interrupt task number for target value 1
00000000 to FFFFFFFF hex
00000000 to FFFFFFFF hex
Number of target values
0001 to 6 hex (1 to 6 target values)
Interrupt Task Number
Interrupt task number
00 to 0F hex (0 to 15)
Direction
OFF: Incrementing,
ON: Decrementing
Upper word of target value 6
Interrupt task number for target value 6
Lower word of target value 1
Lower word of target value 6
Summary of Contents for SYSMAC CP Series
Page 3: ......
Page 32: ...1 Overview 1 4 CP2E CPU Unit Software User s Manual W614 ...
Page 44: ...3 CPU Unit Operation 3 8 CP2E CPU Unit Software User s Manual W614 ...
Page 116: ...6 I O Allocation 6 8 CP2E CPU Unit Software User s Manual W614 ...
Page 144: ...7 PLC Setup 7 28 CP2E CPU Unit Software User s Manual W614 ...
Page 170: ...10 Interrupts 10 14 CP2E CPU Unit Software User s Manual W614 ...
Page 200: ...11 High speed Counters 11 30 CP2E CPU Unit Software User s Manual W614 ...
Page 272: ...12 Pulse Outputs 12 72 CP2E CPU Unit Software User s Manual W614 ...
Page 278: ...13 PWM Outputs 13 6 CP2E CPU Unit Software User s Manual W614 ...
Page 460: ...18 Programming Device Operations 18 28 CP2E CPU Unit Software User s Manual W614 ...
Page 576: ...Revision 2 CP2E CPU Unit Software User s Manual W614 ...
Page 577: ......