Summary of operation

Set the speed of the X-axis movement and turn on excitation. After that, start the movement of the X axis in the negative direction. After a while, decelerate and stop the axis.

Program code

cmdStr = "LSPDX=500"

result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr)        ‘Starting speed of X-axis set to 500 pps

cmdStr = "HSPDX=5000"

result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr)        ‘Moving speed of X-axis set to 5,000 pps

cmdStr = "ACCX=200"

result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr)        ‘Accel time of X-axis set to 200 ms

cmdStr = "DECX=200"

result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr)        ‘Decel time of X-axis set to 200 ms

cmdStr = "EO1=1"

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

cmdStr = "JX−"

result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr)         Start moving in the (−) direction




cmdStr = "STOPX"

result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr)        ‘Decelerate and stop


<  Topic Home | Home |  Next Section >