|
eyou_canopen_sdk
1.0
eyou_canopen_sdklibrary
|
类 | |
| struct | canopen_CanMsg |
| can数据结构 更多... | |
宏定义 | |
| #define | EXTERNFUNC |
| #define | CANOPEN_SUCCESS (0) |
| #define | CANOPEN_FAILED_DEVICEDISABLED (1) |
| #define | CANOPEN_FAILED_OPENFAILED (2) |
| #define | CANOPEN_FAILED_CANSEND (3) |
| #define | CANOPEN_FAILED_CANRECEIVE (4) |
| #define | CANOPEN_FAILED_ReadLocalDict (5) |
| #define | CANOPEN_FAILED_WriteLocalDict (6) |
| #define | CANOPEN_FAILED_NoRespondR (7) |
| #define | CANOPEN_FAILED_NoRespondW (8) |
| #define | CANOPEN_FAILED_UNKNOWN (100) |
类型定义 | |
| typedef signed char | hint8 |
| typedef signed short int | hint16 |
| typedef signed int | hint24 |
| typedef signed int | hint32 |
| typedef signed long int | hint40 |
| typedef signed long int | hint48 |
| typedef signed long int | hint56 |
| typedef signed long int | hint64 |
| typedef unsigned int huint8 | __attribute__((__mode__(__QI__))) |
| typedef float | hreal32 |
| typedef void(* | canopen_SendDataCallBack) (huint8 devIndex, const canopen_CanMsg *msg) |
| 发送数据回调函数 更多... | |
| typedef void(* | canopen_ReceiveDataCallBack) (huint8 devIndex, const canopen_CanMsg *msg) |
| 接收数据回调函数 更多... | |
函数 | |
| EXTERNFUNC int | canopen_setSendDataCallBack (canopen_SendDataCallBack callFunc) |
| 设置发送数据回调函数 更多... | |
| EXTERNFUNC int | canopen_setReceiveDataCallBack (canopen_ReceiveDataCallBack callFunc) |
| 设置接收数据回调函数 更多... | |
| EXTERNFUNC int | canopen_initDLL (canopen_DeviceType devType, huint8 devIndex, canopen_Baudrate baudrate, bool isCanFD=false, canopen_DBaudrate dbaudrate=canopen_DBaudrate::canopen_DBaudrate_5000) |
| 初始化dll,在调用所有函数前,必须先调用该函数进行初始化,该函数会打开设备。 【注意】控制多个设备时可多次调用,多设备控制时共享一个主站,所以即使不同的通讯设备上,电机id也不能重复 更多... | |
| EXTERNFUNC int | canopen_freeDLL (huint8 devIndex) |
| 关闭设备,释放资源,设备打开成功后需要在适当时机释放资源 如果存在多个设备,程序退出前,每个设备都需调用一次释放资源 更多... | |
| EXTERNFUNC int | canopen_getNodeState (huint8 devIndex, huint8 id, canopen_NodeState *state, huint32 timeout=100) |
| 读从节点状态 更多... | |
| EXTERNFUNC int | canopen_setLocalNodeState (canopen_NodeState state) |
| 设置本地节点状态 更多... | |
| EXTERNFUNC int | canopen_setNodeState (huint8 devIndex, huint8 id, canopen_NMTState state) |
| 设置从节点状态 更多... | |
| EXTERNFUNC int | canopen_readLocalDirectory (huint16 index, huint8 subIndex, canopen_DataType dataType, void *readData) |
| 读主站字典 更多... | |
| EXTERNFUNC int | canopen_readDirectory (huint8 devIndex, huint8 id, huint16 index, huint8 subIndex, canopen_DataType dataType, void *readData, huint32 timeout=100) |
| 读从站字典 更多... | |
| EXTERNFUNC int | canopen_writeLocalDirectory (huint16 index, huint8 subIndex, canopen_DataType dataType, void *writeData) |
| 写主站字典 更多... | |
| EXTERNFUNC int | canopen_writeDirectory (huint8 devIndex, huint8 id, huint16 index, huint8 subIndex, canopen_DataType dataType, void *writeData, huint32 timeout=100) |
| 写从站字典 更多... | |
| EXTERNFUNC int | canopen_writeCanData (huint8 devIndex, huint16 cobId, const huint8 *const data, huint8 len) |
| 发送原始can数据 更多... | |
| EXTERNFUNC int | canopen_writeCanMsg (huint8 devIndex, const canopen_CanMsg *canMsg) |
| 发送原始can数据 更多... | |
| EXTERNFUNC int | canopen_getLocalSyncCOBID (huint32 *cobId) |
| 读本地字典0x1005-0x0 更多... | |
| EXTERNFUNC int | canopen_setLocalSyncCOBID (huint32 cobId) |
| 读本地字典0x1005-0x0 更多... | |
| EXTERNFUNC int | canopen_getLocalSyncCycle (huint32 *cycle) |
| 读本地字典0x1006-0x0 更多... | |
| EXTERNFUNC int | canopen_setLocalSyncCycle (huint32 cycle) |
| 写本地字典0x1006-0x0 更多... | |
| EXTERNFUNC int | canopen_getLocalSyncWindow (huint32 *sWindow) |
| 读本地字典0x1007-0x0 更多... | |
| EXTERNFUNC int | canopen_setLocalSyncWindow (huint32 sWindow) |
| 写本地字典0x1007-0x0 更多... | |
| EXTERNFUNC int | canopen_getLocalServerSDONumberOfEntries (huint16 sdoServerIndex, huint8 *num) |
| 读本地字典[0x1200+sdoServerIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_setLocalServerSDONumberOfEntries (huint16 sdoServerIndex, huint8 num) |
| 写本地字典[0x1200+sdoServerIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_getLocalServerSDOCobIdClientToServer (huint16 sdoServerIndex, huint32 *cobId) |
| 读本地字典[0x1200+sdoServerIndex]-0x1 更多... | |
| EXTERNFUNC int | canopen_setLocalServerSDOCobIdClientToServer (huint16 sdoServerIndex, huint32 cobId) |
| 写本地字典[0x1200+sdoServerIndex]-0x1 更多... | |
| EXTERNFUNC int | canopen_getLocalServerSDOCobIdServerToClient (huint16 sdoServerIndex, huint32 *cobId) |
| 读本地字典[0x1200+sdoServerIndex]-0x2 更多... | |
| EXTERNFUNC int | canopen_setLocalServerSDOCobIdServerToClient (huint16 sdoServerIndex, huint32 cobId) |
| 写本地字典[0x1200+sdoServerIndex]-0x2 更多... | |
| EXTERNFUNC int | canopen_getLocalServerSDONodeIdOfClient (huint16 sdoServerIndex, huint8 *nodeId) |
| 读本地字典[0x1200+sdoServerIndex]-0x3 更多... | |
| EXTERNFUNC int | canopen_setLocalServerSDONodeIdOfClient (huint16 sdoServerIndex, huint8 nodeId) |
| 写本地字典[0x1200+sdoServerIndex]-0x3 更多... | |
| EXTERNFUNC int | canopen_getLocalClientSDONumberOfEntries (huint16 sdoClientIndex, huint8 *number) |
| 读本地字典[0x1280+sdoClientIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_setLocalClientSDONumberOfEntries (huint16 sdoClientIndex, huint8 number) |
| 写本地字典[0x1280+sdoClientIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_getLocalClientSDOCobIdClientToServer (huint16 sdoClientIndex, huint32 *cobId) |
| 读本地字典[0x1280+sdoClientIndex]-0x1 更多... | |
| EXTERNFUNC int | canopen_setLocalClientSDOCobIdClientToServer (huint16 sdoClientIndex, huint32 cobId) |
| 写本地字典[0x1280+sdoClientIndex]-0x1 更多... | |
| EXTERNFUNC int | canopen_getLocalClientSDOCobIdServerToClient (huint16 sdoClientIndex, huint32 *cobId) |
| 读本地字典[0x1280+sdoClientIndex]-0x2 更多... | |
| EXTERNFUNC int | canopen_setLocalClientSDOCobIdServerToClient (huint16 sdoClientIndex, huint32 cobId) |
| 写本地字典[0x1280+sdoClientIndex]-0x2 更多... | |
| EXTERNFUNC int | canopen_getLocalClientSDONodeIdOfSDOServer (huint16 sdoClientIndex, huint8 *nodeId) |
| 读本地字典[0x1280+sdoClientIndex]-0x3 更多... | |
| EXTERNFUNC int | canopen_setLocalClientSDONodeIdOfSDOServer (huint16 sdoClientIndex, huint8 nodeId) |
| 写本地字典[0x1280+sdoClientIndex]-0x3 更多... | |
| EXTERNFUNC int | canopen_getLocalRPDOMaxParasCount (huint16 pdoIndex, huint8 *count) |
| 读本地字典[0x1400+pdoIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_setLocalRPDOMaxParasCount (huint16 pdoIndex, huint8 count) |
| 写本地字典[0x1400+pdoIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_getLocalRPDOCobId (huint16 pdoIndex, huint32 *cobId) |
| 读本地字典[0x1400+pdoIndex]-0x1 更多... | |
| EXTERNFUNC int | canopen_setLocalRPDOCobId (huint16 pdoIndex, huint32 cobId) |
| 写本地字典[0x1400+pdoIndex]-0x1 更多... | |
| EXTERNFUNC int | canopen_getLocalRPDOTransmitType (huint16 pdoIndex, huint8 *type) |
| 读本地字典[0x1400+pdoIndex]-0x2 更多... | |
| EXTERNFUNC int | canopen_setLocalRPDOTransmitType (huint16 pdoIndex, huint8 type) |
| 写本地字典[0x1400+pdoIndex]-0x2 更多... | |
| EXTERNFUNC int | canopen_getLocalRPDOInhibitTime (huint16 pdoIndex, huint16 *time) |
| 读本地字典[0x1400+pdoIndex]-0x3 更多... | |
| EXTERNFUNC int | canopen_setLocalRPDOInhibitTime (huint16 pdoIndex, huint16 time) |
| 写本地字典[0x1400+pdoIndex]-0x3 更多... | |
| EXTERNFUNC int | canopen_getLocalRPDOEventTimer (huint16 pdoIndex, huint16 *timer) |
| 读本地字典[0x1400+pdoIndex]-0x5 更多... | |
| EXTERNFUNC int | canopen_setLocalRPDOEventTimer (huint16 pdoIndex, huint16 timer) |
| 写本地字典[0x1400+pdoIndex]-0x5 更多... | |
| EXTERNFUNC int | canopen_getLocalRPDOSYNCStartValue (huint16 pdoIndex, huint8 *value) |
| 读本地字典[0x1400+pdoIndex]-0x6 更多... | |
| EXTERNFUNC int | canopen_setLocalRPDOSYNCStartValue (huint16 pdoIndex, huint8 value) |
| 写本地字典[0x1400+pdoIndex]-0x6 更多... | |
| EXTERNFUNC int | canopen_getLocalRPDOMaxMappedCount (huint16 pdoIndex, huint8 *count) |
| 读本地字典[0x1600+pdoIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_setLocalRPDOMaxMappedCount (huint16 pdoIndex, huint8 count) |
| 写本地字典[0x1600+pdoIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_getLocalRPDOMapped (huint16 pdoIndex, huint8 mapIndex, huint32 *value) |
| 读本地字典[0x1600+pdoIndex]-[0x1+mapIndex] 更多... | |
| EXTERNFUNC int | canopen_setLocalRPDOMapped (huint16 pdoIndex, huint8 mapIndex, huint32 value) |
| 写本地字典[0x1600+pdoIndex]-[0x1+mapIndex] 更多... | |
| EXTERNFUNC int | canopen_getLocalTPDOMaxParasCount (huint16 pdoIndex, huint8 *count) |
| 读本地字典[0x1800+pdoIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_setLocalTPDOMaxParasCount (huint16 pdoIndex, huint8 count) |
| 写本地字典[0x1800+pdoIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_getLocalTPDOCobId (huint16 pdoIndex, huint32 *cobId) |
| 读本地字典[0x1800+pdoIndex]-0x1 更多... | |
| EXTERNFUNC int | canopen_setLocalTPDOCobId (huint16 pdoIndex, huint32 cobId) |
| 写本地字典[0x1800+pdoIndex]-0x1 更多... | |
| EXTERNFUNC int | canopen_getLocalTPDOTransmitType (huint16 pdoIndex, huint8 *type) |
| 读本地字典[0x1800+pdoIndex]-0x2 更多... | |
| EXTERNFUNC int | canopen_setLocalTPDOTransmitType (huint16 pdoIndex, huint8 type) |
| 写本地字典[0x1800+pdoIndex]-0x2 更多... | |
| EXTERNFUNC int | canopen_getLocalTPDOInhibitTime (huint16 pdoIndex, huint16 *time) |
| 读本地字典[0x1800+pdoIndex]-0x3 更多... | |
| EXTERNFUNC int | canopen_setLocalTPDOInhibitTime (huint16 pdoIndex, huint16 time) |
| 写本地字典[0x1800+pdoIndex]-0x3 更多... | |
| EXTERNFUNC int | canopen_getLocalTPDOEventTimer (huint16 pdoIndex, huint16 *timer) |
| 读本地字典[0x1800+pdoIndex]-0x5 更多... | |
| EXTERNFUNC int | canopen_setLocalTPDOEventTimer (huint16 pdoIndex, huint16 timer) |
| 写本地字典[0x1800+pdoIndex]-0x5 更多... | |
| EXTERNFUNC int | canopen_getLocalTPDOSYNCStartValue (huint16 pdoIndex, huint8 *value) |
| 读本地字典[0x1800+pdoIndex]-0x6 更多... | |
| EXTERNFUNC int | canopen_setLocalTPDOSYNCStartValue (huint16 pdoIndex, huint8 value) |
| 写本地字典[0x1800+pdoIndex]-0x6 更多... | |
| EXTERNFUNC int | canopen_getLocalTPDOMaxMappedCount (huint16 pdoIndex, huint8 *count) |
| 读本地字典[0x1A00+pdoIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_setLocalTPDOMaxMappedCount (huint16 pdoIndex, huint8 count) |
| 写本地字典[0x1A00+pdoIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_getLocalTPDOMapped (huint16 pdoIndex, huint8 mapIndex, huint32 *value) |
| 读本地字典[0x1A00+pdoIndex]-[0x1+mapIndex] 更多... | |
| EXTERNFUNC int | canopen_setLocalTPDOMapped (huint16 pdoIndex, huint8 mapIndex, huint32 value) |
| 写本地字典[0x1A00+pdoIndex]-[0x1+mapIndex] 更多... | |
| EXTERNFUNC int | canopen_getLocalMutiMotorPos (huint16 motorIndex, hint32 *pos) |
| 读本地字典0x5000+[0x1+motorIndex] 更多... | |
| EXTERNFUNC int | canopen_getLocalMutiMotorVel (huint16 motorIndex, hint32 *vel) |
| 读本地字典0x5001+[0x1+motorIndex] 更多... | |
| EXTERNFUNC int | canopen_getLocalMutiMotorTorque (huint16 motorIndex, hint16 *tor) |
| 读本地字典0x5002+[0x1+motorIndex] 更多... | |
| EXTERNFUNC int | canopen_setLocalMutiMotorSetPos (huint16 motorIndex, hint32 pos) |
| 写本地字典0x5003+[0x1+motorIndex] 更多... | |
| EXTERNFUNC int | canopen_setLocalMutiMotorSetVel (huint16 motorIndex, hint32 vel) |
| 写本地字典0x5004+[0x1+motorIndex] 更多... | |
| EXTERNFUNC int | canopen_setLocalMutiMotorSetTorque (huint16 motorIndex, hint16 torque) |
| 写本地字典0x5005+[0x1+motorIndex] 更多... | |
| EXTERNFUNC int | canopen_getLocalMutiMotorStatusWord (huint16 motorIndex, huint16 *status) |
| 读本地字典0x5006+[0x1+motorIndex] 更多... | |
| EXTERNFUNC int | canopen_getLocalMutiMotorErrorCode (huint16 motorIndex, huint16 *error) |
| 读本地字典0x5007+[0x1+motorIndex] 更多... | |
| EXTERNFUNC int | canopen_getLocalMitMutiMotorGetPos (huint16 motorIndex, hreal32 *pos) |
| 读本地字典0x5008+[0x1+motorIndex] 更多... | |
| EXTERNFUNC int | canopen_setLocalMitMutiMotorGetPos (huint16 motorIndex, hreal32 pos) |
| 写本地字典0x5008+[0x1+motorIndex] 更多... | |
| EXTERNFUNC int | canopen_getLocalMitMutiMotorGetVel (huint16 motorIndex, hreal32 *vel) |
| 读本地字典0x5009+[0x1+motorIndex] 更多... | |
| EXTERNFUNC int | canopen_setLocalMitMutiMotorGetVel (huint16 motorIndex, hreal32 vel) |
| 写本地字典0x5009+[0x1+motorIndex] 更多... | |
| EXTERNFUNC int | canopen_getLocalMitMutiMotorGetTor (huint16 motorIndex, hreal32 *tor) |
| 读本地字典0x500A+[0x1+motorIndex] 更多... | |
| EXTERNFUNC int | canopen_setLocalMitMutiMotorGetTor (huint16 motorIndex, hreal32 tor) |
| 写本地字典0x500A+[0x1+motorIndex] 更多... | |
| EXTERNFUNC int | canopen_getLocalMitMutiMotorSetPos (huint16 motorIndex, hreal32 *pos) |
| 读本地字典0x500B+[0x1+motorIndex] 更多... | |
| EXTERNFUNC int | canopen_setLocalMitMutiMotorSetPos (huint16 motorIndex, hreal32 pos) |
| 写本地字典0x500B+[0x1+motorIndex] 更多... | |
| EXTERNFUNC int | canopen_getLocalMitMutiMotorSetVel (huint16 motorIndex, hreal32 *vel) |
| 读本地字典0x500C+[0x1+motorIndex] 更多... | |
| EXTERNFUNC int | canopen_setLocalMitMutiMotorSetVel (huint16 motorIndex, hreal32 vel) |
| 写本地字典0x500C+[0x1+motorIndex] 更多... | |
| EXTERNFUNC int | canopen_getLocalMitMutiMotorSetTor (huint16 motorIndex, hreal32 *tor) |
| 读本地字典0x500D+[0x1+motorIndex] 更多... | |
| EXTERNFUNC int | canopen_setLocalMitMutiMotorSetTor (huint16 motorIndex, hreal32 tor) |
| 写本地字典0x500D+[0x1+motorIndex] 更多... | |
| EXTERNFUNC int | canopen_getLocalServoErrorCode (huint16 *err) |
| 读本地字典0x603F-0x0 更多... | |
| EXTERNFUNC int | canopen_getLocalControlword (huint16 *word) |
| 读本地字典0x6040-0x0 更多... | |
| EXTERNFUNC int | canopen_setLocalControlword (huint16 word) |
| 写本地字典0x6040-0x0 更多... | |
| EXTERNFUNC int | canopen_getLocalStatusWord (huint16 *word) |
| 写本地字典0x6041-0x0 更多... | |
| EXTERNFUNC int | canopen_getLocalActualPos (hint32 *pos) |
| 读本地字典0x6064-0x0 更多... | |
| EXTERNFUNC int | canopen_getLocalActualVelocity (hint32 *velocity) |
| 读本地字典0x606c-0x0 更多... | |
| EXTERNFUNC int | canopen_getLocalTargetTorque (hint16 *torque) |
| 读本地字典0x6071-0x0 更多... | |
| EXTERNFUNC int | canopen_setLocalTargetTorque (hint16 torque) |
| 写本地字典0x6071-0x0 更多... | |
| EXTERNFUNC int | canopen_getLocalActualTorque (hint16 *torque) |
| 读本地字典0x6077-0x0 更多... | |
| EXTERNFUNC int | canopen_getLocalDCLinkCircuitVoltage (huint32 *voltage) |
| 读本地字典0x6079-0x0 更多... | |
| EXTERNFUNC int | canopen_getLocalTargetPos (hint32 *pos) |
| 读本地字典0x607A-0x0 更多... | |
| EXTERNFUNC int | canopen_setLocalTargetPos (hint32 pos) |
| 写本地字典0x607A-0x0 更多... | |
| EXTERNFUNC int | canopen_getLocalInterpolationDataRecord (hint32 *value) |
| 读本地字典0x60C1-0x1 更多... | |
| EXTERNFUNC int | canopen_setLocalInterpolationDataRecord (hint32 value) |
| 写本地字典0x60C1-0x1 更多... | |
| EXTERNFUNC int | canopen_getLocalInterpolationTimePeriodValue (huint8 *value) |
| 读本地字典0x60c2-0x1 更多... | |
| EXTERNFUNC int | canopen_setLocalInterpolationTimePeriodValue (huint8 value) |
| 写本地字典0x60c2-0x1 更多... | |
| EXTERNFUNC int | canopen_getLocalTargetVelocity (hint32 *vel) |
| 读本地字典0x60FF-0x0 更多... | |
| EXTERNFUNC int | canopen_setLocalTargetVelocity (hint32 vel) |
| 写本地字典0x60FF-0x0 更多... | |
| EXTERNFUNC int | canopen_getDeviceType (huint8 devIndex, huint8 id, huint32 *deviceType, huint32 timeout=100) |
| 读从站字典0x1000-0x0 更多... | |
| EXTERNFUNC int | canopen_getErrorRegister (huint8 devIndex, huint8 id, huint8 *errReg, huint32 timeout=100) |
| 读从站字典0x1001-0x0 更多... | |
| EXTERNFUNC int | canopen_getErrorFieldNumber (huint8 devIndex, huint8 id, huint8 *number, huint32 timeout=100) |
| 读从站字典0x1003-0x0 更多... | |
| EXTERNFUNC int | canopen_setErrorFieldNumber (huint8 devIndex, huint8 id, huint8 number, huint32 timeout=100) |
| 写从站字典0x1003-0x0 更多... | |
| EXTERNFUNC int | canopen_getErrorField (huint8 devIndex, huint8 id, huint8 subIndex, huint32 *err, huint32 timeout=100) |
| 读从站字典0x1003-subIndex 更多... | |
| EXTERNFUNC int | canopen_getSyncCobid (huint8 devIndex, huint8 id, huint32 *cobid, huint32 timeout=100) |
| 读从站字典0x1005-0x0 更多... | |
| EXTERNFUNC int | canopen_setSyncCobid (huint8 devIndex, huint8 id, huint32 cobid, huint32 timeout=100) |
| 写从站字典0x1005-0x0 更多... | |
| EXTERNFUNC int | canopen_getSyncCycle (huint8 devIndex, huint8 id, huint32 *syncCycle, huint32 timeout=100) |
| 读从站字典0x1006-0x0 更多... | |
| EXTERNFUNC int | canopen_setSyncCycle (huint8 devIndex, huint8 id, huint32 syncCycle, huint32 timeout=100) |
| 写从站字典0x1006-0x0 更多... | |
| EXTERNFUNC int | canopen_getSyncWindow (huint8 devIndex, huint8 id, huint32 *syncWindow, huint32 timeout=100) |
| 读从站字典0x1007-0x0 更多... | |
| EXTERNFUNC int | canopen_setSyncWindow (huint8 devIndex, huint8 id, huint32 syncWindow, huint32 timeout=100) |
| 写从站字典0x1007-0x0 更多... | |
| EXTERNFUNC int | canopen_getDeviceName (huint8 devIndex, huint8 id, char *devName, huint32 timeout=100) |
| 读从站字典0x1008-0x0 更多... | |
| EXTERNFUNC int | canopen_getHardwareVersion (huint8 devIndex, huint8 id, char *version, huint32 timeout=100) |
| 读从站字典0x1009-0x0 更多... | |
| EXTERNFUNC int | canopen_getSoftwareVersion (huint8 devIndex, huint8 id, char *version, huint32 timeout=100) |
| 读从站字典0x100A-0x0 更多... | |
| EXTERNFUNC int | canopen_getGuardTime (huint8 devIndex, huint8 id, huint16 *time, huint32 timeout=100) |
| 读从站字典0x100C-0x0 更多... | |
| EXTERNFUNC int | canopen_setGuardTime (huint8 devIndex, huint8 id, huint16 time, huint32 timeout=100) |
| 写从站字典0x100C-0x0 更多... | |
| EXTERNFUNC int | canopen_getLifeTimeFactor (huint8 devIndex, huint8 id, huint8 *factor, huint32 timeout=100) |
| 读从站字典0x100D-0x0 更多... | |
| EXTERNFUNC int | canopen_setLifeTimeFactor (huint8 devIndex, huint8 id, huint8 factor, huint32 timeout=100) |
| 写从站字典0x100D-0x0 更多... | |
| EXTERNFUNC int | canopen_getStoreParametersNumber (huint8 devIndex, huint8 id, huint8 *number, huint32 timeout=100) |
| 读从站字典0x1010-0x0 更多... | |
| EXTERNFUNC int | canopen_getStoreParameters (huint8 devIndex, huint8 id, huint32 *value, huint32 timeout=100) |
| 读从站字典0x1010-0x1 更多... | |
| EXTERNFUNC int | canopen_setStoreParameters (huint8 devIndex, huint8 id, huint32 value, huint32 timeout=100) |
| 写从站字典0x1010-0x1 更多... | |
| EXTERNFUNC int | canopen_getRestoreDefaultParametersNumber (huint8 devIndex, huint8 id, huint8 *number, huint32 timeout=100) |
| 读从站字典0x1011-0x0 更多... | |
| EXTERNFUNC int | canopen_getRestoreDefaultParameters (huint8 devIndex, huint8 id, huint32 *value, huint32 timeout=100) |
| 读从站字典0x1011-0x1 更多... | |
| EXTERNFUNC int | canopen_setRestoreDefaultParameters (huint8 devIndex, huint8 id, huint32 value, huint32 timeout=100) |
| 写从站字典0x1011-0x1 更多... | |
| EXTERNFUNC int | canopen_getEmergencyCobid (huint8 devIndex, huint8 id, huint32 *cobid, huint32 timeout=100) |
| 读从站字典0x1014-0x0 更多... | |
| EXTERNFUNC int | canopen_setEmergencyCobid (huint8 devIndex, huint8 id, huint32 cobid, huint32 timeout=100) |
| 写从站字典0x1014-0x0 更多... | |
| EXTERNFUNC int | canopen_getEmergencyInhibitTime (huint8 devIndex, huint8 id, huint16 *time, huint32 timeout=100) |
| 读从站字典0x1015-0x0 更多... | |
| EXTERNFUNC int | canopen_setEmergencyInhibitTime (huint8 devIndex, huint8 id, huint16 time, huint32 timeout=100) |
| 写从站字典0x1015-0x0 更多... | |
| EXTERNFUNC int | canopen_getHearbeatConsumerTimeParasNum (huint8 devIndex, huint8 id, huint8 *number, huint32 timeout=100) |
| 读从站字典0x1016-0x0 更多... | |
| EXTERNFUNC int | canopen_getHearbeatConsumerTime (huint8 devIndex, huint8 id, huint8 subIndex, huint32 *time, huint32 timeout=100) |
| 读从站字典0x1016-subIndex 更多... | |
| EXTERNFUNC int | canopen_setHearbeatConsumerTime (huint8 devIndex, huint8 id, huint8 subIndex, huint32 time, huint32 timeout=100) |
| 写从站字典0x1016-subIndex 更多... | |
| EXTERNFUNC int | canopen_getProducerHeartbeatTime (huint8 devIndex, huint8 id, huint16 *time, huint32 timeout=100) |
| 读从站字典0x1017-0x0 更多... | |
| EXTERNFUNC int | canopen_setProducerHeartbeatTime (huint8 devIndex, huint8 id, huint16 time, huint32 timeout=100) |
| 写从站字典0x1017-0x0 更多... | |
| EXTERNFUNC int | canopen_getIdentityObjectNumber (huint8 devIndex, huint8 id, huint8 *number, huint32 timeout=100) |
| 读从站字典0x1018-0x0 更多... | |
| EXTERNFUNC int | canopen_getVendorID (huint8 devIndex, huint8 id, huint32 *vId, huint32 timeout=100) |
| 读从站字典0x1018-0x1 更多... | |
| EXTERNFUNC int | canopen_getProductCode (huint8 devIndex, huint8 id, huint32 *pCode, huint32 timeout=100) |
| 读从站字典0x1018-0x2 更多... | |
| EXTERNFUNC int | canopen_getIdentityObjectRevisionNumber (huint8 devIndex, huint8 id, huint32 *revisionNum, huint32 timeout=100) |
| 读从站字典0x1018-0x3 更多... | |
| EXTERNFUNC int | canopen_getSerialNumber (huint8 devIndex, huint8 id, huint32 *serialNum, huint32 timeout=100) |
| 读从站字典0x1018-0x4 更多... | |
| EXTERNFUNC int | canopen_getSyncCounter (huint8 devIndex, huint8 id, huint8 *counter, huint32 timeout=100) |
| 读从站字典0x1019-0x0 更多... | |
| EXTERNFUNC int | canopen_setSyncCounter (huint8 devIndex, huint8 id, huint8 counter, huint32 timeout=100) |
| 写从站字典0x1019-0x0 更多... | |
| EXTERNFUNC int | canopen_getServerSDONumberOfEntries (huint8 devIndex, huint8 id, huint16 sdoServerIndex, huint8 *num, huint32 timeout=100) |
| 读从站字典[0x1200+sdoServerIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_setServerSDONumberOfEntries (huint8 devIndex, huint8 id, huint16 sdoServerIndex, huint8 num, huint32 timeout=100) |
| 写从站字典[0x1200+sdoServerIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_getServerSDOCobIdClientToServer (huint8 devIndex, huint8 id, huint16 sdoServerIndex, huint32 *cobId, huint32 timeout=100) |
| 读从站字典[0x1200+sdoServerIndex]-0x1 更多... | |
| EXTERNFUNC int | canopen_setServerSDOCobIdClientToServer (huint8 devIndex, huint8 id, huint16 sdoServerIndex, huint32 cobId, huint32 timeout=100) |
| 写从站字典[0x1200+sdoServerIndex]-0x1 更多... | |
| EXTERNFUNC int | canopen_getServerSDOCobIdServerToClient (huint8 devIndex, huint8 id, huint16 sdoServerIndex, huint32 *cobId, huint32 timeout=100) |
| 读从站字典[0x1200+sdoServerIndex]-0x2 更多... | |
| EXTERNFUNC int | canopen_setServerSDOCobIdServerToClient (huint8 devIndex, huint8 id, huint16 sdoServerIndex, huint32 cobId, huint32 timeout=100) |
| 写从站字典[0x1200+sdoServerIndex]-0x2 更多... | |
| EXTERNFUNC int | canopen_getServerSDONodeIdOfClient (huint8 devIndex, huint8 id, huint16 sdoServerIndex, huint8 *nodeId, huint32 timeout=100) |
| 读从站字典[0x1200+sdoServerIndex]-0x3 更多... | |
| EXTERNFUNC int | canopen_setServerSDONodeIdOfClient (huint8 devIndex, huint8 id, huint16 sdoServerIndex, huint8 nodeId, huint32 timeout=100) |
| 写从站字典[0x1200+sdoServerIndex]-0x3 更多... | |
| EXTERNFUNC int | canopen_getClientSDONumberOfEntries (huint8 devIndex, huint8 id, huint16 sdoClientIndex, huint8 *number, huint32 timeout=100) |
| 读从站字典[0x1280+sdoClientIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_setClientSDONumberOfEntries (huint8 devIndex, huint8 id, huint16 sdoClientIndex, huint8 number, huint32 timeout=100) |
| 写从站字典[0x1280+sdoClientIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_getClientSDOCobIdClientToServer (huint8 devIndex, huint8 id, huint16 sdoClientIndex, huint32 *cobId, huint32 timeout=100) |
| 读从站字典[0x1280+sdoClientIndex]-0x1 更多... | |
| EXTERNFUNC int | canopen_setClientSDOCobIdClientToServer (huint8 devIndex, huint8 id, huint16 sdoClientIndex, huint32 cobId, huint32 timeout=100) |
| 写从站字典[0x1280+sdoClientIndex]-0x1 更多... | |
| EXTERNFUNC int | canopen_getClientSDOCobIdServerToClient (huint8 devIndex, huint8 id, huint16 sdoClientIndex, huint32 *cobId, huint32 timeout=100) |
| 读从站字典[0x1280+sdoClientIndex]-0x2 更多... | |
| EXTERNFUNC int | canopen_setClientSDOCobIdServerToClient (huint8 devIndex, huint8 id, huint16 sdoClientIndex, huint32 cobId, huint32 timeout=100) |
| 写从站字典[0x1280+sdoClientIndex]-0x2 更多... | |
| EXTERNFUNC int | canopen_getClientSDONodeIdOfSDOServer (huint8 devIndex, huint8 id, huint16 sdoClientIndex, huint8 *nodeId, huint32 timeout=100) |
| 读从站字典[0x1280+sdoClientIndex]-0x3 更多... | |
| EXTERNFUNC int | canopen_setClientSDONodeIdOfSDOServer (huint8 devIndex, huint8 id, huint16 sdoClientIndex, huint8 nodeId, huint32 timeout=100) |
| 写从站字典[0x1280+sdoClientIndex]-0x3 更多... | |
| EXTERNFUNC int | canopen_getRPDOMaxParasCount (huint8 devIndex, huint8 id, huint16 pdoIndex, huint8 *count, huint32 timeout=100) |
| 读从站字典[0x1400+pdoIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_setRPDOMaxParasCount (huint8 devIndex, huint8 id, huint16 pdoIndex, huint8 count, huint32 timeout=100) |
| 写从站字典[0x1400+pdoIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_getRPDOCobId (huint8 devIndex, huint8 id, huint16 pdoIndex, huint32 *cobId, huint32 timeout=100) |
| 读从站字典[0x1400+pdoIndex]-0x1 更多... | |
| EXTERNFUNC int | canopen_setRPDOCobId (huint8 devIndex, huint8 id, huint16 pdoIndex, huint32 cobId, huint32 timeout=100) |
| 写从站字典[0x1400+pdoIndex]-0x1 更多... | |
| EXTERNFUNC int | canopen_getRPDOTransmitType (huint8 devIndex, huint8 id, huint16 pdoIndex, huint8 *type, huint32 timeout=100) |
| 读从站字典[0x1400+pdoIndex]-0x2 更多... | |
| EXTERNFUNC int | canopen_setRPDOTransmitType (huint8 devIndex, huint8 id, huint16 pdoIndex, huint8 type, huint32 timeout=100) |
| 写从站字典[0x1400+pdoIndex]-0x2 更多... | |
| EXTERNFUNC int | canopen_getRPDOInhibitTime (huint8 devIndex, huint8 id, huint16 pdoIndex, huint16 *time, huint32 timeout=100) |
| 读从站字典[0x1400+pdoIndex]-0x3 更多... | |
| EXTERNFUNC int | canopen_setRPDOInhibitTime (huint8 devIndex, huint8 id, huint16 pdoIndex, huint16 time, huint32 timeout=100) |
| 写从站字典[0x1400+pdoIndex]-0x3 更多... | |
| EXTERNFUNC int | canopen_getRPDOEventTimer (huint8 devIndex, huint8 id, huint16 pdoIndex, huint16 *timer, huint32 timeout=100) |
| 读从站字典[0x1400+pdoIndex]-0x5 更多... | |
| EXTERNFUNC int | canopen_setRPDOEventTimer (huint8 devIndex, huint8 id, huint16 pdoIndex, huint16 timer, huint32 timeout=100) |
| 写从站字典[0x1400+pdoIndex]-0x5 更多... | |
| EXTERNFUNC int | canopen_getRPDOSYNCStartValue (huint8 devIndex, huint8 id, huint16 pdoIndex, huint8 *value, huint32 timeout=100) |
| 读从站字典[0x1400+pdoIndex]-0x6 更多... | |
| EXTERNFUNC int | canopen_setRPDOSYNCStartValue (huint8 devIndex, huint8 id, huint16 pdoIndex, huint8 value, huint32 timeout=100) |
| 写从站字典[0x1400+pdoIndex]-0x6 更多... | |
| EXTERNFUNC int | canopen_getRPDOMaxMappedCount (huint8 devIndex, huint8 id, huint16 pdoIndex, huint8 *count, huint32 timeout=100) |
| 读从站字典[0x1600+pdoIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_setRPDOMaxMappedCount (huint8 devIndex, huint8 id, huint16 pdoIndex, huint8 count, huint32 timeout=100) |
| 写从站字典[0x1600+pdoIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_getRPDOMapped (huint8 devIndex, huint8 id, huint16 pdoIndex, huint8 mapIndex, huint32 *value, huint32 timeout=100) |
| 读从站字典[0x1600+pdoIndex]-[0x1+mapIndex] 更多... | |
| EXTERNFUNC int | canopen_setRPDOMapped (huint8 devIndex, huint8 id, huint16 pdoIndex, huint8 mapIndex, huint32 value, huint32 timeout=100) |
| 写从站字典[0x1600+pdoIndex]-[0x1+mapIndex] 更多... | |
| EXTERNFUNC int | canopen_getTPDOMaxParasCount (huint8 devIndex, huint8 id, huint16 pdoIndex, huint8 *count, huint32 timeout=100) |
| 读从站字典[0x1800+pdoIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_setTPDOMaxParasCount (huint8 devIndex, huint8 id, huint16 pdoIndex, huint8 count, huint32 timeout=100) |
| 写从站字典[0x1800+pdoIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_getTPDOCobId (huint8 devIndex, huint8 id, huint16 pdoIndex, huint32 *cobId, huint32 timeout=100) |
| 读从站字典[0x1800+pdoIndex]-0x1 更多... | |
| EXTERNFUNC int | canopen_setTPDOCobId (huint8 devIndex, huint8 id, huint16 pdoIndex, huint32 cobId, huint32 timeout=100) |
| 写从站字典[0x1800+pdoIndex]-0x1 更多... | |
| EXTERNFUNC int | canopen_getTPDOTransmitType (huint8 devIndex, huint8 id, huint16 pdoIndex, huint8 *type, huint32 timeout=100) |
| 读从站字典[0x1800+pdoIndex]-0x2 更多... | |
| EXTERNFUNC int | canopen_setTPDOTransmitType (huint8 devIndex, huint8 id, huint16 pdoIndex, huint8 type, huint32 timeout=100) |
| 写从站字典[0x1800+pdoIndex]-0x2 更多... | |
| EXTERNFUNC int | canopen_getTPDOInhibitTime (huint8 devIndex, huint8 id, huint16 pdoIndex, huint16 *time, huint32 timeout=100) |
| 读从站字典[0x1800+pdoIndex]-0x3 更多... | |
| EXTERNFUNC int | canopen_setTPDOInhibitTime (huint8 devIndex, huint8 id, huint16 pdoIndex, huint16 time, huint32 timeout=100) |
| 写从站字典[0x1800+pdoIndex]-0x3 更多... | |
| EXTERNFUNC int | canopen_getTPDOEventTimer (huint8 devIndex, huint8 id, huint16 pdoIndex, huint16 *timer, huint32 timeout=100) |
| 读从站字典[0x1800+pdoIndex]-0x5 更多... | |
| EXTERNFUNC int | canopen_setTPDOEventTimer (huint8 devIndex, huint8 id, huint16 pdoIndex, huint16 timer, huint32 timeout=100) |
| 写从站字典[0x1800+pdoIndex]-0x5 更多... | |
| EXTERNFUNC int | canopen_getTPDOSYNCStartValue (huint8 devIndex, huint8 id, huint16 pdoIndex, huint8 *value, huint32 timeout=100) |
| 读从站字典[0x1800+pdoIndex]-0x6 更多... | |
| EXTERNFUNC int | canopen_setTPDOSYNCStartValue (huint8 devIndex, huint8 id, huint16 pdoIndex, huint8 value, huint32 timeout=100) |
| 写从站字典[0x1800+pdoIndex]-0x6 更多... | |
| EXTERNFUNC int | canopen_getTPDOMaxMappedCount (huint8 devIndex, huint8 id, huint16 pdoIndex, huint8 *count, huint32 timeout=100) |
| 读从站字典[0x1A00+pdoIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_setTPDOMaxMappedCount (huint8 devIndex, huint8 id, huint16 pdoIndex, huint8 count, huint32 timeout=100) |
| 写从站字典[0x1A00+pdoIndex]-0x0 更多... | |
| EXTERNFUNC int | canopen_getTPDOMapped (huint8 devIndex, huint8 id, huint16 pdoIndex, huint8 mapIndex, huint32 *value, huint32 timeout=100) |
| 读从站字典[0x1A00+pdoIndex]-[0x1+mapIndex] 更多... | |
| EXTERNFUNC int | canopen_setTPDOMapped (huint8 devIndex, huint8 id, huint16 pdoIndex, huint8 mapIndex, huint32 value, huint32 timeout=100) |
| 写从站字典[0x1A00+pdoIndex]-[0x1+mapIndex] 更多... | |
| EXTERNFUNC int | canopen_getServoErrorCode (huint8 devIndex, huint8 id, huint16 *err, huint32 timeout=100) |
| 读从站字典0x603F-0x0 更多... | |
| EXTERNFUNC int | canopen_getControlword (huint8 devIndex, huint8 id, huint16 *word, huint32 timeout=100) |
| 读从站字典0x6040-0x0 更多... | |
| EXTERNFUNC int | canopen_setControlword (huint8 devIndex, huint8 id, huint16 word, huint32 timeout=100) |
| 写从站字典0x6040-0x0 更多... | |
| EXTERNFUNC int | canopen_getStatusWord (huint8 devIndex, huint8 id, huint16 *word, huint32 timeout=100) |
| 读从站字典0x6041-0x0 更多... | |
| EXTERNFUNC int | canopen_getQuickStopOption (huint8 devIndex, huint8 id, canopen_QuickStopOption *option, huint32 timeout=100) |
| 读从站字典0x605A-0x0 更多... | |
| EXTERNFUNC int | canopen_setQuickStopOption (huint8 devIndex, huint8 id, canopen_QuickStopOption option, huint32 timeout=100) |
| 写从站字典0x605A-0x0 更多... | |
| EXTERNFUNC int | canopen_getShutdownOptionCode (huint8 devIndex, huint8 id, canopen_ShutdownOption *code, huint32 timeout=100) |
| 读从站字典0x605B-0 更多... | |
| EXTERNFUNC int | canopen_setShutdownOptionCode (huint8 devIndex, huint8 id, canopen_ShutdownOption code, huint32 timeout=100) |
| 写从站字典0x605B-0 更多... | |
| EXTERNFUNC int | canopen_getDisableOperationOptionCode (huint8 devIndex, huint8 id, canopen_DisableOperationOption *code, huint32 timeout=100) |
| 读从站字典0x605C-0x0 更多... | |
| EXTERNFUNC int | canopen_setDisableOperationOptionCode (huint8 devIndex, huint8 id, canopen_DisableOperationOption code, huint32 timeout=100) |
| 写从站字典0x605C-0x0 更多... | |
| EXTERNFUNC int | canopen_getHaltOption (huint8 devIndex, huint8 id, canopen_HaltOption *option, huint32 timeout=100) |
| 读从站字典0x605D-0x0 更多... | |
| EXTERNFUNC int | canopen_setHaltOption (huint8 devIndex, huint8 id, canopen_HaltOption option, huint32 timeout=100) |
| 写从站字典0x605D-0x0 更多... | |
| EXTERNFUNC int | canopen_getFaultReactionOption (huint8 devIndex, huint8 id, canopen_FaultReactionOption *option, huint32 timeout=100) |
| 读从站字典0x605E-0x0 更多... | |
| EXTERNFUNC int | canopen_setFaultReactionOption (huint8 devIndex, huint8 id, canopen_FaultReactionOption option, huint32 timeout=100) |
| 写从站字典0x605E-0x0 更多... | |
| EXTERNFUNC int | canopen_getOperateMode (huint8 devIndex, huint8 id, canopen_OperateMode *mode, huint32 timeout=100) |
| 读从站字典0x6060-0x0 更多... | |
| EXTERNFUNC int | canopen_setOperateMode (huint8 devIndex, huint8 id, canopen_OperateMode mode, huint32 timeout=100) |
| 写从站字典0x6060-0x0 更多... | |
| EXTERNFUNC int | canopen_getDisplayOperateMode (huint8 devIndex, huint8 id, canopen_OperateMode *mode, huint32 timeout=100) |
| 读从站字典0x6061-0x0 更多... | |
| EXTERNFUNC int | canopen_getDemandPos (huint8 devIndex, huint8 id, hint32 *pos, huint32 timeout=100) |
| 读从站字典0x6062-0x0 更多... | |
| EXTERNFUNC int | canopen_setDemandPos (huint8 devIndex, huint8 id, hint32 pos, huint32 timeout=100) |
| 写从站字典0x6062-0x0 更多... | |
| EXTERNFUNC int | canopen_getActualPos (huint8 devIndex, huint8 id, hint32 *pos, huint32 timeout=100) |
| 读从站字典0x6064-0x0 更多... | |
| EXTERNFUNC int | canopen_getFollowingErrorWindow (huint8 devIndex, huint8 id, huint32 *eWindow, huint32 timeout=100) |
| 读从站字典0x6065-0x0 更多... | |
| EXTERNFUNC int | canopen_setFollowingErrorWindow (huint8 devIndex, huint8 id, huint32 eWindow, huint32 timeout=100) |
| 写从站字典0x6065-0x0 更多... | |
| EXTERNFUNC int | canopen_getPositionWindow (huint8 devIndex, huint8 id, huint32 *pWindow, huint32 timeout=100) |
| 读从站字典0x6067-0x0 更多... | |
| EXTERNFUNC int | canopen_setPositionWindow (huint8 devIndex, huint8 id, huint32 pWindow, huint32 timeout=100) |
| 写从站字典0x6067-0x0 更多... | |
| EXTERNFUNC int | canopen_getPositionWindowTime (huint8 devIndex, huint8 id, huint16 *pWindowTime, huint32 timeout=100) |
| 读从站字典0x6068-0x0 更多... | |
| EXTERNFUNC int | canopen_setPositionWindowTime (huint8 devIndex, huint8 id, huint16 pWindowTime, huint32 timeout=100) |
| 写从站字典0x6068-0x0 更多... | |
| EXTERNFUNC int | canopen_getDemandVelocity (huint8 devIndex, huint8 id, hint32 *dVel, huint32 timeout=100) |
| 读从站字典0x606B-0x0 更多... | |
| EXTERNFUNC int | canopen_setDemandVelocity (huint8 devIndex, huint8 id, hint32 dvel, huint32 timeout=100) |
| 写从站字典0x606B-0x0 更多... | |
| EXTERNFUNC int | canopen_getActualVelocity (huint8 devIndex, huint8 id, hint32 *vel, huint32 timeout=100) |
| 读从站字典0x606C-0x0 更多... | |
| EXTERNFUNC int | canopen_getVelocityWindow (huint8 devIndex, huint8 id, huint16 *vWindow, huint32 timeout=100) |
| 读从站字典0x606D-0x0 更多... | |
| EXTERNFUNC int | canopen_setVelocityWindow (huint8 devIndex, huint8 id, huint16 vWindow, huint32 timeout=100) |
| 写从站字典0x606D-0x0 更多... | |
| EXTERNFUNC int | canopen_getVelocityWindowTime (huint8 devIndex, huint8 id, huint16 *wTime, huint32 timeout=100) |
| 读从站字典0x606E-0x0 更多... | |
| EXTERNFUNC int | canopen_setVelocityWindowTime (huint8 devIndex, huint8 id, huint16 wTime, huint32 timeout=100) |
| 写从站字典0x606E-0x0 更多... | |
| EXTERNFUNC int | canopen_getVelocityThreshold (huint8 devIndex, huint8 id, huint16 *thres, huint32 timeout=100) |
| 读从站字典0x606F-0x0 更多... | |
| EXTERNFUNC int | canopen_setVelocityThreshold (huint8 devIndex, huint8 id, huint16 thres, huint32 timeout=100) |
| 写从站字典0x606F-0x0 更多... | |
| EXTERNFUNC int | canopen_getVelocityThresholdTime (huint8 devIndex, huint8 id, huint16 *tTime, huint32 timeout=100) |
| 读从站字典0x6070-0x0 更多... | |
| EXTERNFUNC int | canopen_setVelocityThresholdTime (huint8 devIndex, huint8 id, huint16 tTime, huint32 timeout=100) |
| 写从站字典0x6070-0x0 更多... | |
| EXTERNFUNC int | canopen_getTargetTorque (huint8 devIndex, huint8 id, hint16 *torque, huint32 timeout=100) |
| 读从站字典0x6071-0x0 更多... | |
| EXTERNFUNC int | canopen_setTargetTorque (huint8 devIndex, huint8 id, hint16 torque, huint32 timeout=100) |
| 写从站字典0x6071-0x0 更多... | |
| EXTERNFUNC int | canopen_getTorqueLimit (huint8 devIndex, huint8 id, hint16 *torque, huint32 timeout=100) |
| 读从站字典0x6072-0x0 更多... | |
| EXTERNFUNC int | canopen_setTorqueLimit (huint8 devIndex, huint8 id, hint16 torque, huint32 timeout=100) |
| 写从站字典0x6072-0x0 更多... | |
| EXTERNFUNC int | canopen_getDemandTorque (huint8 devIndex, huint8 id, hint16 *torque, huint32 timeout=100) |
| 读从站字典0x6074-0x0 更多... | |
| EXTERNFUNC int | canopen_setDemandTorque (huint8 devIndex, huint8 id, hint16 torque, huint32 timeout=100) |
| 写从站字典0x6074-0x0 更多... | |
| EXTERNFUNC int | canopen_getRatedCurrent (huint8 devIndex, huint8 id, huint32 *current, huint32 timeout=100) |
| 读从站字典0x6075-0x0 更多... | |
| EXTERNFUNC int | canopen_setRatedCurrent (huint8 devIndex, huint8 id, huint32 current, huint32 timeout=100) |
| 写从站字典0x6075-0x0 更多... | |
| EXTERNFUNC int | canopen_getMotorRatedTorque (huint8 devIndex, huint8 id, huint32 *torque, huint32 timeout=100) |
| 读从站字典0x6076-0x0 更多... | |
| EXTERNFUNC int | canopen_setMotorRatedTorque (huint8 devIndex, huint8 id, huint32 torque, huint32 timeout=100) |
| 写从站字典0x6076-0x0 更多... | |
| EXTERNFUNC int | canopen_getActualTorque (huint8 devIndex, huint8 id, hint16 *torque, huint32 timeout=100) |
| 读从站字典0x6077-0x0 更多... | |
| EXTERNFUNC int | canopen_getActualCurrent (huint8 devIndex, huint8 id, hint16 *current, huint32 timeout=100) |
| 读从站字典0x6078-0x0 更多... | |
| EXTERNFUNC int | canopen_getDCLinkCircuitVoltage (huint8 devIndex, huint8 id, huint32 *voltage, huint32 timeout=100) |
| 读从站字典0x6079-0x0 更多... | |
| EXTERNFUNC int | canopen_setDCLinkCircuitVoltage (huint8 devIndex, huint8 id, huint32 voltage, huint32 timeout=100) |
| 写从站字典0x6079-0x0 更多... | |
| EXTERNFUNC int | canopen_getTargetPos (huint8 devIndex, huint8 id, hint32 *pos, huint32 timeout=100) |
| 0x607A-0x0 更多... | |
| EXTERNFUNC int | canopen_setTargetPos (huint8 devIndex, huint8 id, hint32 pos, huint32 timeout=100) |
| 写从站字典0x607A-0x0 更多... | |
| EXTERNFUNC int | canopen_getHomeOffset (huint8 devIndex, huint8 id, hint32 *offSet, huint32 timeout=100) |
| 读从站字典0x607C-0x0 更多... | |
| EXTERNFUNC int | canopen_setHomeOffset (huint8 devIndex, huint8 id, hint32 offSet, huint32 timeout=100) |
| 写从站字典0x607C-0x0 更多... | |
| EXTERNFUNC int | canopen_getSoftwareMinimumPosition (huint8 devIndex, huint8 id, hint32 *pos, huint32 timeout=100) |
| 读从站字典0x607D-0x1 更多... | |
| EXTERNFUNC int | canopen_setSoftwareMinimumPosition (huint8 devIndex, huint8 id, hint32 pos, huint32 timeout=100) |
| 写从站字典0x607D-0x1 更多... | |
| EXTERNFUNC int | canopen_getSoftwareMaxmumPosition (huint8 devIndex, huint8 id, hint32 *pos, huint32 timeout=100) |
| 读从站字典0x607D-0x2 更多... | |
| EXTERNFUNC int | canopen_setSoftwareMaxmumPosition (huint8 devIndex, huint8 id, hint32 pos, huint32 timeout=100) |
| 写从站字典0x607D-0x2 更多... | |
| EXTERNFUNC int | canopen_getMaxProfileVelocity (huint8 devIndex, huint8 id, huint32 *vel, huint32 timeout=100) |
| 读从站字典0x607F-0x0 更多... | |
| EXTERNFUNC int | canopen_setMaxProfileVelocity (huint8 devIndex, huint8 id, huint32 vel, huint32 timeout=100) |
| 写从站字典0x607F-0x0 更多... | |
| EXTERNFUNC int | canopen_getProfileVelocity (huint8 devIndex, huint8 id, huint32 *vel, huint32 timeout=100) |
| 读从站字典0x6081-0x0 更多... | |
| EXTERNFUNC int | canopen_setProfileVelocity (huint8 devIndex, huint8 id, huint32 vel, huint32 timeout=100) |
| 写从站字典0x6081-0x0 更多... | |
| EXTERNFUNC int | canopen_getProfileAcceleration (huint8 devIndex, huint8 id, huint32 *acc, huint32 timeout=100) |
| 读从站字典0x6083-0x0 更多... | |
| EXTERNFUNC int | canopen_setProfileAcceleration (huint8 devIndex, huint8 id, huint32 acc, huint32 timeout=100) |
| 写从站字典0x6083-0x0 更多... | |
| EXTERNFUNC int | canopen_getProfileDeceleration (huint8 devIndex, huint8 id, huint32 *dec, huint32 timeout=100) |
| 读从站字典0x6084-0x0 更多... | |
| EXTERNFUNC int | canopen_setProfileDeceleration (huint8 devIndex, huint8 id, huint32 dec, huint32 timeout=100) |
| 写从站字典0x6084-0x0 更多... | |
| EXTERNFUNC int | canopen_getQuickStopDeceleration (huint8 devIndex, huint8 id, huint32 *dec, huint32 timeout=100) |
| 读从站字典0x6085-0x0 更多... | |
| EXTERNFUNC int | canopen_setQuickStopDeceleration (huint8 devIndex, huint8 id, huint32 dec, huint32 timeout=100) |
| 写从站字典0x6085-0x0 更多... | |
| EXTERNFUNC int | canopen_getTorqueSlope (huint8 devIndex, huint8 id, huint32 *slope, huint32 timeout=100) |
| 0x6087-0x0 更多... | |
| EXTERNFUNC int | canopen_setTorqueSlope (huint8 devIndex, huint8 id, huint32 slope, huint32 timeout=100) |
| 写从站字典0x6087-0x0 更多... | |
| EXTERNFUNC int | canopen_getGearRatioMotorRevolutions (huint8 devIndex, huint8 id, huint32 *rev, huint32 timeout=100) |
| 读从站字典0x6091-0x1 更多... | |
| EXTERNFUNC int | canopen_setGearRatioMotorRevolutions (huint8 devIndex, huint8 id, huint32 rev, huint32 timeout=100) |
| 写从站字典0x6091-0x1 更多... | |
| EXTERNFUNC int | canopen_getGearRatioShaftRevolutions (huint8 devIndex, huint8 id, huint32 *rev, huint32 timeout=100) |
| 读从站字典0x6091-0x2 更多... | |
| EXTERNFUNC int | canopen_setGearRatioShaftRevolutions (huint8 devIndex, huint8 id, huint32 rev, huint32 timeout=100) |
| 写从站字典0x6091-0x2 更多... | |
| EXTERNFUNC int | canopen_getInterpolationDataRecord (huint8 devIndex, huint8 id, hint32 *value, huint32 timeout=100) |
| 读从站字典0x60C1-0x1 更多... | |
| EXTERNFUNC int | canopen_setInterpolationDataRecord (huint8 devIndex, huint8 id, hint32 value, huint32 timeout=100) |
| 写从站字典0x60C1-0x1 更多... | |
| EXTERNFUNC int | canopen_getInterpolationTimePeriodValue (huint8 devIndex, huint8 id, huint8 *value, huint32 timeout=100) |
| 读从站字典0x60C2-0x1 更多... | |
| EXTERNFUNC int | canopen_setInterpolationTimePeriodValue (huint8 devIndex, huint8 id, huint8 value, huint32 timeout=100) |
| 写从站字典0x60C2-0x1 更多... | |
| EXTERNFUNC int | canopen_getActualFollowingError (huint8 devIndex, huint8 id, hint32 *error, huint32 timeout=100) |
| 读从站字典0x60F4-0x0 更多... | |
| EXTERNFUNC int | canopen_setActualFollowingError (huint8 devIndex, huint8 id, hint32 error, huint32 timeout=100) |
| 写从站字典0x60F4-0x0 更多... | |
| EXTERNFUNC int | canopen_getTargetVelocity (huint8 devIndex, huint8 id, hint32 *targetVel, huint32 timeout=100) |
| 读从站字典0x60FF-0x0 更多... | |
| EXTERNFUNC int | canopen_setTargetVelocity (huint8 devIndex, huint8 id, hint32 targetVel, huint32 timeout=100) |
| 写从站字典0x60FF-0x0 更多... | |
| EXTERNFUNC int | canopen_getSupportedDriveModes (huint8 devIndex, huint8 id, huint32 *modes, huint32 timeout=100) |
| 读从站字典0x6502-0x0 更多... | |
| #define CANOPEN_FAILED_CANRECEIVE (4) |
执行失败,数据接收失败
| #define CANOPEN_FAILED_CANSEND (3) |
执行失败,数据发送失败
| #define CANOPEN_FAILED_DEVICEDISABLED (1) |
执行失败,设备不存在
| #define CANOPEN_FAILED_NoRespondR (7) |
执行失败,sdo'读'请求在规定时间内没有接收到回应数据
| #define CANOPEN_FAILED_NoRespondW (8) |
执行失败,sdo'写'请求在规定时间内没有接收到回应数据
| #define CANOPEN_FAILED_OPENFAILED (2) |
执行失败,设备打开失败
| #define CANOPEN_FAILED_ReadLocalDict (5) |
执行失败,读本地字典失败
| #define CANOPEN_FAILED_UNKNOWN (100) |
执行失败,未知原因
| #define CANOPEN_FAILED_WriteLocalDict (6) |
执行失败,写本地字典失败
| #define CANOPEN_SUCCESS (0) |
执行成功
| #define EXTERNFUNC |
| typedef unsigned int huint64 __attribute__((__mode__(__DI__))) |
| typedef void(* canopen_ReceiveDataCallBack) (huint8 devIndex, const canopen_CanMsg *msg) |
接收数据回调函数
| typedef void(* canopen_SendDataCallBack) (huint8 devIndex, const canopen_CanMsg *msg) |
发送数据回调函数
| typedef signed short int hint16 |
| typedef signed int hint24 |
| typedef signed int hint32 |
| typedef signed long int hint40 |
| typedef signed long int hint48 |
| typedef signed long int hint56 |
| typedef signed long int hint64 |
| typedef signed char hint8 |
| typedef float hreal32 |
| enum canopen_Baudrate |
| enum canopen_DataType |
| enum canopen_DBaudrate |
| enum canopen_DeviceType |
故障处理选项
| enum canopen_HaltOption |
| enum canopen_NMTState |
| enum canopen_NodeState |
| enum canopen_OperateMode |
操作模式
快速停止选项
| EXTERNFUNC int canopen_freeDLL | ( | huint8 | devIndex | ) |
关闭设备,释放资源,设备打开成功后需要在适当时机释放资源 如果存在多个设备,程序退出前,每个设备都需调用一次释放资源
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| EXTERNFUNC int canopen_getActualCurrent | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint16 * | current, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6078-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| current | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getActualFollowingError | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint32 * | error, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x60F4-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| error | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getActualPos | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint32 * | pos, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6064-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pos | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getActualTorque | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint16 * | torque, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6077-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| torque | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getActualVelocity | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint32 * | vel, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x606C-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| vel | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getClientSDOCobIdClientToServer | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | sdoClientIndex, | ||
| huint32 * | cobId, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1280+sdoClientIndex]-0x1
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| sdoClientIndex | sdo索引,设为0代表从站字典主索引0x1280,设为1代表从站字典主索引0x1281,以此类推 |
| cobId | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getClientSDOCobIdServerToClient | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | sdoClientIndex, | ||
| huint32 * | cobId, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1280+sdoClientIndex]-0x2
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| sdoClientIndex | sdo索引,设为0代表从站字典主索引0x1280,设为1代表从站字典主索引0x1281,以此类推 |
| cobId | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getClientSDONodeIdOfSDOServer | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | sdoClientIndex, | ||
| huint8 * | nodeId, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1280+sdoClientIndex]-0x3
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| sdoClientIndex | sdo索引,设为0代表从站字典主索引0x1280,设为1代表从站字典主索引0x1281,以此类推 |
| nodeId | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getClientSDONumberOfEntries | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | sdoClientIndex, | ||
| huint8 * | number, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1280+sdoClientIndex]-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| sdoClientIndex | sdo索引,设为0代表从站字典主索引0x1280,设为1代表从站字典主索引0x1281,以此类推 |
| number | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getControlword | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 * | word, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6040-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| word | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getDCLinkCircuitVoltage | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | voltage, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6079-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| voltage | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getDemandPos | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint32 * | pos, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6062-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pos | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getDemandTorque | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint16 * | torque, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6074-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| torque | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getDemandVelocity | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint32 * | dVel, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x606B-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| dVel | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getDeviceName | ( | huint8 | devIndex, |
| huint8 | id, | ||
| char * | devName, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1008-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| devName | 保存读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getDeviceType | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | deviceType, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1000-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| deviceType | 保存读取的设备类型 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getDisableOperationOptionCode | ( | huint8 | devIndex, |
| huint8 | id, | ||
| canopen_DisableOperationOption * | code, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x605C-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| code | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getDisplayOperateMode | ( | huint8 | devIndex, |
| huint8 | id, | ||
| canopen_OperateMode * | mode, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6061-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| mode | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getEmergencyCobid | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | cobid, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1014-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| cobid | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getEmergencyInhibitTime | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 * | time, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1015-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| time | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getErrorField | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint8 | subIndex, | ||
| huint32 * | err, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1003-subIndex
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| subIndex | 字典子索引(取值范围0x01~0x7f) |
| err | 保存读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getErrorFieldNumber | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint8 * | number, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1003-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| number | 保存读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getErrorRegister | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint8 * | errReg, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1001-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| errReg | 保存读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getFaultReactionOption | ( | huint8 | devIndex, |
| huint8 | id, | ||
| canopen_FaultReactionOption * | option, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x605E-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| option | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getFollowingErrorWindow | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | eWindow, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6065-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| eWindow | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getGearRatioMotorRevolutions | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | rev, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6091-0x1
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| rev | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getGearRatioShaftRevolutions | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | rev, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6091-0x2
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| rev | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getGuardTime | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 * | time, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x100C-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| time | 保存读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getHaltOption | ( | huint8 | devIndex, |
| huint8 | id, | ||
| canopen_HaltOption * | option, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x605D-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| option | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getHardwareVersion | ( | huint8 | devIndex, |
| huint8 | id, | ||
| char * | version, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1009-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| version | 保存读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getHearbeatConsumerTime | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint8 | subIndex, | ||
| huint32 * | time, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1016-subIndex
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| subIndex | 子索引 |
| time | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getHearbeatConsumerTimeParasNum | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint8 * | number, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1016-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| number | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getHomeOffset | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint32 * | offSet, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x607C-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| offSet | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getIdentityObjectNumber | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint8 * | number, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1018-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| number | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getIdentityObjectRevisionNumber | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | revisionNum, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1018-0x3
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| revisionNum | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getInterpolationDataRecord | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint32 * | value, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x60C1-0x1
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| value | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getInterpolationTimePeriodValue | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint8 * | value, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x60C2-0x1
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| value | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getLifeTimeFactor | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint8 * | factor, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x100D-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| factor | 保存读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getLocalActualPos | ( | hint32 * | pos | ) |
读本地字典0x6064-0x0
| pos | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalActualTorque | ( | hint16 * | torque | ) |
读本地字典0x6077-0x0
| torque | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalActualVelocity | ( | hint32 * | velocity | ) |
读本地字典0x606c-0x0
| velocity | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalClientSDOCobIdClientToServer | ( | huint16 | sdoClientIndex, |
| huint32 * | cobId | ||
| ) |
读本地字典[0x1280+sdoClientIndex]-0x1
| sdoClientIndex | sdo索引,为0时主索引为0x1280,为1时主索引为0x1281,以此类推 |
| cobId | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalClientSDOCobIdServerToClient | ( | huint16 | sdoClientIndex, |
| huint32 * | cobId | ||
| ) |
读本地字典[0x1280+sdoClientIndex]-0x2
| sdoClientIndex | sdo索引,为0时主索引为0x1280,为1时主索引为0x1281,以此类推 |
| cobId | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalClientSDONodeIdOfSDOServer | ( | huint16 | sdoClientIndex, |
| huint8 * | nodeId | ||
| ) |
读本地字典[0x1280+sdoClientIndex]-0x3
| sdoClientIndex | sdo索引,为0时主索引为0x1280,为1时主索引为0x1281,以此类推 |
| nodeId | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalClientSDONumberOfEntries | ( | huint16 | sdoClientIndex, |
| huint8 * | number | ||
| ) |
读本地字典[0x1280+sdoClientIndex]-0x0
| sdoClientIndex | sdo索引,为0时主索引为0x1280,为1时主索引为0x1281,以此类推 |
| number | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalControlword | ( | huint16 * | word | ) |
读本地字典0x6040-0x0
| word | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalDCLinkCircuitVoltage | ( | huint32 * | voltage | ) |
读本地字典0x6079-0x0
| voltage | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalInterpolationDataRecord | ( | hint32 * | value | ) |
读本地字典0x60C1-0x1
| value | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalInterpolationTimePeriodValue | ( | huint8 * | value | ) |
读本地字典0x60c2-0x1
| value | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalMitMutiMotorGetPos | ( | huint16 | motorIndex, |
| hreal32 * | pos | ||
| ) |
读本地字典0x5008+[0x1+motorIndex]
| motorIndex | 电机索引,为0时子索引为0x1,为1时子索引为0x2,以此类推 |
| pos | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalMitMutiMotorGetTor | ( | huint16 | motorIndex, |
| hreal32 * | tor | ||
| ) |
读本地字典0x500A+[0x1+motorIndex]
| motorIndex | 电机索引,为0时子索引为0x1,为1时子索引为0x2,以此类推 |
| tor | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalMitMutiMotorGetVel | ( | huint16 | motorIndex, |
| hreal32 * | vel | ||
| ) |
读本地字典0x5009+[0x1+motorIndex]
| motorIndex | 电机索引,为0时子索引为0x1,为1时子索引为0x2,以此类推 |
| vel | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalMitMutiMotorSetPos | ( | huint16 | motorIndex, |
| hreal32 * | pos | ||
| ) |
读本地字典0x500B+[0x1+motorIndex]
| motorIndex | 电机索引,为0时子索引为0x1,为1时子索引为0x2,以此类推 |
| pos | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalMitMutiMotorSetTor | ( | huint16 | motorIndex, |
| hreal32 * | tor | ||
| ) |
读本地字典0x500D+[0x1+motorIndex]
| motorIndex | 电机索引,为0时子索引为0x1,为1时子索引为0x2,以此类推 |
| tor | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalMitMutiMotorSetVel | ( | huint16 | motorIndex, |
| hreal32 * | vel | ||
| ) |
读本地字典0x500C+[0x1+motorIndex]
| motorIndex | 电机索引,为0时子索引为0x1,为1时子索引为0x2,以此类推 |
| vel | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalMutiMotorErrorCode | ( | huint16 | motorIndex, |
| huint16 * | error | ||
| ) |
读本地字典0x5007+[0x1+motorIndex]
| motorIndex | 电机索引,为0时子索引为0x1,为1时子索引为0x2,以此类推 |
| error | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalMutiMotorPos | ( | huint16 | motorIndex, |
| hint32 * | pos | ||
| ) |
读本地字典0x5000+[0x1+motorIndex]
| motorIndex | 电机索引,为0时子索引为0x1,为1时子索引为0x2,以此类推 |
| pos | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalMutiMotorStatusWord | ( | huint16 | motorIndex, |
| huint16 * | status | ||
| ) |
读本地字典0x5006+[0x1+motorIndex]
| motorIndex | 电机索引,为0时子索引为0x1,为1时子索引为0x2,以此类推 |
| status | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalMutiMotorTorque | ( | huint16 | motorIndex, |
| hint16 * | tor | ||
| ) |
读本地字典0x5002+[0x1+motorIndex]
| motorIndex | 电机索引,为0时子索引为0x1,为1时子索引为0x2,以此类推 |
| tor | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalMutiMotorVel | ( | huint16 | motorIndex, |
| hint32 * | vel | ||
| ) |
读本地字典0x5001+[0x1+motorIndex]
| motorIndex | 电机索引,为0时子索引为0x1,为1时子索引为0x2,以此类推 |
| vel | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalRPDOCobId | ( | huint16 | pdoIndex, |
| huint32 * | cobId | ||
| ) |
读本地字典[0x1400+pdoIndex]-0x1
| pdoIndex | pdo索引,为0时主索引为0x1400,为1时主索引为0x1401,以此类推 |
| cobId | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalRPDOEventTimer | ( | huint16 | pdoIndex, |
| huint16 * | timer | ||
| ) |
读本地字典[0x1400+pdoIndex]-0x5
| pdoIndex | pdo索引,为0时主索引为0x1400,为1时主索引为0x1401,以此类推 |
| timer | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalRPDOInhibitTime | ( | huint16 | pdoIndex, |
| huint16 * | time | ||
| ) |
读本地字典[0x1400+pdoIndex]-0x3
| pdoIndex | pdo索引,为0时主索引为0x1400,为1时主索引为0x1401,以此类推 |
| time | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalRPDOMapped | ( | huint16 | pdoIndex, |
| huint8 | mapIndex, | ||
| huint32 * | value | ||
| ) |
读本地字典[0x1600+pdoIndex]-[0x1+mapIndex]
| pdoIndex | pdo索引,为0时主索引为0x1600,为1时主索引为0x1601,以此类推 |
| mapIndex | pdo映射索引,为0时子索引为0x1,1时子索引为0x2,以此类推 |
| value | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalRPDOMaxMappedCount | ( | huint16 | pdoIndex, |
| huint8 * | count | ||
| ) |
读本地字典[0x1600+pdoIndex]-0x0
| pdoIndex | pdo索引,为0时主索引为0x1600,为1时主索引为0x1601,以此类推 |
| count | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalRPDOMaxParasCount | ( | huint16 | pdoIndex, |
| huint8 * | count | ||
| ) |
读本地字典[0x1400+pdoIndex]-0x0
| pdoIndex | pdo索引,为0时主索引为0x1400,为1时主索引为0x1401,以此类推 |
| count | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalRPDOSYNCStartValue | ( | huint16 | pdoIndex, |
| huint8 * | value | ||
| ) |
读本地字典[0x1400+pdoIndex]-0x6
| pdoIndex | pdo索引,为0时主索引为0x1400,为1时主索引为0x1401,以此类推 |
| value | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalRPDOTransmitType | ( | huint16 | pdoIndex, |
| huint8 * | type | ||
| ) |
读本地字典[0x1400+pdoIndex]-0x2
| pdoIndex | pdo索引,为0时主索引为0x1400,为1时主索引为0x1401,以此类推 |
| type | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalServerSDOCobIdClientToServer | ( | huint16 | sdoServerIndex, |
| huint32 * | cobId | ||
| ) |
读本地字典[0x1200+sdoServerIndex]-0x1
| sdoServerIndex | sdo索引,为0时主索引为0x1200,为1时主索引为0x1201,以此类推 |
| cobId | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalServerSDOCobIdServerToClient | ( | huint16 | sdoServerIndex, |
| huint32 * | cobId | ||
| ) |
读本地字典[0x1200+sdoServerIndex]-0x2
| sdoServerIndex | sdo索引,为0时主索引为0x1200,为1时主索引为0x1201,以此类推 |
| cobId | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalServerSDONodeIdOfClient | ( | huint16 | sdoServerIndex, |
| huint8 * | nodeId | ||
| ) |
读本地字典[0x1200+sdoServerIndex]-0x3
| sdoServerIndex | sdo索引,为0时主索引为0x1200,为1时主索引为0x1201,以此类推 |
| nodeId | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalServerSDONumberOfEntries | ( | huint16 | sdoServerIndex, |
| huint8 * | num | ||
| ) |
读本地字典[0x1200+sdoServerIndex]-0x0
| sdoServerIndex | sdo索引,为0时主索引为0x1200,为1时主索引为0x1201,以此类推 |
| num | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalServoErrorCode | ( | huint16 * | err | ) |
读本地字典0x603F-0x0
| err | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalStatusWord | ( | huint16 * | word | ) |
写本地字典0x6041-0x0
| word | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalSyncCOBID | ( | huint32 * | cobId | ) |
读本地字典0x1005-0x0
| cobId | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalSyncCycle | ( | huint32 * | cycle | ) |
读本地字典0x1006-0x0
| cycle | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalSyncWindow | ( | huint32 * | sWindow | ) |
读本地字典0x1007-0x0
| sWindow | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalTargetPos | ( | hint32 * | pos | ) |
读本地字典0x607A-0x0
| pos | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalTargetTorque | ( | hint16 * | torque | ) |
读本地字典0x6071-0x0
| torque | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalTargetVelocity | ( | hint32 * | vel | ) |
读本地字典0x60FF-0x0
| vel | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalTPDOCobId | ( | huint16 | pdoIndex, |
| huint32 * | cobId | ||
| ) |
读本地字典[0x1800+pdoIndex]-0x1
| pdoIndex | pdo索引,为0时主索引为0x1800,为1时主索引为0x1801,以此类推 |
| cobId | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalTPDOEventTimer | ( | huint16 | pdoIndex, |
| huint16 * | timer | ||
| ) |
读本地字典[0x1800+pdoIndex]-0x5
| pdoIndex | pdo索引,为0时主索引为0x1800,为1时主索引为0x1801,以此类推 |
| timer | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalTPDOInhibitTime | ( | huint16 | pdoIndex, |
| huint16 * | time | ||
| ) |
读本地字典[0x1800+pdoIndex]-0x3
| pdoIndex | pdo索引,为0时主索引为0x1800,为1时主索引为0x1801,以此类推 |
| time | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalTPDOMapped | ( | huint16 | pdoIndex, |
| huint8 | mapIndex, | ||
| huint32 * | value | ||
| ) |
读本地字典[0x1A00+pdoIndex]-[0x1+mapIndex]
| pdoIndex | pdo索引,为0时主索引为0x1A00,为1时主索引为0x1A01,以此类推 |
| mapIndex | pdo映射索引,为0时子索引为0x1,为1时子索引为0x2 |
| value | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalTPDOMaxMappedCount | ( | huint16 | pdoIndex, |
| huint8 * | count | ||
| ) |
读本地字典[0x1A00+pdoIndex]-0x0
| pdoIndex | pdo索引,为0时主索引为0x1A00,为1时主索引为0x1A01,以此类推 |
| count | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalTPDOMaxParasCount | ( | huint16 | pdoIndex, |
| huint8 * | count | ||
| ) |
读本地字典[0x1800+pdoIndex]-0x0
| pdoIndex | pdo索引,为0时主索引为0x1800,为1时主索引为0x1801,以此类推 |
| count | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalTPDOSYNCStartValue | ( | huint16 | pdoIndex, |
| huint8 * | value | ||
| ) |
读本地字典[0x1800+pdoIndex]-0x6
| pdoIndex | pdo索引,为0时主索引为0x1800,为1时主索引为0x1801,以此类推 |
| value | 存放读取的值 |
| EXTERNFUNC int canopen_getLocalTPDOTransmitType | ( | huint16 | pdoIndex, |
| huint8 * | type | ||
| ) |
读本地字典[0x1800+pdoIndex]-0x2
| pdoIndex | pdo索引,为0时主索引为0x1800,为1时主索引为0x1801,以此类推 |
| type | 存放读取的值 |
| EXTERNFUNC int canopen_getMaxProfileVelocity | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | vel, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x607F-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| vel | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getMotorRatedTorque | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | torque, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6076-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| torque | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getNodeState | ( | huint8 | devIndex, |
| huint8 | id, | ||
| canopen_NodeState * | state, | ||
| huint32 | timeout = 100 |
||
| ) |
读从节点状态
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| state | 保存读取的从节点的节点状态 |
| timeout | 最大等待时间,单位ms |
| EXTERNFUNC int canopen_getOperateMode | ( | huint8 | devIndex, |
| huint8 | id, | ||
| canopen_OperateMode * | mode, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6060-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| mode | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getPositionWindow | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | pWindow, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6067-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pWindow | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getPositionWindowTime | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 * | pWindowTime, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6068-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pWindowTime | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getProducerHeartbeatTime | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 * | time, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1017-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| time | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getProductCode | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | pCode, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1018-0x2
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pCode | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getProfileAcceleration | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | acc, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6083-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| acc | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getProfileDeceleration | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | dec, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6084-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| dec | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getProfileVelocity | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | vel, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6081-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| vel | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getQuickStopDeceleration | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | dec, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6085-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| dec | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getQuickStopOption | ( | huint8 | devIndex, |
| huint8 | id, | ||
| canopen_QuickStopOption * | option, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x605A-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| option | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getRatedCurrent | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | current, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6075-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| current | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getRestoreDefaultParameters | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | value, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1011-0x1
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| value | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getRestoreDefaultParametersNumber | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint8 * | number, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1011-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| number | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getRPDOCobId | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint32 * | cobId, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1400+pdoIndex]-0x1
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1400,设为1代表从站字典主索引0x1401,以此类推 |
| cobId | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getRPDOEventTimer | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint16 * | timer, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1400+pdoIndex]-0x5
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1400,设为1代表从站字典主索引0x1401,以此类推 |
| timer | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getRPDOInhibitTime | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint16 * | time, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1400+pdoIndex]-0x3
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1400,设为1代表从站字典主索引0x1401,以此类推 |
| time | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getRPDOMapped | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint8 | mapIndex, | ||
| huint32 * | value, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1600+pdoIndex]-[0x1+mapIndex]
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1600,设为1代表从站字典主索引0x1601,以此类推 |
| mapIndex | 映射地址索引,设为0代表从站字典子索引0x1, 设为1代表子索引0x2,以此类推 |
| value | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getRPDOMaxMappedCount | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint8 * | count, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1600+pdoIndex]-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1600,设为1代表从站字典主索引0x1601,以此类推 |
| count | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getRPDOMaxParasCount | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint8 * | count, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1400+pdoIndex]-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1400,设为1代表从站字典主索引0x1401,以此类推 |
| count | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getRPDOSYNCStartValue | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint8 * | value, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1400+pdoIndex]-0x6
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1400,设为1代表从站字典主索引0x1401,以此类推 |
| value | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getRPDOTransmitType | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint8 * | type, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1400+pdoIndex]-0x2
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1400,设为1代表从站字典主索引0x1401,以此类推 |
| type | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getSerialNumber | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | serialNum, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1018-0x4
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| serialNum | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getServerSDOCobIdClientToServer | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | sdoServerIndex, | ||
| huint32 * | cobId, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1200+sdoServerIndex]-0x1
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| sdoServerIndex | sdo索引,设为0代表从站字典主索引0x1200,设为1代表从站字典主索引0x1201,以此类推 |
| cobId | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getServerSDOCobIdServerToClient | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | sdoServerIndex, | ||
| huint32 * | cobId, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1200+sdoServerIndex]-0x2
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| sdoServerIndex | sdo索引,设为0代表从站字典主索引0x1200,设为1代表从站字典主索引0x1201,以此类推 |
| cobId | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getServerSDONodeIdOfClient | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | sdoServerIndex, | ||
| huint8 * | nodeId, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1200+sdoServerIndex]-0x3
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| sdoServerIndex | sdo索引,设为0代表从站字典主索引0x1200,设为1代表从站字典主索引0x1201,以此类推 |
| nodeId | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getServerSDONumberOfEntries | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | sdoServerIndex, | ||
| huint8 * | num, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1200+sdoServerIndex]-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| sdoServerIndex | sdo索引,设为0代表从站字典主索引0x1200,设为1代表从站字典主索引0x1201,以此类推 |
| num | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getServoErrorCode | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 * | err, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x603F-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| err | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getShutdownOptionCode | ( | huint8 | devIndex, |
| huint8 | id, | ||
| canopen_ShutdownOption * | code, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x605B-0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| code | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getSoftwareMaxmumPosition | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint32 * | pos, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x607D-0x2
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pos | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getSoftwareMinimumPosition | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint32 * | pos, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x607D-0x1
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pos | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getSoftwareVersion | ( | huint8 | devIndex, |
| huint8 | id, | ||
| char * | version, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x100A-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| version | 保存读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getStatusWord | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 * | word, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6041-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| word | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getStoreParameters | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | value, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1010-0x1
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| value | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getStoreParametersNumber | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint8 * | number, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1010-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| number | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getSupportedDriveModes | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | modes, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6502-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| modes | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getSyncCobid | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | cobid, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1005-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| cobid | 保存读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getSyncCounter | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint8 * | counter, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1019-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| counter | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getSyncCycle | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | syncCycle, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1006-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| syncCycle | 保存读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getSyncWindow | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | syncWindow, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1007-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| syncWindow | 保存读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getTargetPos | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint32 * | pos, | ||
| huint32 | timeout = 100 |
||
| ) |
0x607A-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pos | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getTargetTorque | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint16 * | torque, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6071-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| torque | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getTargetVelocity | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint32 * | targetVel, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x60FF-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| targetVel | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getTorqueLimit | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint16 * | torque, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6072-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| torque | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getTorqueSlope | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | slope, | ||
| huint32 | timeout = 100 |
||
| ) |
0x6087-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| slope | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getTPDOCobId | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint32 * | cobId, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1800+pdoIndex]-0x1
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1800,设为1代表从站字典主索引0x1801,以此类推 |
| cobId | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getTPDOEventTimer | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint16 * | timer, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1800+pdoIndex]-0x5
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1800,设为1代表从站字典主索引0x1801,以此类推 |
| timer | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getTPDOInhibitTime | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint16 * | time, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1800+pdoIndex]-0x3
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1800,设为1代表从站字典主索引0x1801,以此类推 |
| time | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getTPDOMapped | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint8 | mapIndex, | ||
| huint32 * | value, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1A00+pdoIndex]-[0x1+mapIndex]
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1A00,设为1代表从站字典主索引0x1A01,以此类推 |
| mapIndex | 映射索引,设为0代表从站字典子索引0x1,设为1代表从站字典子索引0x2,以此类推 |
| value | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getTPDOMaxMappedCount | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint8 * | count, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1A00+pdoIndex]-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1A00,设为1代表从站字典主索引0x1A01,以此类推 |
| count | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getTPDOMaxParasCount | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint8 * | count, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1800+pdoIndex]-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1800,设为1代表从站字典主索引0x1801,以此类推 |
| count | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getTPDOSYNCStartValue | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint8 * | value, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1800+pdoIndex]-0x6
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1800,设为1代表从站字典主索引0x1801,以此类推 |
| value | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getTPDOTransmitType | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint8 * | type, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典[0x1800+pdoIndex]-0x2
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1800,设为1代表从站字典主索引0x1801,以此类推 |
| type | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getVelocityThreshold | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 * | thres, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x606F-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| thres | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getVelocityThresholdTime | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 * | tTime, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x6070-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| tTime | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getVelocityWindow | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 * | vWindow, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x606D-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| vWindow | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getVelocityWindowTime | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 * | wTime, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x606E-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| wTime | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_getVendorID | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 * | vId, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典0x1018-0x1
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| vId | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_initDLL | ( | canopen_DeviceType | devType, |
| huint8 | devIndex, | ||
| canopen_Baudrate | baudrate, | ||
| bool | isCanFD = false, |
||
| canopen_DBaudrate | dbaudrate = canopen_DBaudrate::canopen_DBaudrate_5000 |
||
| ) |
初始化dll,在调用所有函数前,必须先调用该函数进行初始化,该函数会打开设备。 【注意】控制多个设备时可多次调用,多设备控制时共享一个主站,所以即使不同的通讯设备上,电机id也不能重复
| devType | 设备类型,参见canopen_DeviceType |
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| baudrate | 波特率 |
| isCanFD | 是否启用canfd |
| dbaudrate | 波特率 |
| EXTERNFUNC int canopen_readDirectory | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | index, | ||
| huint8 | subIndex, | ||
| canopen_DataType | dataType, | ||
| void * | readData, | ||
| huint32 | timeout = 100 |
||
| ) |
读从站字典
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| index | 主索引 |
| subIndex | 子索引 |
| dataType | 数据类型 |
| readData | 保存读取的数据 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_readLocalDirectory | ( | huint16 | index, |
| huint8 | subIndex, | ||
| canopen_DataType | dataType, | ||
| void * | readData | ||
| ) |
读主站字典
| index | 主索引 |
| subIndex | 子索引 |
| dataType | 数据类型 |
| readData | 保存读取的数据 |
| EXTERNFUNC int canopen_setActualFollowingError | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint32 | error, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x60F4-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| error | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setClientSDOCobIdClientToServer | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | sdoClientIndex, | ||
| huint32 | cobId, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1280+sdoClientIndex]-0x1
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| sdoClientIndex | sdo索引,设为0代表从站字典主索引0x1280,设为1代表从站字典主索引0x1281,以此类推 |
| cobId | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setClientSDOCobIdServerToClient | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | sdoClientIndex, | ||
| huint32 | cobId, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1280+sdoClientIndex]-0x2
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| sdoClientIndex | sdo索引,设为0代表从站字典主索引0x1280,设为1代表从站字典主索引0x1281,以此类推 |
| cobId | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setClientSDONodeIdOfSDOServer | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | sdoClientIndex, | ||
| huint8 | nodeId, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1280+sdoClientIndex]-0x3
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| sdoClientIndex | sdo索引,设为0代表从站字典主索引0x1280,设为1代表从站字典主索引0x1281,以此类推 |
| nodeId | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setClientSDONumberOfEntries | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | sdoClientIndex, | ||
| huint8 | number, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1280+sdoClientIndex]-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| sdoClientIndex | sdo索引,设为0代表从站字典主索引0x1280,设为1代表从站字典主索引0x1281,以此类推 |
| number | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setControlword | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | word, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x6040-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| word | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setDCLinkCircuitVoltage | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 | voltage, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x6079-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| voltage | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setDemandPos | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint32 | pos, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x6062-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pos | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setDemandTorque | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint16 | torque, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x6074-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| torque | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setDemandVelocity | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint32 | dvel, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x606B-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| dvel | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setDisableOperationOptionCode | ( | huint8 | devIndex, |
| huint8 | id, | ||
| canopen_DisableOperationOption | code, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x605C-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| code | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setEmergencyCobid | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 | cobid, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x1014-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| cobid | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setEmergencyInhibitTime | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | time, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x1015-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| time | 存放读取的值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setErrorFieldNumber | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint8 | number, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x1003-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| number | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setFaultReactionOption | ( | huint8 | devIndex, |
| huint8 | id, | ||
| canopen_FaultReactionOption | option, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x605E-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| option | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setFollowingErrorWindow | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 | eWindow, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x6065-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| eWindow | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setGearRatioMotorRevolutions | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 | rev, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x6091-0x1
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| rev | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setGearRatioShaftRevolutions | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 | rev, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x6091-0x2
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| rev | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setGuardTime | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | time, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x100C-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| time | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setHaltOption | ( | huint8 | devIndex, |
| huint8 | id, | ||
| canopen_HaltOption | option, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x605D-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| option | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setHearbeatConsumerTime | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint8 | subIndex, | ||
| huint32 | time, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x1016-subIndex
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| subIndex | 子索引 |
| time | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setHomeOffset | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint32 | offSet, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x607C-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| offSet | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setInterpolationDataRecord | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint32 | value, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x60C1-0x1
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| value | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setInterpolationTimePeriodValue | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint8 | value, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x60C2-0x1
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| value | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setLifeTimeFactor | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint8 | factor, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x100D-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| factor | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setLocalClientSDOCobIdClientToServer | ( | huint16 | sdoClientIndex, |
| huint32 | cobId | ||
| ) |
写本地字典[0x1280+sdoClientIndex]-0x1
| sdoClientIndex | sdo索引,为0时主索引为0x1280,为1时主索引为0x1281,以此类推 |
| cobId | 写入值 |
| EXTERNFUNC int canopen_setLocalClientSDOCobIdServerToClient | ( | huint16 | sdoClientIndex, |
| huint32 | cobId | ||
| ) |
写本地字典[0x1280+sdoClientIndex]-0x2
| sdoClientIndex | sdo索引,为0时主索引为0x1280,为1时主索引为0x1281,以此类推 |
| cobId | 写入值 |
| EXTERNFUNC int canopen_setLocalClientSDONodeIdOfSDOServer | ( | huint16 | sdoClientIndex, |
| huint8 | nodeId | ||
| ) |
写本地字典[0x1280+sdoClientIndex]-0x3
| sdoClientIndex | sdo索引,为0时主索引为0x1280,为1时主索引为0x1281,以此类推 |
| nodeId | 写入值 |
| EXTERNFUNC int canopen_setLocalClientSDONumberOfEntries | ( | huint16 | sdoClientIndex, |
| huint8 | number | ||
| ) |
写本地字典[0x1280+sdoClientIndex]-0x0
| sdoClientIndex | sdo索引,为0时主索引为0x1280,为1时主索引为0x1281,以此类推 |
| number | 写入值 |
| EXTERNFUNC int canopen_setLocalControlword | ( | huint16 | word | ) |
写本地字典0x6040-0x0
| word | 写入值 |
| EXTERNFUNC int canopen_setLocalInterpolationDataRecord | ( | hint32 | value | ) |
写本地字典0x60C1-0x1
| value | 写入值 |
| EXTERNFUNC int canopen_setLocalInterpolationTimePeriodValue | ( | huint8 | value | ) |
写本地字典0x60c2-0x1
| value | 写入值 |
| EXTERNFUNC int canopen_setLocalMitMutiMotorGetPos | ( | huint16 | motorIndex, |
| hreal32 | pos | ||
| ) |
写本地字典0x5008+[0x1+motorIndex]
| motorIndex | 电机索引,为0时子索引为0x1,为1时子索引为0x2,以此类推 |
| pos | 写入值 |
| EXTERNFUNC int canopen_setLocalMitMutiMotorGetTor | ( | huint16 | motorIndex, |
| hreal32 | tor | ||
| ) |
写本地字典0x500A+[0x1+motorIndex]
| motorIndex | 电机索引,为0时子索引为0x1,为1时子索引为0x2,以此类推 |
| tor | 写入值 |
| EXTERNFUNC int canopen_setLocalMitMutiMotorGetVel | ( | huint16 | motorIndex, |
| hreal32 | vel | ||
| ) |
写本地字典0x5009+[0x1+motorIndex]
| motorIndex | 电机索引,为0时子索引为0x1,为1时子索引为0x2,以此类推 |
| vel | 写入值 |
| EXTERNFUNC int canopen_setLocalMitMutiMotorSetPos | ( | huint16 | motorIndex, |
| hreal32 | pos | ||
| ) |
写本地字典0x500B+[0x1+motorIndex]
| motorIndex | 电机索引,为0时子索引为0x1,为1时子索引为0x2,以此类推 |
| pos | 写入值 |
| EXTERNFUNC int canopen_setLocalMitMutiMotorSetTor | ( | huint16 | motorIndex, |
| hreal32 | tor | ||
| ) |
写本地字典0x500D+[0x1+motorIndex]
| motorIndex | 电机索引,为0时子索引为0x1,为1时子索引为0x2,以此类推 |
| tor | 写入值 |
| EXTERNFUNC int canopen_setLocalMitMutiMotorSetVel | ( | huint16 | motorIndex, |
| hreal32 | vel | ||
| ) |
写本地字典0x500C+[0x1+motorIndex]
| motorIndex | 电机索引,为0时子索引为0x1,为1时子索引为0x2,以此类推 |
| vel | 写入值 |
| EXTERNFUNC int canopen_setLocalMutiMotorSetPos | ( | huint16 | motorIndex, |
| hint32 | pos | ||
| ) |
写本地字典0x5003+[0x1+motorIndex]
| motorIndex | 电机索引,为0时子索引为0x1,为1时子索引为0x2,以此类推 |
| pos | 写入值 |
| EXTERNFUNC int canopen_setLocalMutiMotorSetTorque | ( | huint16 | motorIndex, |
| hint16 | torque | ||
| ) |
写本地字典0x5005+[0x1+motorIndex]
| motorIndex | 电机索引,为0时子索引为0x1,为1时子索引为0x2,以此类推 |
| torque | 写入值 |
| EXTERNFUNC int canopen_setLocalMutiMotorSetVel | ( | huint16 | motorIndex, |
| hint32 | vel | ||
| ) |
写本地字典0x5004+[0x1+motorIndex]
| motorIndex | 电机索引,为0时子索引为0x1,为1时子索引为0x2,以此类推 |
| vel | 写入值 |
| EXTERNFUNC int canopen_setLocalNodeState | ( | canopen_NodeState | state | ) |
设置本地节点状态
| state | 节点状态 |
| EXTERNFUNC int canopen_setLocalRPDOCobId | ( | huint16 | pdoIndex, |
| huint32 | cobId | ||
| ) |
写本地字典[0x1400+pdoIndex]-0x1
| pdoIndex | pdo索引,为0时主索引为0x1400,为1时主索引为0x1401,以此类推 |
| cobId | 写入值 |
| EXTERNFUNC int canopen_setLocalRPDOEventTimer | ( | huint16 | pdoIndex, |
| huint16 | timer | ||
| ) |
写本地字典[0x1400+pdoIndex]-0x5
| pdoIndex | pdo索引,为0时主索引为0x1400,为1时主索引为0x1401,以此类推 |
| timer | 写入值 |
| EXTERNFUNC int canopen_setLocalRPDOInhibitTime | ( | huint16 | pdoIndex, |
| huint16 | time | ||
| ) |
写本地字典[0x1400+pdoIndex]-0x3
| pdoIndex | pdo索引,为0时主索引为0x1400,为1时主索引为0x1401,以此类推 |
| time | 写入值 |
| EXTERNFUNC int canopen_setLocalRPDOMapped | ( | huint16 | pdoIndex, |
| huint8 | mapIndex, | ||
| huint32 | value | ||
| ) |
写本地字典[0x1600+pdoIndex]-[0x1+mapIndex]
| pdoIndex | pdo索引,为0时主索引为0x1600,为1时主索引为0x1601,以此类推 |
| mapIndex | pdo映射索引,为0时子索引为0x1,1时子索引为0x2,以此类推 |
| value | 写入值 |
| EXTERNFUNC int canopen_setLocalRPDOMaxMappedCount | ( | huint16 | pdoIndex, |
| huint8 | count | ||
| ) |
写本地字典[0x1600+pdoIndex]-0x0
| pdoIndex | pdo索引,为0时主索引为0x1600,为1时主索引为0x1601,以此类推 |
| count | 写入值 |
| EXTERNFUNC int canopen_setLocalRPDOMaxParasCount | ( | huint16 | pdoIndex, |
| huint8 | count | ||
| ) |
写本地字典[0x1400+pdoIndex]-0x0
| pdoIndex | pdo索引,为0时主索引为0x1400,为1时主索引为0x1401,以此类推 |
| count | 写入值 |
| EXTERNFUNC int canopen_setLocalRPDOSYNCStartValue | ( | huint16 | pdoIndex, |
| huint8 | value | ||
| ) |
写本地字典[0x1400+pdoIndex]-0x6
| pdoIndex | pdo索引,为0时主索引为0x1400,为1时主索引为0x1401,以此类推 |
| value | 写入值 |
| EXTERNFUNC int canopen_setLocalRPDOTransmitType | ( | huint16 | pdoIndex, |
| huint8 | type | ||
| ) |
写本地字典[0x1400+pdoIndex]-0x2
| pdoIndex | pdo索引,为0时主索引为0x1400,为1时主索引为0x1401,以此类推 |
| type | 写入值 |
| EXTERNFUNC int canopen_setLocalServerSDOCobIdClientToServer | ( | huint16 | sdoServerIndex, |
| huint32 | cobId | ||
| ) |
写本地字典[0x1200+sdoServerIndex]-0x1
| sdoServerIndex | sdo索引,为0时主索引为0x1200,为1时主索引为0x1201,以此类推 |
| cobId | 写入值 |
| EXTERNFUNC int canopen_setLocalServerSDOCobIdServerToClient | ( | huint16 | sdoServerIndex, |
| huint32 | cobId | ||
| ) |
写本地字典[0x1200+sdoServerIndex]-0x2
| sdoServerIndex | sdo索引,为0时主索引为0x1200,为1时主索引为0x1201,以此类推 |
| cobId | 写入值 |
| EXTERNFUNC int canopen_setLocalServerSDONodeIdOfClient | ( | huint16 | sdoServerIndex, |
| huint8 | nodeId | ||
| ) |
写本地字典[0x1200+sdoServerIndex]-0x3
| sdoServerIndex | sdo索引,为0时主索引为0x1200,为1时主索引为0x1201,以此类推 |
| nodeId | 写入值 |
| EXTERNFUNC int canopen_setLocalServerSDONumberOfEntries | ( | huint16 | sdoServerIndex, |
| huint8 | num | ||
| ) |
写本地字典[0x1200+sdoServerIndex]-0x0
| sdoServerIndex | sdo索引,为0时主索引为0x1200,为1时主索引为0x1201,以此类推 |
| num | 存放读取的值 |
| EXTERNFUNC int canopen_setLocalSyncCOBID | ( | huint32 | cobId | ) |
读本地字典0x1005-0x0
| cobId | 存放读取的值 |
| EXTERNFUNC int canopen_setLocalSyncCycle | ( | huint32 | cycle | ) |
写本地字典0x1006-0x0
| cycle |
| EXTERNFUNC int canopen_setLocalSyncWindow | ( | huint32 | sWindow | ) |
写本地字典0x1007-0x0
| sWindow | 写入值 |
| EXTERNFUNC int canopen_setLocalTargetPos | ( | hint32 | pos | ) |
写本地字典0x607A-0x0
| pos | 写入值 |
| EXTERNFUNC int canopen_setLocalTargetTorque | ( | hint16 | torque | ) |
写本地字典0x6071-0x0
| torque | 写入值 |
| EXTERNFUNC int canopen_setLocalTargetVelocity | ( | hint32 | vel | ) |
写本地字典0x60FF-0x0
| vel | 写入值 |
| EXTERNFUNC int canopen_setLocalTPDOCobId | ( | huint16 | pdoIndex, |
| huint32 | cobId | ||
| ) |
写本地字典[0x1800+pdoIndex]-0x1
| pdoIndex | pdo索引,为0时主索引为0x1800,为1时主索引为0x1801,以此类推 |
| cobId | 写入值 |
| EXTERNFUNC int canopen_setLocalTPDOEventTimer | ( | huint16 | pdoIndex, |
| huint16 | timer | ||
| ) |
写本地字典[0x1800+pdoIndex]-0x5
| pdoIndex | pdo索引,为0时主索引为0x1800,为1时主索引为0x1801,以此类推 |
| timer | 写入值 |
| EXTERNFUNC int canopen_setLocalTPDOInhibitTime | ( | huint16 | pdoIndex, |
| huint16 | time | ||
| ) |
写本地字典[0x1800+pdoIndex]-0x3
| pdoIndex | pdo索引,为0时主索引为0x1800,为1时主索引为0x1801,以此类推 |
| time | 写入值 |
| EXTERNFUNC int canopen_setLocalTPDOMapped | ( | huint16 | pdoIndex, |
| huint8 | mapIndex, | ||
| huint32 | value | ||
| ) |
写本地字典[0x1A00+pdoIndex]-[0x1+mapIndex]
| pdoIndex | pdo索引,为0时主索引为0x1A00,为1时主索引为0x1A01,以此类推 |
| mapIndex | pdo映射索引,为0时子索引为0x1,为1时子索引为0x2 |
| value | 写入值 |
| EXTERNFUNC int canopen_setLocalTPDOMaxMappedCount | ( | huint16 | pdoIndex, |
| huint8 | count | ||
| ) |
写本地字典[0x1A00+pdoIndex]-0x0
| pdoIndex | pdo索引,为0时主索引为0x1A00,为1时主索引为0x1A01,以此类推 |
| count | 写入值 |
| EXTERNFUNC int canopen_setLocalTPDOMaxParasCount | ( | huint16 | pdoIndex, |
| huint8 | count | ||
| ) |
写本地字典[0x1800+pdoIndex]-0x0
| pdoIndex | pdo索引,为0时主索引为0x1800,为1时主索引为0x1801,以此类推 |
| count | 写入值 |
| EXTERNFUNC int canopen_setLocalTPDOSYNCStartValue | ( | huint16 | pdoIndex, |
| huint8 | value | ||
| ) |
写本地字典[0x1800+pdoIndex]-0x6
| pdoIndex | pdo索引,为0时主索引为0x1800,为1时主索引为0x1801,以此类推 |
| value | 写入值 |
| EXTERNFUNC int canopen_setLocalTPDOTransmitType | ( | huint16 | pdoIndex, |
| huint8 | type | ||
| ) |
写本地字典[0x1800+pdoIndex]-0x2
| pdoIndex | pdo索引,为0时主索引为0x1800,为1时主索引为0x1801,以此类推 |
| type | 写入值 |
| EXTERNFUNC int canopen_setMaxProfileVelocity | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 | vel, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x607F-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| vel | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setMotorRatedTorque | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 | torque, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x6076-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| torque | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setNodeState | ( | huint8 | devIndex, |
| huint8 | id, | ||
| canopen_NMTState | state | ||
| ) |
设置从节点状态
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| state | 节点状态 |
| EXTERNFUNC int canopen_setOperateMode | ( | huint8 | devIndex, |
| huint8 | id, | ||
| canopen_OperateMode | mode, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x6060-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| mode | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setPositionWindow | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 | pWindow, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x6067-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pWindow | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setPositionWindowTime | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pWindowTime, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x6068-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pWindowTime | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setProducerHeartbeatTime | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | time, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x1017-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| time | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setProfileAcceleration | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 | acc, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x6083-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| acc | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setProfileDeceleration | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 | dec, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x6084-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| dec | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setProfileVelocity | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 | vel, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x6081-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| vel | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setQuickStopDeceleration | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 | dec, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x6085-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| dec | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setQuickStopOption | ( | huint8 | devIndex, |
| huint8 | id, | ||
| canopen_QuickStopOption | option, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x605A-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| option | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setRatedCurrent | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 | current, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x6075-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| current | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setReceiveDataCallBack | ( | canopen_ReceiveDataCallBack | callFunc | ) |
设置接收数据回调函数
| callFunc | 回调函数地址 |
| EXTERNFUNC int canopen_setRestoreDefaultParameters | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 | value, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x1011-0x1
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| value | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setRPDOCobId | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint32 | cobId, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1400+pdoIndex]-0x1
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1400,设为1代表从站字典主索引0x1401,以此类推 |
| cobId | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setRPDOEventTimer | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint16 | timer, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1400+pdoIndex]-0x5
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1400,设为1代表从站字典主索引0x1401,以此类推 |
| timer | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setRPDOInhibitTime | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint16 | time, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1400+pdoIndex]-0x3
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1400,设为1代表从站字典主索引0x1401,以此类推 |
| time | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setRPDOMapped | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint8 | mapIndex, | ||
| huint32 | value, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1600+pdoIndex]-[0x1+mapIndex]
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1600,设为1代表从站字典主索引0x1601,以此类推 |
| mapIndex | 映射地址索引,设为0代表从站字典子索引0x1, 设为1代表子索引0x2,以此类推 |
| value | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setRPDOMaxMappedCount | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint8 | count, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1600+pdoIndex]-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1600,设为1代表从站字典主索引0x1601,以此类推 |
| count | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setRPDOMaxParasCount | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint8 | count, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1400+pdoIndex]-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1400,设为1代表从站字典主索引0x1401,以此类推 |
| count | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setRPDOSYNCStartValue | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint8 | value, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1400+pdoIndex]-0x6
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1400,设为1代表从站字典主索引0x1401,以此类推 |
| value | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setRPDOTransmitType | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint8 | type, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1400+pdoIndex]-0x2
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1400,设为1代表从站字典主索引0x1401,以此类推 |
| type | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setSendDataCallBack | ( | canopen_SendDataCallBack | callFunc | ) |
设置发送数据回调函数
| callFunc | 回调函数地址 |
| EXTERNFUNC int canopen_setServerSDOCobIdClientToServer | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | sdoServerIndex, | ||
| huint32 | cobId, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1200+sdoServerIndex]-0x1
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| sdoServerIndex | sdo索引,设为0代表从站字典主索引0x1200,设为1代表从站字典主索引0x1201,以此类推 |
| cobId | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setServerSDOCobIdServerToClient | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | sdoServerIndex, | ||
| huint32 | cobId, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1200+sdoServerIndex]-0x2
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| sdoServerIndex | sdo索引,设为0代表从站字典主索引0x1200,设为1代表从站字典主索引0x1201,以此类推 |
| cobId | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setServerSDONodeIdOfClient | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | sdoServerIndex, | ||
| huint8 | nodeId, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1200+sdoServerIndex]-0x3
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| sdoServerIndex | sdo索引,设为0代表从站字典主索引0x1200,设为1代表从站字典主索引0x1201,以此类推 |
| nodeId | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setServerSDONumberOfEntries | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | sdoServerIndex, | ||
| huint8 | num, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1200+sdoServerIndex]-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| sdoServerIndex | sdo索引,设为0代表从站字典主索引0x1200,设为1代表从站字典主索引0x1201,以此类推 |
| num | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setShutdownOptionCode | ( | huint8 | devIndex, |
| huint8 | id, | ||
| canopen_ShutdownOption | code, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x605B-0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| code | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setSoftwareMaxmumPosition | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint32 | pos, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x607D-0x2
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pos | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setSoftwareMinimumPosition | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint32 | pos, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x607D-0x1
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pos | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setStoreParameters | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 | value, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x1010-0x1
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| value | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setSyncCobid | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 | cobid, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x1005-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| cobid | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setSyncCounter | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint8 | counter, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x1019-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| counter | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setSyncCycle | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 | syncCycle, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x1006-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| syncCycle | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setSyncWindow | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 | syncWindow, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x1007-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| syncWindow | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setTargetPos | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint32 | pos, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x607A-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pos | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setTargetTorque | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint16 | torque, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x6071-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| torque | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setTargetVelocity | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint32 | targetVel, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x60FF-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| targetVel | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setTorqueLimit | ( | huint8 | devIndex, |
| huint8 | id, | ||
| hint16 | torque, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x6072-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| torque | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setTorqueSlope | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint32 | slope, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x6087-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| slope | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setTPDOCobId | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint32 | cobId, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1800+pdoIndex]-0x1
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1800,设为1代表从站字典主索引0x1801,以此类推 |
| cobId | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setTPDOEventTimer | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint16 | timer, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1800+pdoIndex]-0x5
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1800,设为1代表从站字典主索引0x1801,以此类推 |
| timer | 写入值 |
| timeout | 等待确认时间,单位 |
| EXTERNFUNC int canopen_setTPDOInhibitTime | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint16 | time, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1800+pdoIndex]-0x3
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1800,设为1代表从站字典主索引0x1801,以此类推 |
| time | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setTPDOMapped | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint8 | mapIndex, | ||
| huint32 | value, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1A00+pdoIndex]-[0x1+mapIndex]
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1A00,设为1代表从站字典主索引0x1A01,以此类推 |
| mapIndex | 映射索引,设为0代表从站字典子索引0x1,设为1代表从站字典子索引0x2,以此类推 |
| value | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setTPDOMaxMappedCount | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint8 | count, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1A00+pdoIndex]-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1a00,设为1代表从站字典主索引0x1a01,以此类推 |
| count | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setTPDOMaxParasCount | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint8 | count, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1800+pdoIndex]-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1800,设为1代表从站字典主索引0x1801,以此类推 |
| count | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setTPDOSYNCStartValue | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint8 | value, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1800+pdoIndex]-0x6
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1800,设为1代表从站字典主索引0x1801,以此类推 |
| value | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setTPDOTransmitType | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | pdoIndex, | ||
| huint8 | type, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典[0x1800+pdoIndex]-0x2
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| pdoIndex | pdo索引,设为0代表从站字典主索引0x1800,设为1代表从站字典主索引0x1801,以此类推 |
| type | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setVelocityThreshold | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | thres, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x606F-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| thres | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setVelocityThresholdTime | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | tTime, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x6070-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| tTime | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setVelocityWindow | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | vWindow, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x606D-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| vWindow | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_setVelocityWindowTime | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | wTime, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典0x606E-0x0
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| wTime | 写入值 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_writeCanData | ( | huint8 | devIndex, |
| huint16 | cobId, | ||
| const huint8 *const | data, | ||
| huint8 | len | ||
| ) |
发送原始can数据
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| cobId | can帧id |
| data | 发送的can数据 |
| len | 数据长度 |
| EXTERNFUNC int canopen_writeCanMsg | ( | huint8 | devIndex, |
| const canopen_CanMsg * | canMsg | ||
| ) |
发送原始can数据
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| canMsg | can帧 |
| EXTERNFUNC int canopen_writeDirectory | ( | huint8 | devIndex, |
| huint8 | id, | ||
| huint16 | index, | ||
| huint8 | subIndex, | ||
| canopen_DataType | dataType, | ||
| void * | writeData, | ||
| huint32 | timeout = 100 |
||
| ) |
写从站字典
| devIndex | usb转can设备索引,第1个插入的设备为0,第2个为1,以此类推 |
| id | 从节点id |
| index | 主索引 |
| subIndex | 子索引 |
| dataType | 数据类型 |
| writeData | 写入的数据 |
| timeout | 超时等待时间,单位ms |
| EXTERNFUNC int canopen_writeLocalDirectory | ( | huint16 | index, |
| huint8 | subIndex, | ||
| canopen_DataType | dataType, | ||
| void * | writeData | ||
| ) |
写主站字典
| index | 主索引 |
| subIndex | 子索引 |
| dataType | 数据类型 |
| writeData | 写入的数据 |
1.8.13