Skip to content

Program Status

Program Line Number

Sent to the upper computer when the controller starts executing an instruction:

Command Word: 0x5400

FieldTypeDescription
robotintSelect robot, value range [1, 4]
jobnamestringJob file name
numintNumber of executed instructions
json
{
  "robot": 1,
  "jobname": "Q1",
  "num": 3
}

CRAFTLINE Instruction Jump

Sent to the teach pendant when the controller executes a CRAFTLINE instruction:

Command Word: 0x5401

FieldTypeDescription
robotintSelect robot, value range [1, 4]
numintNumber of executed instructions
json
{
  "robot": 1,
  "num": 2
}

Query Current Line Number

When the teach pendant establishes a network connection with the controller, the upper computer queries which line is currently running:

Command Word: 0x5402

FieldTypeDescription
robotintSelect robot, value range [1, 4]
json
{
  "robot": 1
}

Controller Reply

Command Word: 0x5403

FieldTypeDescription
robotintSelect robot, value range [1, 4]
jobnamestringJob file name
numintLine number
json
{
  "robot": 1,
  "jobname": "Q1",
  "num": 3
}

Program Run Status

Program status includes: pause, running, stopped.

Query Program Run Status

Command Word: 0x5410

FieldTypeDescription
robotintSelect robot, value range [1, 4]
json
{
  "robot": 1
}

Controller Reply

Command Word: 0x5411

FieldTypeDescription
robotintSelect robot, value range [1, 4]
statusintProgram run status: 0 stopped, 1 paused, 2 running
json
{
  "robot": 1,
  "status": 0
}

Query Robot Run Status

Command Word: 0x5412

FieldTypeDescription
robotintSelect robot, value range [1, 4]
jobfilenamestringJob file name
json
{
  "robot": 1,
  "jobfilename": ""
}

Controller Reply

Command Word: 0x5413

FieldTypeDescription
robotintSelect robot, value range [1, 4]
statusintRun status: 0 stopped, 1 paused, 2 running
continueRunintWhether to run from current line: 0 run from beginning, 1 run from current line
currentRunboolWhether currently running
mainProgramRunintWhether main program is running
json
{
  "robot": 1,
  "status": 0,
  "continueRun": 0,
  "currentRun": false,
  "mainProgramRun": 0
}

Set Current Line

Command Word: 0x5414

FieldTypeDescription
robotintSelect robot, value range [1, 4]
jobfilenamestringJob file name
numintLine number
json
{
  "robot": 1,
  "jobfilename": "",
  "num": 1
}

Query Current Line

Command Word: 0x5415

FieldTypeDescription
robotintSelect robot, value range [1, 4]
json
{
  "robot": 1
}

Controller Reply

Command Word: 0x5416

FieldTypeDescription
robotintSelect robot, value range [1, 4]
jobfilenamestringJob file name
numintLine number
json
{
  "robot": 1,
  "jobfilename": "",
  "num": 1
}

Clear Run Status

Sent by the upper computer to reset program run status after successfully importing a program:

Command Word: 0x5417

  • No data to send

Controller Reply

Command Word: 0x5418

  • No reply data needed

Query Remaining Instructions in Motion Queue

Command Word: 0x5419

FieldTypeDescription
robotintCurrent robot, value range [1, 4]
json
{
  "robot": 1
}

Controller Reply

Command Word: 0x541A

FieldTypeDescription
sumintNumber of line numbers in the motion queue
json
{
  "sum": 4
}

Query Remaining Instructions in Motion Queue

Command Word: 0x541a

Controller Reply

FieldTypeDescription
sumintLine number of the motion queue
json
{
  "sum": 4
}