This is an old revision of the document!


Command reference

The following commands are available:

up <motor id>, <amount> - Move the motor with the specified ID up by the specified amount

down <motor id>, <amount> - Move the motor with the specified ID down by the specified amount

max <motor id> - Move the motor with the specified ID to the maximum height

min <motor id> - Move the motor with the specified ID to the minimum height

stop <motor id> - Stop the motor with the specified ID

init <motor id> - Set the height of the motor with the specified ID to zero

calibrate <motor id> - Calibrate the motor with the specified ID

height <motor id> - Get the current height of the motor with the specified ID

set_range <motor id>, <min height>, <max height> - Set the allowed range of the motor with the specified ID

get_range <motor id> - Get the allowed range of the motor with the specified ID

save <motor id>, <slot id> - Save the current position of the motor with the specified ID to the specified slot

write <motor id>, <slot id>, <height> - Save the specified height to the specified slot for the motor with the specified ID

read <motor id>, <slot id> - Get the height saved in the specified slot for the motor with the specified ID

load <motor id>, <slot id> - Go to the position saved in the specified slot for the motor with the specified ID

show <motor id> - Get the positions saved in all slots for the motor with the specified ID

name <name> - Change the name of the device

help - Show this help

Examples

up 1, 100 - move motor 1 up by 100 mm

down 2, 200 - move motor 2 down by 200 mm

max 1 - move motor 1 to max height

calibrate 1 - calibrate motor 1

save 1, 1 - save current position of motor 1 to slot 1

load 1, 1 - move motor 1 to position saved in slot 1

show 1 - show all saved positions for motor 1

name my_device - change device name to my_device.local

  • linak/commands2.1678345025.txt.gz
  • Last modified: 2023/03/09 06:57
  • by superuser