NRC_Pallet_GetSimplePosParm(int id, int posType, NRC_Position& pos)
Get the position data of simple palletizing
Type
int =>Get the position data of simple palletizing
Return value | Description |
---|---|
0 | The function is called successfully |
-101 | Invalid input parameter |
-102 | The target object does not exist. This typically occurs when the system initialization is incomplete, and calling other functions may return this value |
-103 | The target object is currently in an inoperable state |
Parameter Option
Parameter | Type | Description |
---|---|---|
id | int | The process number of the palletizing process, parameter range: 1 <= id <= 9 |
posType | int | The position type of simple palletizing; 0: starting workpiece point; 1: column end; 2: row end; 3: height end; 4: starting auxiliary point; 5: starting entry point |
pos | NRC_Position & | The position data of simple palletizing, see NRC_Position |
Sample code
NRC_Position pos[] =
{
{NRC_MCS, 385, -10, 400, 3.14159, 0, 0},
{NRC_MCS, 320, -10, 400, 3.14159, 0, 0},
{NRC_MCS, 380, 50, 400, 3.14159, 0, 0},
{NRC_MCS, 385, -10, 450, 3.14159, 0, 0},
{NRC_MCS, 385, -10, 410, 3.14159, 0, 0},
{NRC_MCS, 370, -10, 420, 3.14159, 0, 0},
};
for (int i=0; i<6; i++)
NRC_Pallet_GetSimplePosParm(1, i, pos[i]);//Get the position data of simple palletizing