Definition
tp_log(message)
Features
This function records the user-written log to the Teach Pendant.
Caution
-
Excessive use of TP_LOG or SET commands within loops may cause CPU overload.
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
Python
tp_log("movej() is complete!")