save_drive_config¶
Runs at once Any mode Disabled Takes control
Store a drive's whole working config in its flash memory. The drive has one save command: it stores everything it holds now, the settings written with write_drive_parameter() and also the gains, limits, watchdog and brake setting the robot sends it, and keeps them after a power-off. While it saves, for up to about a second, it does not answer; the robot does not report it lost meanwhile. Only with the arm disabled. Read its values again afterwards with read_drive_parameters().
Syntax¶
Arguments¶
| Name | Type | Default | Description |
|---|---|---|---|
drive |
int |
required | 1 to the number of joints for a joint, one more for a CAN gripper. |
Returns¶
Nothing.
Examples¶
Further details¶
Warning
What is saved comes back at every power-up of that drive, also without the robot software, for example a coast setting that lets J2 or J3 drop when they are idle. Save only a drive whose values you have checked.
Usage restrictions 5 codes
This command runs at once; it is not queued. The robot accepts it only when it is disabled, from the client that holds control or when no client does.
It answers with one of these codes when it does not carry the command out:
- [6010] Command not allowed now — the message names the mode or state it needs
- [6101] Control held by another client — another client holds control; the message names it
- [6003] Invalid arguments — no such drive
- [6025] RTI not running or not answering — rTI did not answer within 1 s: it is not running or not responding. The command may still have taken effect
- [6026] Refused by RTI — rTI refused it: the arm is enabled. The message says why
In Python, a code above raises CommandRejected; its number is the code. The call raises:
CommandRejected: The robot refused it: the arm is enabled, another client holds control, or no such drive. Or RTI refused it or did not answer within 1 s (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: