4.3.4 Homing Operation
Summary of operation
Set the Y-axis moving speed and enable axis. Then, start the Y-axis homing operation in the negative direction using homing mode 1.
Program Code
cmdStr = "LSPDY=500"
result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr) ‘Starting speed of Y-axis set to 500 pps
cmdStr = "HSPDY=5000"
result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr) ‘Moving speed of Y-axis set to 5,000 pps
cmdStr = "ACCY=200"
result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr) ‘Accel time of Y-axis set to 200 ms
cmdStr = "DECY=200"
result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr) ‘Decel time of Y-axis set to 200 ms
cmdStr = "EO2=1"
result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr) ‘Enable Y-axis
cmdStr = "H−1"
result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr) ’Start the homing operation of Y-axis
< Previous Section | Topic Home | Home | Next Section >