4.3.8 Synchronization Function
Summary of operation
When the X axis moves to position 5,000, turn on synchronization signal DO1/SYNCx.
Program code
cmdStr = "LSPDX=100"
result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr) ‘Starting speed of X axis set to 100 pps
cmdStr = "HSPDX=1000"
result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr) ‘Moving speed of X axis set to 1,000 pps
---omitted steps---
cmdStr = "SYNCX=1"
result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr) ‘Set X-axis sync condition
cmdStr = "SYNPX=5000"
result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr) ‘Set X-axis comparison data value to 5,000
cmdStr = "SYNO"
result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr) ‘Sync output configuration enabled
cmdStr = "X5000"
result = SendReceiveCommanderHID(devHandle, cmdStr, replyStr) ‘Move X axis to position 5,000
‘DO1/SYNCx will be on when movement is completed
< Previous Section | Topic Home | Home | Next Section >