A-1-18
High-speed Counter/Pulse Output Instructions
Instruction
Mnemonic
MODE CON-
INI
TROL
CP1E CPU Unit Software User's Manual(W480)
Variations
Symbol/Operand
@
INI(880)
P
C
NV
P: Port specifier
C: Control data
NV: First word with new PV
Function
INI(880) 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(882).
• 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.
INI instruction executed
New origin
Present origin
Example: Setting the Present Position as the Origin
Execution condition
@INI
C1: Port specifier (example for pulse output 0)
#0000
C2: Control data (example for changing PV)
#0002
S:First word with new PV
D100
D100
D101
P: Port Specifier
0000 hex
Pulse output 0
0001 hex
Pulse output 1
0010 hex
High-speed counter 0
0011 hex
High-speed counter 1
0012 hex
High-speed counter 2
0013 hex
High-speed counter 3
0014 hex
High-speed counter 4
0015 hex
High-speed counter 5
1000 hex
PWM(891) output 0
C: Control Data
0000 hex
Starts comparison.
0001 hex
Stops comparison.
0002 hex
Changes the PV.
0003 hex
Stops pulse output.
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.
15
NV
Lower word of new PV
Upper word of new PV
NV+1
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
Appendices
Pulse output
PV
0
15
#0 0 0 0
#0 0 0 0
0
A-37
Need help?
Do you have a question about the CP1E CPU UNIT SOFTWARE and is the answer not in the manual?
Questions and answers