Skip to content

jog_alive

Runs at once Any mode Open to every client

Keep the jog going while a button is held: a dead-man. The robot stops this client's jog 0.6 s after its last jog_alive(). Send it every 0.2 s while the jog button or joystick is held, from the place that knows it is held (the dashboard sends it from the browser), so a lost button release or a lost connection stops the joint. From the first jog_alive() on, a jog of this client is watched until jog_stop(); a program that never sends it jogs until jog_stop() or its disconnect, as before. It never moves anything by itself and is accepted from every client, in every mode.

Syntax

robot.jog_alive()

Arguments

None.

Returns

Any

None: the robot sends no value back.

Examples

import time
robot.jog_alive()
robot.jog(1, 1, 5)
for _ in range(5):
    time.sleep(0.2)
    robot.jog_alive()
robot.jog_stop()
Usage restrictions 1 code

This command runs at once; it is not queued. The robot accepts it in any mode and state, from every client.

It answers with one of these codes when it does not carry the command out:

  • [6003] Invalid arguments — it was sent with arguments

In Python, a code above raises CommandRejected; its number is the code. The call raises:

  • CommandRejected: The robot refused it (Errors:).
  • RobotTimeout: The robot did not answer within 5 s.
  • RobotConnectionError: The client is not connected.

If the connection drops while the call waits for the robot's answer, it raises CommandRejected with the code CONNECTION_LOST (DISCONNECTED after disconnect()); while it waits for the robot's status, RobotConnectionError.

Like every immediate command, it also answers BAD_ARGS when a raw client sends a value the robot cannot read at all, and INTERNAL when it fails inside the robot.

Protocol

A client that does not use robotclient sends this over the TCP command protocol (port 29000) for the example above:

{"id": "c1", "cmd": "jog_alive", "args": []}

See also