Summary of operation

Set global moving speed and enable the X- and Y-axes. Set the positioning coordinate mode to absolute. Execute the linear interpolation operation, moving the X-axis to position −20,000 and the 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)        ‘Decel time set to 200 ms (Global)

cmdStr = "EO=3"

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

cmdStr = "ABS"

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

cmdStr = "EINT=1"

result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr)        ‘Interpolation operation enabled

cmdStr = "X−20000Y15000"

result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr)         Start interpolation operation of X and Y axes


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