Dorna Document

Dorna Document

  • GitHub
  • Dorna.ai

›Commands

Commands

  • Introduction
  • JSON format
  • Messages
  • Order of commands
  • Joint move
  • Rapid move
  • Line move
  • Circle move
  • Halt
  • Alarm
  • Sleep
  • Input
  • Probe
  • Output
  • PWM
  • ADC
  • Joint
  • Motor
  • Tool length
  • Version

Output

{"cmd":"output", ...}

This command will set the values of the output pins. After the controller receives the command, it will set the output values and in response will return the value of all output pins. The default queue for this command is the high priority queue. If the queue parameter is set to 0, then the command will be submitted to the normal priority queue.

Key, value pairs

KeyValueRequiredDescription
"cmd""output"YesSets the output values.
"id"Int (>0)NoId can be any positive integer. If id is not provided, status of the command will not be returned from the controller.
"out0", "out1", "out2", …, "out15"0 / 1NoIf any outi is present as a key, the value of the corresponding output will be set to the given value.
"queue"0 / 1NoIf the value is 0, the command will be submitted to the normal priority queue. Otherwise, it will be submitted to the high priority queue. The default value 1.

Response

KeyValueDescription
"cmd""output"In response to output command a message is returned with cmd field set to output which includes the value of all output pins.
"id"Int (>0)Same id as the original command.
"out0", "out1", …, "out15"0 / 1The value of each output pin.

Example

{"cmd":"output", "out0":1, "out2":0, "id":5}

This command will set out0 to 1 and out2 to 0 and will return all output values.

{"cmd":"output", "id":5, "out0":1 , "out1":0 , "out2":0 , "out3":1 , "out4": 0 , "out5":0 , "out6":1 , "out7":0 , "out8":1 , "out9":0 , "out10":1 , "out11":0 , "out12":1 , "out13":0 , "out14":0 , "out15":0}

Error codes

StatValue
-300Halt already in process
-400Alarm activated
Last updated on 7/12/2022
← ProbePWM →
  • Key, value pairs
  • Response
  • Example
  • Error codes
Dorna website →
Copyright © 2022 Dorna Robotics