Breadcrumbs

CDRFLEx.add_tcp

Features

This is a function for using robot TCP information by registering it in advance for security reasons. The TCP information registered using this function should be reset after rebooting, as it is stored in the memory. However, if it is registered in the T/P application, it can be reused, as it is added in the initialization process.

Parameter

Parameter Name

Data Type

Default Value

Description

strSymbol

string

-

TCP Name

fPosition

float[6]

-

TCP Information

Return

Value

Description

0

Error

1

Success

Example

C++
float fTCP[6] = { 10, 10, 10, 0, 0, 0 };
// Registers TCP.
drfl.add_tcp("tcp#1", fTCP);

// Sets current TCP
drfl.set_tcp("tcpl#1");

// Releases registration of TCP.
drfl.del_tcp(“tcp#1);