EtherCAT Master Software Manual
Copyright © 2018 ICP DAS CO., Ltd. All Rights Reserved. - 3 -
4.3. Motion Control Flow ......................................................................................................................... 64
4.3.1. Motion Control Initialization ..................................................................................................... 64
4.3.2. Axis Motion Control ................................................................................................................. 66
4.3.3. Axis Homing ............................................................................................................................ 68
4.3.4. Axis Error Process ................................................................................................................... 70
4.3.5. Group Moving .......................................................................................................................... 72
4.4. Use motion Library in Windows ........................................................................................................ 74
4.4.1. For Visual Studio ..................................................................................................................... 74
5. Device Operation Functions ..................................................................................................................... 76
5.1. ECAT_GetDeviceCnt ....................................................................................................................... 76
5.2. ECAT_OpenDevice .......................................................................................................................... 78
5.3. ECAT_CloseDevice .......................................................................................................................... 80
5.4. ECAT_GetDeviceSerialNo ............................................................................................................... 82
5.5. ECAT_GetDeviceDI.......................................................................................................................... 84
5.6. ECAT_GetDeviceDIBit ..................................................................................................................... 86
5.7. ECAT_GetDeviceDO ........................................................................................................................ 88
5.8. ECAT_GetDeviceDOBit ................................................................................................................... 90
5.9. ECAT_SetDeviceDO ........................................................................................................................ 92
5.10. ECAT_SetDeviceDOBit .................................................................................................................... 94
5.11. ECAT_SetDeviceEncProperty .......................................................................................................... 96
5.12. ECAT_GetDeviceEncProperty ......................................................................................................... 98
5.13. ECAT_GetDeviceEncCount ........................................................................................................... 100
5.14. ECAT_ResetDeviceEncCount ........................................................................................................ 102
5.15. ECAT_SetDeviceCmpTrigProperty ................................................................................................ 104
5.16. ECAT_GetDeviceCmpTrigProperty ................................................................................................ 106
5.17. ECAT_SetDeviceCmpTrigData ...................................................................................................... 108
5.18. ECAT_SetDeviceContCmpTrigData .............................................................................................. 110
5.19. ECAT_SetDeviceEmg .................................................................................................................... 112
5.20. ECAT_GetDeviceEmg .................................................................................................................... 114
5.21. ECAT_GetDeviceEmgStatus ......................................................................................................... 116
5.22. ECAT_SetDeviceEmgSoftSig ........................................................................................................ 118
5.23. ECAT_SetDeviceMPG ................................................................................................................... 120
5.24. ECAT_GetDeviceMPG ................................................................................................................... 123
5.25. ECAT_GetDeviceState ................................................................................................................... 125
5.26. ECAT_StartDeviceOpTask ............................................................................................................. 128
5.27. ECAT_StopDeviceOpTask ............................................................................................................. 131
5.28. ECAT_SetTimer ............................................................................................................................. 133
5.29. ECAT_SetTimerStop ...................................................................................................................... 135