4.3.7 On-the-fly speed change
Summary of operation
Change the X-axis speed at 50,000 pps to 70,000 pps during motion.
Program code
cmdStr = "LSPDX=1000"
result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr) ‘Starting speed of X axis set to 500 pps
cmdStr = "HSPDX=50000"
result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr) ‘Moving speed of X axis set to 50,000 pps
---omitted steps---
cmdStr = "JX−"
result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr) ’Start moving in the − direction
cmdStr = "SSPDM=2"
result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr) ‘Double the speed range
cmdStr = "SSPD=70000"
result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr) ‘Update speed to 70,000 pps
< Previous Section | Topic Home | Home | Next Section >