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 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 |
| curPalletedWpSum | int& | The current number of palletized workpieces |
| curLayerNum | int& | The current number of palletized layers |
| curLayerPalletedWpNum | int& | The number of palletized workpieces on the current layer |
| totalWpNum | int& | The total number of workpieces in the pallet stack |
| totalLayerNum | int& | The total number of layers in the pallet stack |
| curLayerWpSum | int& | 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);