NOVA electronics Inc.
MCX514 -
58
-
58
-
【
Program Example in X axis
】
// WR2 Register setting
WR0
←
011Fh Write
// Select X axis
WR2
←
0800h Write
// Home signal logical setting
:
XSTOP1,2:Low active
// Enables hardware limit
// Input signal filter mode setting
WR6
←
0ACFh Write
// D15
~
D12 0000 Filter FE6,7 delay:500nsec
// D11
~
D8 1010 Filter FE0-5 delay:512
μ
sec
// D6
1 XSTOP2 signal
:
Enables the filter
// D2
1 XSTOP1 signal
:
Enables the filter
WR0
←
0125h Write
// Writes a command
// Automatic home search mode setting 1
WR6
←
FC37h Write
// D15 1 Step
4
execution/non-execution
:
Execution
// D14 1 Step
3
LP clear
Enable
// D13 1 Step
3
RP clear
Enable
// D12 1 Step
3
DCC output
:
Enable
// D11 1 Step
3
search direction
:
-
direction
// D10 1 Step
3
execution/non-execution
:
Execution
// D9 0 Step
2
LP clear
Disable
// D8 0 Step
2
RP clear
Disable
// D7 0 Step
2
DCC output
:
Disable
// D6 0 Step
2
detection signal
:
STOP1
// D5 1 Step
2
search direction
:
-
direction
// D4 1 Step
2
execution/non-execution
:
Execution
// D3,2 0,1 Step
1
detection signal
:
STOP1
// D1 1 Step
1
search direction
:
-
direction
// D0 1 Step
1
execution/non-execution
:
Execution
WR0
←
0123h Write
// Writes a command
// Automatic home search mode setting 2
WR6
←
0020h Write
// D15 0
// D14 0
// D13 0
// D12 0
// D11 0
// D10
~
8 0 Timer value
// D7 0 Timer between steps
Disable
// D6
~
4 010 DCC pulse width
100
μ
sec
// D3 0 DCC pulse logic
Hi pulse
// D2 0 At the termination of home search, LP clear
Disable
// D1 0 At the termination of home search, RR clear
Disable
// D0 0 Step
2&3
Disable
WR0
←
0124h Write
// Writes a command
// High-speed home search and low-speed home search setting
WR6
←
7318h Write
// Acceleration/deceleration
:
95,000 PPS/SEC
WR7
←
0001h Write
WR0
←
0102h Write
WR6
←
03E8h Write
// Initial speed
:
1000 PPS
WR7
←
0000h Write
WR0
←
0104h Write
WR6
←
4E20h Write
// Speed of step 1 and 4
:
20000 PPS
WR7
←
0000h Write
WR0
←
0105h Write
WR6
←
01F4h Write
// Speed of step 2, 3
:
500 PPS
WR7
←
0000h Write
WR0
←
0114h Write
// Offset pulse setting
WR6
←
0DACh Write
// Offset driving pulse count
:
3500
WR7
←
0000h Write
WR0
←
0106h Write
// Starts execution of automatic home search
WR0
←
015Ah Write