NOVA electronics Inc.
MCX514 -
95
-
95
-
■
Example 3 Performs decelerating stop in acceleration/deceleration driving of X axis after driving at constant speed
for 10msec.
After acceleration/deceleration driving starts, a timer starts from the start of constant speed area for 10msec and when time is up, it
performs decelerating stop. This is performed by the function of a synchronous action.
500K
Speed
(pps)
Acceleration
Constant Speed 10.00msec
Start Deceleration
Time
Fig. 2.9-6 Example 3: Timer Operation
【
Program Example
】
// Acceleration / deceleration driving setting
WR6
←
0064h Write
// Initial speed 100 PPS
WR7
←
0000h Write
WR0
←
0104h Write
WR6
←
A120h Write
// Drive speed 500K PPS
WR7
←
0007h Write
WR0
←
0105h Write
WR6
←
E848h Write
// Acceleration 125K PPS/SEC
WR7
←
000
1
h Write
WR0
←
0102h Write
// Timer setting
// Single timer
WR0
←
011Fh Write
// Select X axis
WR3
←
0000h Write
// D14
0
TMMD
:
Timer operation Once
// Timer value setting
WR6
←
2710h Write
// Timer value 10000
μ
sec
WR7
←
0000h Write
WR0
←
0116h Write
// Synchronous action setting
// Synchronous action SYNC0 setting
WR6
←
0154h Write
// D3
~
D0 0100
PREV3
~
0
:
Activation factor Starts driving at constant speed area
// D8
~
D4 10101
ACT4
~
0
:
Action Timer-start
WR0
←
0126h Write
// Synchronous action SYNC1 setting
WR6
←
0112h Write
// D3
~
D0 0010
PREV3
~
0
:
Activation factor Timer is up
// D8
~
D4 10001
ACT4
~
0
:
Action Decelerating stop
WR0
←
0127h Write
// SYNC1
~
0 Enable
WR0
←
0183h Write
// Start driving
WR0
←
0152h Write
// Starts
+
direction continuous pulse driving