A-39
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
A-1-18
High-speed Counter/Pulse Output Instructions
Instruction
Mnemonic
Variations
Symbol/Operand
Function
MODE CON-
TROL
INI
@
INI(
88
0) can be used to execute the following operations
•
To start or stop comparison of a high-speed counter's PV to the
comparison table registered with CTBL(
88
2).
•
To change the PV of the high-speed counter.
•
To change the PV of the pulse output (origin fixed at 0).
•
To stop pulse output.
Example: Setting the Present Position as the Origin
P: Port Specifier
* Can only be used in CP2E-N
3
0/40/60D
-
.
C: Control Data
NV: First Word with New PV
If C is 0002 hex (i.e., when changing a PV), NV and NV+1 con-
tain the new PV. Any values in NV and NV+1 are ignored when
C is not 0002 hex.
INI(
88
0)
P
C
N
V
P
: Port specifier
C
: Control data
NV
: First word with new P
V
INI instruction executed
Pulse output
P
V
New origin
Present origin
#0000
#0002
D100
D100
D101
@INI
15
0
#0 0 0 0
#0 0 0 0
Execution condition
C1: Port specifier (example for pulse output 0)
C2: Control data (example for changing P
V
)
S:First word with new P
V
0000 hex
Pulse output 0
0001 hex
Pulse output 1
0002 hex
Pulse output 2*
000
3
hex
Pulse output
3
*
0010 hex
High-speed counter 0
0011 hex
High-speed counter 1
0012 hex
High-speed counter 2
001
3
hex
High-speed counter
3
0014 hex
High-speed counter 4
0015 hex
High-speed counter 5
1000 hex
PWM(
8
91) output 0
0000 hex
Starts comparison.
0001 hex
Stops comparison.
0002 hex
Changes the PV.
000
3
hex
Stops pulse output.
N
V
N
V
+1
0
15
For Pulse Output or High-speed Counter Input:
0000 0000 to FFFF FFFF hex
For Interrupt Input in Counter Mode:
0000 0000 to 0000 FFFF hex
Lower word of new P
V
Upper word of new P
V
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: ......