Appendices
A-42
CP2E CPU Unit Software User’s Manual(W614)
REGISTER
COMPARISON
TABLE
CTBL
@
•
For range comparison, the comparison table always contains
six ranges. The table is
3
0 words long, as shown below. If it is
not necessary to set six ranges, set the interrupt task number to
FFFF hex for all unused ranges.
Note
Always set the upper limit greater than or equal to the lower
limit for any one range.
SPEED OUT-
PUT
SPED
@
Sets the output pulse frequency for a specific port and starts pulse
output without acceleration or deceleration.
P: Port specifier
* Can only be used in CP2E-N
3
0/40/60D
-
.
M: Output mode
F: First pulse frequency word
The value of F and F+1 sets the pulse frequency in Hz.
Instruction
Mnemonic
Variations
Symbol/Operand
Function
P
: Port specifier
C
: Control data
TB
: First comparison table word
CTBL(
88
2)
P
C
TB
TB
TB+1
TB+2
TB+3
0
15
TB+25
TB+26
TB+27
TB+2
8
TB+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
SPED(
8
55)
P
M
F
P
: Port specifier
M
: Output mode
F
: First pulse frequency word
Target frequency
Time
SPED(
88
5) executed.
Pulse frequency
0000 hex
Pulse output 0
0001 hex
Pulse output 1
0002 hex
Pulse output 2*
000
3
hex
Pulse output
3
*
0
3
4
7
8
11
12
15
M
Mode
0 hex: Continuous
1 hex: Independent
Direction
0 hex: CW
1 hex: CCW
Pulse output method
1 hex: Pulse + direction
Always 0 hex.
F
F+1
0
15
Lower word of target frequency
Upper word of target frequency
0 to 100000 Hz
(0000 0000 to 0001
8
6A0 hex)
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: ......