4.3.6 Circular Interpolation Operation
Summary of operation
Set global moving speed and enable the X and Y axes. Set positioning coordinate mode to absolute. Execute a circular interpolation move. The center coordinates of circle are (1000, 0) and the rotation direction clockwise.
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 = "CIRXYP1000:0"
result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr) ’Start interpolation operation of X and Y axes
< Previous Section | Topic Home | Home | Next Section >