CDRFLEx.set_ref_coord
Features
This function sets the reference coordinate system.
Parameter
Parameter Name | Data Type | Default Value | Description |
eTargetCoordSystem | enum.COORDINATE_SYSTEM | COORDINATE_SYSTEM_BASE | Refer to the Definition of Constant and Enumeration Type |
Return
Value | Description |
0 | Failed |
1 | Success |
Example
float p1[6] = {0, 0, 90, 0, 90, 0};
Drfl.movej(p1, 60, 30);
float vec[2][3] = {{-1, 1, 1}, {1, 1, 0}};
float org[3] = {370.9, -419.7, 651.5};
int user = Drfl.set_user_cart_coord(vec, org);
Drfl.set_ref_coord((COORDINATE_SYSTEM)user);