Skip to main content
Skip table of contents

tp_log(message)

Features

This function records the user-written log to the Teach Pendant.

Parameters

Parameter NameData TypeDefault ValueDescription

message

string

-

Log message

  • Messages are limited to within 256 bytes.
  • It is recommended that the text be concise. For long text, some content is omitted with an ellipsis (…).
  • Formatting-related code such as newline (\n) or carriage return (\r) is not allowed.

Return

ValueDescription

0

Success

Negative value

Failed

Exception

ExceptionDescription

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

PY
tp_log("movej() is complete! ")
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.