tp_log(message)
Features
This function records the user-written log to the Teach Pendant.
Parameters
Parameter Name | Data Type | Default Value | Description |
---|---|---|---|
message | string | - | Log message
|
Return
Value | Description |
---|---|
0 | Success |
Negative value | Failed |
Exception
Exception | Description |
---|---|
DR_Error (DR_ERROR_TYPE) | Parameter data type error occurred |
DR_Error (DR_ERROR_VALUE) | Parameter value is invalid |
DR_Error (DR_ERROR_RUNTIME) | C extension module error occurred |
DR_Error (DR_ERROR_STOP) | Program terminated forcefully |
Example
tp_log("movej() is complete! ")