Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
linak:commands2 [2023/02/27 13:03] superuser created |
linak:commands2 [2023/03/09 08:15] (current) superuser |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | # Command Reference | + | === Command reference === |
| - | ```md | + | The following commands are available: |
| - | ## up | + | |
| - | up <motor id> <amount> - Move the motor with the specified ID up by the specified amount | + | |
| - | ## down | + | ''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 | + | |
| - | ## stop | + | ''down <motor id>, <amount>'' - Move the motor with the specified ID down by the specified amount |
| - | stop <motor id> - Stop the motor with the specified ID | + | |
| - | ## init | + | ''max <motor id>'' - Move the motor with the specified ID to the maximum height |
| - | init <motor id> - Set the height of the motor with the specified ID to zero | + | |
| - | ## height | + | ''min <motor id>'' - Move the motor with the specified ID to the minimum height |
| - | height <motor id> - Get the current height of the motor with the specified ID | + | |
| - | ## set_range | + | ''stop <motor id>'' - Stop 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 | + | ''zero <motor id>'' - Set the height of the motor with the specified ID to zero |
| - | get_range <motor id> - Get the allowed range of the motor with the specified ID | + | |
| - | ## save | + | ''calibrate <motor id>'' - Calibrate 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 | + | |
| - | ## load | + | ''height <motor id>'' - Get the current height of 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 | + | ''set_range <motor id>, <min height>, <max height>'' - Set the allowed range of the motor with the specified ID |
| - | show <motor id> <slot id 1> <slot id 2> ... - Get the positions saved in the specified slots for 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 | ||