(Parameter Functions)
AX_UpdateParams
Description Force DLL to Reload All Parameters from Parameters.Cfg File
Returns (Integer) 1 on Success, 0 on Failure
Arguments None
VB Example:
Private Sub UpdateParamsBtn_Click ()
‘Force DLL to Reload All Parameters from Parameters.Cfg File Call AX_UpdateParams
Sleep (10)
‘Force DLL to Update Params from Parameters.Cfg file to ServoCard Call AX_DownloadParameters2Card
Sleep (10)
Declaration: Public Declare Function AX_UpdateParams Lib _
"MotionCore.DLL" () As Integer
AX_DownloadParameters2Card
Description Force DLL to Update Params from Parameters.Cfg file to ServoCard
Returns (Integer) 1 on Success, 0 on Failure
Arguments None
VB Example:
Private Sub UpdateParamsBtn_Click ()
‘Force DLL to Reload All Parameters from Parameters.Cfg File Call AX_UpdateParams
Sleep (10)
‘Force DLL to Update Params from Parameters.Cfg file to ServoCard Call AX_DownloadParameters2Card
Sleep (10)
Declaration: Declare Function AX_DownloadParameters2Card Lib _ "MotionCore.DLL" () As Integer
(Feedback & Status Functions)
AX_GetEncoderCounts
Description Extract Encoder information from DLL in array
Returns (Integer) 1 on Success, 0 on Failure
Arguments Global EncoderArray (0 To 8) As Long
VB Example:
Private Sub IOTIMER_Timer ()
Ret = AX_GetEncoderCounts(EncoderArray(0)) 'Get ABS Encoder Pos array
API Users Guide | API Command Descriptions - 9 |