Skip to main content

NRC_Pallet_GetPalletedWpNum(int id,int& curPalletedWpSum, int& curLayerNum, int& curLayerPalletedWpNum,int& totalWpNum, int& totalLayerNum, int& curLayerWpSum)

Get the number of palletized workpieces

For these 6 parameters, when the return value is -1, it means that the number is unknown

Type

int =>Get the number of palletized workpieces

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
curPalletedWpSumint&The current number of palletized workpieces
curLayerNumint&The current number of palletized layers
curLayerPalletedWpNumint&The number of palletized workpieces on the current layer
totalWpNumint&The total number of workpieces in the pallet stack
totalLayerNumint&The total number of layers in the pallet stack
curLayerWpSumint&The total number of workpieces on the current layer

Sample code

int curPalletedWpSum;
int curLayerNum;
int curLayerPalletedWpNum;
int totalWpNum;
int totalLayerNum;
int curLayerWpSum;
NRC_Pallet_GetPalletedWpNum(1,curPalletedWpSum, curLayerNum,curLayerPalletedWpNum,totalWpNum,totalLayerNum, curLayerWpSum);