Skip to main content

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 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
jobnamestringThe job file to be single-stepped, this parameter is invalid when continuing to run
lineintThe 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"