Download User`s manual

Transcript
MCX302 – M5
NOVA electronics Inc.
Offset Setting for Acceleration/Deceleration Driving
The offset function can be used for compensating the pulses when the decelerating speed does not reach the setting initial speed
during the S-curve fixed driving. MCX302 will
calculate the acceleration / deceleration point
Speed
automatically, and will arrange the pulse numbers
in acceleration equal to that in deceleration. The
Offset Pulse
method is calculating the output acceleration
pulses and comparing them with the remaining
pulses. When the remaining pulses are equal to or
Initial Speed
less the pulses in acceleration, it starts the
time
deceleration.
Fig.2.5 Offset for Deceleration
When setting the offset for deceleration, MCX302
will start deceleration early for the offset. The greater is the positive value set for the offset, the closer the automatic declaration
point becomes, increasing the creep pulses at the initial speed at deceleration termination. If a negative value is set for the offset
value, output may stop prematurely before the speed reaches the initial speed (see Fig. 2.6).
The default value for offset is 8 when MCX302 power-on reset. It is not necessary to change the shift pulse value in the case of
acceleration/deceleration fixed driving. As for fixed driving in non-symmetrical trapezoidal acceleration/deceleration or S-curve
acceleration/deceleration, if creep pulses or premature termination occurs at termination of driving due to the low initial speed
setting, correct the speed by setting the acceleration counter offset to an appropriate value.
2.1.2 Continuous Driving Output
When the continuous driving is performed, MCX302 will drive pulse
output in a specific speed until stop command or external stop signal is
happened. The main application of continuous pulse driving is: home
searching, teaching or speed control. The drive speed can be changed
freely during continuous driving.
Two stop commands are for stopping the continuous driving. One is
“decelerating stop”, and the other is “sudden stop”. Three input pins,
STOP2~STOP0, of each axis can be connected for external decelerating
and sudden stop signals. Enable / disable, active levels and mode
setting are possible.
Speed
D riv e
Speed
Stop C om m and or
Ex ternal Stop Signal
Initial
Speed
Fig.2.6 C ontinuous D riving
tim e
Stop Condition for External Input STOP2 to STOP0 in Continuous Driving
Assign an encoder Z-phase signal, a home signal, and a near home signal in nSTOP2 to nSTOP0. (Assign an encoder Z phase
signal in nSTOP2.) Enable / disable and logical levels can be set by bit from D5 to 0 of WR1 register of each axis. For the
application of high-speed searching, the user can set MCX302 in the acceleration/deceleration continuous driving mode and
enable STOP2,1,0 in WR1. And then, MCX302 will perform the decelerating stop when the external signal STOP2,1,0 is active.
For the application of low-speed searching, the user can set MCX302 in the constant-speed continuous driving and enable
STOP2,1,0. Then, MCX302 will perform the sudden stop when STOP1 is active.
Except the parameter of the number of output pulse, the other three parameters for the fixed drive must be set to execute the
acceleration/deceleration continuous driving.
2.2 Acceleration and Deceleration
Basically, driving pulses of each axis are output by a fixed driving command or a continuous driving command of the + direction
or – direction. These types of driving can be performed with a speed curve of constant speed, linear acceleration,
non-symmetrical linear acceleration, S-curve acceleration/deceleration according to the mode that is set or the operation
parameter value.
–5–