Skip to main content

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 valueDescription
0The function is called successfully
-101Invalid input parameter
-102The target object does not exist. This typically occurs when the system initialization is incomplete, and calling other functions may return this value
-103The target object is currently in an inoperable state

Parameter Option

ParameterTypeDescription
idintThe process number of the palletizing process, parameter range: 1 <= id <= 9
posTypeintThe 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
posNRC_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