Skip to main content
Skip table of contents

set_tcp(name)

Features

his function calls the name of the TCP registered in the Teach Pendant and sets it as the current TCP.

Parameter

Parameter NameData TypeDefault ValueDescription

name

string

-

Name of the TCP registered in the TP.

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
P0 = posj(0,0,90,0,90,0)
movej(P0)
set_tcp("tcp1")  # The TCP data registered as tcp1 in the TP is called and set to the current TCP value.
P1 = posx(400,500,800,0,180,0)   
movel(P1, vel=10, acc=20) # Moves the recognized center of the tool to the P1 position.

Related commands


JavaScript errors detected

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

If this problem persists, please contact our support.