Summary of operation

Set the global moving speed and turn on the excitation of X and Y axes. Set positioning coordinates to absolute mode. Move the X axis to position −20,000 and Y axis to position 15,000.

Program code

cmdStr = "LSPD=500"

result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr)        ‘Starting speed set to 500 pps (Global)

cmdStr = "HSPD=5000"

result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr)        ‘Moving speed set to 5,000 pps (Global)

cmdStr = "ACC=200"

result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr)        ‘Accel time set to 200 ms (Global)

cmdStr = "DEC=200"

result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr)        ‘Deceleration time set to 200 ms (Global)

cmdStr = "EO=3"

result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr)        ‘Enable X and Y-axis

cmdStr = "ABS"

result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr)        ‘Set position coordinate mode to Absolute

cmdStr = "X−20000"

result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr)        Start moving the X-axis to the position of −20,000

cmdStr = "Y15000"

result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr)        Start moving the Y-axis to the position of 15,000.


< Previous Section | Topic Home | Home |  Next Section  >