NRC_Pallet_GetPalletedWpNum(int id,int& curPalletedWpSum, int& curLayerNum, int& curLayerPalletedWpNum,int& totalWpNum, int& totalLayerNum, int& curLayerWpSum)
获取码垛已码个数
对于用作返回值的 6 个参数,当其值为-1 时,表示个数未知
类型
int =>获取码垛已码个数
| 返回值 | 说明 |
|---|---|
| 0 | 表示函数正常调用 |
| -101 | 无效的输入参数 |
| -102 | 目标对象不存在,一般出现在系统初始化未完成时,调用其他函数时可能返回该值 |
| -103 | 目标对象当前处于不可操作状态 |
参数 Option
| 参数 | 类型 | 说明 |
|---|---|---|
| id | int | 码垛工艺的工艺号,参数范围:1 <= id <= 9 |
| curPalletedWpSum | int& | 当前已码工件数 |
| curLayerNum | int& | 当前已码层数 |
| curLayerPalletedWpNum | int& | 当前层的已码工件数 |
| totalWpNum | int& | 垛堆工件总数 |
| totalLayerNum | int& | 垛堆总层数 |
| curLayerWpSum | int& | 当前层的工件总数 |
示例代码
int curPalletedWpSum;
int curLayerNum;
int curLayerPalletedWpNum;
int totalWpNum;
int totalLayerNum;
int curLayerWpSum;
NRC_Pallet_GetPalletedWpNum(1,curPalletedWpSum, curLayerNum,curLayerPalletedWpNum,totalWpNum,totalLayerNum, curLayerWpSum);