Skip to content

Secondary Development API (Palletizing Process)

This chapter covers the palletizing process parameter settings and control interfaces.

Function Index

FunctionDescription
NRC_Pallet_SetUsePalletType / NRC_Pallet_GetUsePalletTypeSwitch between simple/full palletizing
NRC_Pallet_SetGripperParm / NRC_Pallet_GetGripperParmGripper parameters
NRC_Pallet_SetSimplePosParm / NRC_Pallet_GetSimplePosParmSimple palletizing position parameters
NRC_Pallet_SetSimpleNumParm / NRC_Pallet_GetSimpleNumParmSimple palletizing quantity parameters
NRC_Pallet_ClearCurrentStatusClear palletizing status
NRC_Pallet_SetPalletedWpNum / NRC_Pallet_GetPalletedWpNumPalletized workpiece count

NRC_Pallet_SetUsePalletType

Function Prototypeint NRC_Pallet_SetUsePalletType(int id, int type);
DescriptionSets whether to use simple palletizing or full palletizing.
ParametersInput Parameters:
id Palletizing process ID, range: 1 <= id <= 99
type Palletizing type to use 0-Simple Palletizing 1-Full Palletizing
Return Value0: Function call succeeded
-101: Invalid input parameter
-102: Target object does not exist, typically returned when system initialization is incomplete
-103: Target object is currently in an inoperable state
NotesNone

| --- | --- |

NRC_Pallet_GetUsePalletType

Function Prototypeint NRC_Pallet_GetUsePalletType(int id);
DescriptionGets whether simple palletizing or full palletizing is being used.
ParametersInput Parameters:
id Palletizing process ID, range: 1 <= id <= 99
Return ValuePalletizing type in use: 0-Simple Palletizing 1-Full Palletizing
NotesNone

NRC_Pallet_SetGripperParm

Function Prototypeint NRC_Pallet_SetGripperParm(int id, int gripperSum, int gripper[4]);
DescriptionSets palletizing gripper data.
ParametersInput Parameters:
id Palletizing process ID, range: 1 <= id <= 99
gripperSum Total number of available grippers, range: 1 <= gripperSum <= 4
gripper Tool coordinate number bound to each gripper, 1 <= gripper[i] <= 9
Return Value0: Function call succeeded
-101: Invalid input parameter
-102: Target object does not exist, typically returned when system initialization is incomplete
-103: Target object is currently in an inoperable state
NotesNone

| --- | --- |

NRC_Pallet_GetGripperParm

Function Prototypeint NRC_Pallet_GetGripperParm(int id, int &gripperSum, int &gripper[4]);
DescriptionGets palletizing gripper data.
ParametersInput Parameters:
id Palletizing process ID, range: 1 <= id <= 99
Output Parameters:
gripperSum Retrieved total number of available grippers
gripper Retrieved tool coordinate number bound to each gripper
Return Value0: Function call succeeded
-101: Invalid input parameter
------
-102: Target object does not exist, typically returned when system initialization is incomplete
-103: Target object is currently in an inoperable state
NotesNone

| --- | --- |

NRC_Pallet_SetSimplePosParm

Function Prototypeint NRC_Pallet_SetSimplePosParm(int id, int posType, NRC_Position pos);
DescriptionSets simple palletizing position data.
ParametersInput Parameters:
id Palletizing process ID, range: 1 <= id <= 99
posType Position type for simple palletizing: - 0 Starting workpiece point - 1 Column end - 2 Row end - 3 Height end - 4 Starting auxiliary point - 5 Starting entry point
pos Position data
Return Value0: Function call succeeded
-101: Invalid input parameter
-102: Target object does not exist, typically returned when system initialization is incomplete
-103: Target object is currently in an inoperable state
NotesNone

| --- | --- |

NRC_Pallet_GetSimplePosParm

Function Prototypeint NRC_Pallet_GetSimplePosParm(int id, int posType, NRC_Position& pos);
DescriptionGets simple palletizing position data.
ParametersInput Parameters:
id Palletizing process ID, range: 1 <= id <= 99
posType Position type for simple palletizing: - 0 Starting workpiece point - 1 Column end - 2 Row end - 3 Height end - 4 Starting auxiliary point - 5 Starting entry point
Output Parameters:
pos Position data
Return Value0: Function call succeeded
-101: Invalid input parameter
------
-102: Target object does not exist, typically returned when system initialization is incomplete
-103: Target object is currently in an inoperable state
NotesNone

| --- | --- |

NRC_Pallet_SetSimpleNumParm

Function Prototypeint NRC_Pallet_SetSimpleNumParm(int id, int numX, int numY, int numZ);
DescriptionSets simple palletizing count data.
ParametersInput Parameters:
id Palletizing process ID, range: 1 <= id <= 99
numX Number of workpieces in the X direction of the simple palletizing tray (corresponding to the X direction of the user coordinate), i.e., number of rows
numY Number of workpieces in the Y direction of the simple palletizing tray (corresponding to the Y direction of the user coordinate), i.e., number of columns
numZ Number of workpieces in the Z direction of the simple palletizing tray (corresponding to the Z direction of the user coordinate), i.e., number of layers
Return Value0: Function call succeeded
-101: Invalid input parameter
-102: Target object does not exist, typically returned when system initialization is incomplete
-103: Target object is currently in an inoperable state
NotesNone

| --- | --- |

NRC_Pallet_GetSimpleNumParm

Function Prototypeint NRC_Pallet_GetSimpleNumParm(int id, int& numX, int& numY, int& numZ);
DescriptionGets simple palletizing count data.
ParametersInput Parameters:
id Palletizing process ID, range: 1 <= id <= 99
Output Parameters:
numX Number of workpieces in the X direction of the simple palletizing tray (corresponding to the X direction of the user coordinate), i.e., number of rows
numY Number of workpieces in the Y direction of the simple palletizing tray (corresponding to the Y direction of the user coordinate), i.e., number of columns
numZ Number of workpieces in the Z direction of the simple palletizing tray (corresponding to the Z direction of the user coordinate), i.e., number of layers
Return Value0: Function call succeeded
-101: Invalid input parameter
------
-102: Target object does not exist, typically returned when system initialization is incomplete
-103: Target object is currently in an inoperable state
NotesNone

| --- | --- |

NRC_Pallet_ClearCurrentStatus

Function Prototypeint NRC_Pallet_ClearCurrentStatus(int id);
DescriptionClears the current palletizing status.
ParametersInput Parameters:
id Palletizing process ID, range: 1 <= id <= 99
Return Value0: Function call succeeded
-101: Invalid input parameter
-102: Target object does not exist, typically returned when system initialization is incomplete
-103: Target object is currently in an inoperable state
NotesNone

| --- | --- |

NRC_Pallet_SetPalletedWpNum

Function Prototypeint NRC_Pallet_SetPalletedWpNum(int id, int layerNum, int layerPalletedWpNum);
DescriptionSets the number of palletized workpieces.
ParametersInput Parameters:
id Palletizing process ID, range: 1 <= id <= 99
layerNum The number of palletized layers to modify
layerPalletedWpNum The number of palletized workpieces in the layer to modify
Return Value0: Function call succeeded
-101: Invalid input parameter
-102: Target object does not exist, typically returned when system initialization is incomplete
-103: Target object is currently in an inoperable state
NotesNone

| --- | --- |

NRC_Pallet_GetPalletedWpNum

Function Prototypeint NRC_Pallet_GetPalletedWpNum(int id, int& curPalletedWpSum, int& curLayerNum, int& curLayerPalletedWpNum, int& totalWpNum, int& totalLayerNum, int& curLayerWpSum);
DescriptionGets the number of palletized workpieces.
ParametersInput Parameters:
id Palletizing process ID, range: 1 <= id <= 99
Output Parameters:
curPalletedWpSum Current number of palletized workpieces
curLayerNum Current number of palletized layers
curLayerPalletedWpNum Current number of palletized workpieces in the current layer
totalWpNum Total number of workpieces in the pallet stack
totalLayerNum Total number of layers in the pallet stack
curLayerWpSum Total number of workpieces in the current layer
Return Value0: Function call succeeded
-101: Invalid input parameter
------
-102: Target object does not exist, typically returned when system initialization is incomplete
-103: Target object is currently in an inoperable state
NotesFor the 6 parameters used as return values, a value of -1 indicates that the count is unknown

| --- | --- |