Difference between revisions of "Undocumented User Functions"
m |
m |
||
Line 42: | Line 42: | ||
| none | | none | ||
| VFB | | VFB | ||
− | | axis 1,2,3... return value | + | | axis 1,2,3... return value mapped to VFB |
|- | |- | ||
| USER_CAN_SDO_WRITE | | USER_CAN_SDO_WRITE | ||
Line 49: | Line 49: | ||
| Value | | Value | ||
| Error code | | Error code | ||
− | | example: user USER_CAN_SDO_WRITE(0x0101,0x606000,7) will write 7 into object | + | | example: user USER_CAN_SDO_WRITE(0x0101,0x606000,7) will write 7 into object dictionary 0x6060 with subIndex zero |
|- | |- | ||
| USER_CAN_SDO_READ | | USER_CAN_SDO_READ | ||
Line 56: | Line 56: | ||
| none | | none | ||
| Error code | | Error code | ||
− | | example: USER_CAN_SDO_READ(1,0x606100,0) will read from object | + | | example: USER_CAN_SDO_READ(1,0x606100,0) will read from object dictionary 0x6061 with subIndex zero |
|- | |- | ||
| USER_SKIP_SYNC | | USER_SKIP_SYNC | ||
Line 73: | Line 73: | ||
|- | |- | ||
| USER_SET_ES_LOCK_DETECT_TIMEOUT | | USER_SET_ES_LOCK_DETECT_TIMEOUT | ||
− | | Delay in | + | | Delay in ms |
| none | | none | ||
| none | | none | ||
Line 80: | Line 80: | ||
|- | |- | ||
| USER_GET_ES_LOCK_DETECT_TIMEOUT | | USER_GET_ES_LOCK_DETECT_TIMEOUT | ||
− | | Delay in | + | | Delay in ms |
| none | | none | ||
| none | | none |
Revision as of 14:34, 19 March 2014
This sections is intended for expert users or developers. It contains a list of internal functions for debugging, troubleshooting and development purposes.
We do not guaranty any kind of backward compatibility. Usage can cause severe deviation in operation.
Use it on your own risk!!
Each function gets up to 3 optional integer parameters and an optional return value.
Usage:
var = user FUNCTION_NAME(1,2,3)
?user FUNCTION_NAME(1,2,3)
Unused parameters are zero
Name | Parameter 1 | Parameter 2 | Parameter 3 | Return Value | Description |
---|---|---|---|---|---|
USR_GET_RUN_TIME_ERROR | none | none | none | error code | Value of last run-error |
USR_GET_ASSERTED_ERROR | none | none | none | error code | Value of last run-error delivered to interpreter from other module. |
USR_GET_RECENT_ERROR | none | none | none | error code | Value of recent error |
USER_CAN_GET_VFB | axis | none | none | VFB | axis 1,2,3... return value mapped to VFB |
USER_CAN_SDO_WRITE | drive address&value size | IndexSubindex | Value | Error code | example: user USER_CAN_SDO_WRITE(0x0101,0x606000,7) will write 7 into object dictionary 0x6060 with subIndex zero |
USER_CAN_SDO_READ | drive address | IndexSubindex | none | Error code | example: USER_CAN_SDO_READ(1,0x606100,0) will read from object dictionary 0x6061 with subIndex zero |
USER_SKIP_SYNC | number | none | none | none | Skip number of syncs for debugging purposes |
USER_DELAY_SYNC | Delay in uSecs | lCpuClockMzh | none | none | Create artificial delay in single SYNC messages |
USER_SET_ES_LOCK_DETECT_TIMEOUT | Delay in ms | none | none | none | ?????? |
USER_GET_ES_LOCK_DETECT_TIMEOUT | Delay in ms | none | none | none | ???? |
ENCRYPTFILE | File name | none | none | none | Encrypt file, this function requires definition in proto.pro |
EC_SET_TX_ERR | number | none | none | none | Generate a number of consecutive tx errors. For debugging purposes. |
none | none | none | none | none | none |