NRC_JobfileInsertPALOFF(int line, int id, int var=0)
Insert PALOFF instruction into the job file
Before calling this function, please call NRC_CreateJobfile(std::string jobname) or NRC_OpenJobfile(std::string jobname) to create or open a job file
It needs to be used with NRC_JobfileInsertPALON(int line, int id, int type, int var1, int var2, int var3)
Type
int=>Insert PALOFF instruction into the job file
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 |
---|---|---|
line | int | The line number where the instruction will be inserted, parameter range: 0 < line < (NRC_GetJobfileLineSum()+1) |
id | int | The process number of the palletizing process, parameter range: 1 <= id <= 9 |
var | int | Palletizing end judgment, 0 means no storage, 1-100 means variables GA001-GA100, parameter range: 0 <= var <= 100 |
Sample code
Refer to the JobfileInsertPALON example