A-45
Appendices
CP2E CPU Unit Software User’s Manual(W614)
A-1 Instruction Functions
App
A-1-18 High-speed Counter/Pulse
Output Instructions
ACCELERA-
TION CON-
TROL
ACC @ Outputs pulses to the specified output port at the specified fre-
quency using the specified acceleration and deceleration rate.
P: Port Specifier
* Can only be used in CP2E-N30/40/60Dîš…-îš….
M: Output Mode
S: First Word of Settings Table
Instruction Mnemonic Variations Symbol/Operand Function
P: Port specifier
M: Output mode
S: First word of settings table
ACC(888)
P
M
S
Target frequency
Pulse output started Pulse output stopped
Acceleration
and
deceleration
rate
0000 hex Pulse output 0
0001 hex Pulse output 1
0002 hex Pulse output 2*
0003 hex Pulse output 3*
03478111215
M
Mode
0 hex: Continuous mode
1 hex: Independent mode
Direction
0 hex: CW
1 hex: CCW
Pulse output method
1 hex: Pulse + direction
Always 0 hex.
S+1
S+2
S
0
15
Lower word with target frequency
Upper word with target frequency
0 to 100000 Hz
(0000 0000 to 0001 86A0 hex)
Specify the frequency after acceleration or deceleration in Hz.
Acceleration/deceleration rate
Specify the increase or decrease in the
frequency per pulse control period (4 ms).
1 to 65535 Hz (#0001 to FFFF)