2-331

2 Instructions
CP1E CPU Unit Instructions Reference Manual(W483)
High-speed Counter/Pulse
Output Instructions
2
ACCACC
Applicable Program Areas
Operands
P: Port Specifier

M: Output Mode

Note Use the same pulse output method when using both pulse outputs 0 and 1.

S: First Word of Settings Table

Instruction Mnemonic Variations Function
code Function
ACCELERATION CONTROL ACC @ACC 888ACC(888) outputs pulses to the specified output port at the specified frequency using the specified acceleration and deceleration rate.
Symbol
ACC
Area Step program areas Subroutines Interrupt tasks
Usage OK OK OK
Operand Description Data type Size
P Port specifier --- 1
M Output mode --- 1
S First word of settings table WORD 3
PPort
0000 hex Pulse output 0
0001 hex Pulse output 1
P: Port specifier
M: Output mode
S: First word of settings table
ACC(888)
P
M
S
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 100,000 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)