ICP DAS USA ET-M8194H Quick Start Manual page 30

Motion control module
Table of Contents

Advertisement

cmdDownloadMP.Enabled =
cmdRun.Enabled =
cmd_EStop.Enabled =
cmdConnect.Caption = "Connect"
cmdConnect.BackColor = &H8000000F
lbl_Msg.Caption = "Disconnect..."
End If
End Sub
Step2: Download macro program to MP94
Private Sub
cmdDownloadMP_Click()
lbl_Msg.Caption = "Downloading MP..."
DoEvents
'Download Macro Program to MP94
ETM_MP_CREATE handle, 1, MP94
ETM_MACRO_SET_MAX_V handle, 1, AXIS_XYZU, 8000
ETM_MACRO_NORMAL_SPEED handle, 1, AXIS_XYZU, 0
ETM_MACRO_SET_V handle, 1, AXIS_XYZ, 200
ETM_MACRO_SET_A handle, 1, AXIS_XYZ, 1000
ETM_MACRO_SET_SV handle, 1, AXIS_XYZ, 20
ETM_MACRO_SET_AO handle, 1, AXIS_XYZ, 0
ETM_MACRO_SET_LP handle, 1, AXIS_XYZU, 0
ETM_MACRO_FIXED_MOVE handle, 1, AXIS_Z, 100
ETM_MACRO_STOP_WAIT handle, 1, AXIS_Z
ETM_MACRO_TIMER handle, 1, 2000
ETM_MACRO_FIXED_MOVE handle, 1, AXIS_XY, 100
ETM_MACRO_STOP_WAIT handle, 1, AXIS_XY
ETM_MACRO_FIXED_MOVE handle, 1, AXIS_Z, -100
ETM_MACRO_STOP_WAIT handle, 1, AXIS_Z
ETM_MACRO_FIXED_MOVE handle, 1, AXIS_Y, 800
ETM_MACRO_STOP_WAIT handle, 1, AXIS_Y
ETM_MACRO_FIXED_MOVE handle, 1, AXIS_X, 800
ETM_MACRO_STOP_WAIT handle, 1, AXIS_X
ETM_MACRO_FIXED_MOVE handle, 1, AXIS_Y, -800
ETM_MACRO_STOP_WAIT handle, 1, AXIS_Y
ETM_MACRO_FIXED_MOVE handle, 1, AXIS_X, -800
ETM_MACRO_STOP_WAIT handle, 1, AXIS_X
ETM_MACRO_MP_CLOSE handle, 1
lbl_Msg.Caption = "Complete download!"
End Sub
Before press Run MP94 button, you can open the Graph function of
EzMove. Then, during the execution of MP94 you can view the changing of
motion trajectory.
ICP DAS
False
False
False
'Step 2: download macro program
'MP94 - Create is the start of MP downloading
29
'set max velocity to be 8000 pps
'set speed profile,
'0 =>symmetric T curve
'set velocity to be 200 pps
'set acc to be 1000 pps/sec
'set start velocity to be 20 pps
'set AO to be 0
'set logical position to be 0
'move Z axis 100 pulses
'wait until Z axis stops
'delay 2000 ms
'move X,Y axes 100 pulses
'wait until X,Y axes stop
'move Z axis -100 pulses
' wait until Z axis stops
'move Y axis 800 pulses
' wait until Y axis stops
'move X axis 800 pulses
' wait until X axis stops
'move Y axis -800 pulses
' wait until Y axis stops
'move X axis -800 pulses
' wait until X axis stops
'end of MP94
ET-M8194H 快速入門指南
Version 2.0, 2012/10/12

Advertisement

Table of Contents
loading

Table of Contents