NRC_StepRunJobfile(std::string jobname, int line)
Step through a line of instruction in a job file
After this function is successfully called, the robot will start moving. Please pay attention to safety
Type
int=>Step through a line of instruction in a 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 |
---|---|---|
jobname | string | The job file to be single-stepped, this parameter is invalid when continuing to run |
line | int | The line number of the instruction to be single-stepped, this parameter is invalid when continuing to run |
Sample code
NRC_StepRunJobfile("NRCAPI",2);//Step through the instruction on line 2 in the job file "NRCAPI"