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

Sleep

{"cmd":"sleep", ...}

With this command, the controller sleeps for the number of seconds specified in the command. It can be used to create delay between execution of motion commands or other commands in the normal priority queue as it executes in the normal priority queue in the same order that it was received by the controller.

Key, value pairs

KeyValueRequiredDescription
"cmd""sleep"YesSleep between motions.
"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.
"time"Double (>0)NoTime is the amount of delay in seconds.

Example

{"cmd":"sleep", "time":5}

After finishing all commands before this command, the controller waits for 5 seconds, before executing the next command.

Error codes

StatValue
-21time field is missing or invalid
-300Halt already in process
-400Alarm activated
Last updated on 7/12/2022
← AlarmInput →
  • Key, value pairs
  • Example
  • Error codes
Dorna website →
Copyright © 2022 Dorna Robotics