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

ADC

{"cmd":"adc", ...}

This command will read the value of all ADC pins and maps the input voltage (in the range of 0V to 3.3V) to an integer between 0 to 2^16-1. 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""adc"YesReads ADC pins.
"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.
"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""adc"In response to adc command a message is returned where the cmd field is set to adc and the values of all ADC pins are included in it.
"id"Int (>0)Same id as the original command.
"adc0", "adc1", "adc2", "adc3", "adc4"Int (>=0 and <= 2^16 - 1)Value of ADC pins as an integer between 0 and 2^16 - 1.

Example

{"cmd":"adc", "id":1}

The response will include the value of all ADC pins.

{"cmd":"adc", "id":1, "adc0":0, "adc1":33, "adc2":10, "adc3":0, "adc4":0}

Error codes

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