User`s manual

http://www.adtechcn.com 74
accessed by clicking, and send out corresponding drive commands based on the selected objective.
The names of the four check boxes (selected objective) are X, Y, Z and A and the codes are
described as follows:
'***************** judgment of speed setup ************************
' Setting scope of start velocity and drive velocity: (12M)
' Setting scope of acceleration: (1×12564000×125)
'*****************************************************
If m_bX.value = vbUnchecked And m_bY.value = vbUnchecked And m_bZ.value =
vbUnchecked And m_bA.value = vbUnchecked Then
MsgBox " Please select interaction axis!"
End If
If m_bX.value = vbChecked Then
Setup_Speed 1, m_nStartV(0).Text, m_nSpeed(0).Text, m_nAdd(0).Text
End If
If m_bY.value = vbChecked Then
Setup_Speed 2, m_nStartV(1).Text, m_nSpeed(1).Text, m_nAdd(1).Text
End If
If m_bZ.value = vbChecked Then
Setup_Speed 3, m_nStartV(2).Text, m_nSpeed(2).Text, m_nAdd(2).Text
End If
If m_bA.value = vbChecked Then
Setup_Speed 4, m_nStartV(3).Text, m_nSpeed(3).Text, m_nAdd(3).Text
End If
If m_bX.value = vbChecked Then
Axis_Pmove 1, m_nPulse(0).Text
End If
If m_bY.value = vbChecked Then
Axis_Pmove 2, m_nPulse(1).Text
End If
If m_bZ.value = vbChecked Then
Axis_Pmove 3, m_nPulse(2).Text
End If
If m_bA.value = vbChecked Then
Axis_Pmove 4, m_nPulse(3).Text
End If
End Sub
1.3.4 Interpolation codes are provided at the button “InterpMove_Click” where they can
be accessed by clicking, and send out corresponding drive commands based on the selected
objective. The names of the four check boxes (selected objective) are X, Y, Z and A and the codes
are described as follows:
Private Sub InterpMove_Click()