Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
linak:commands2 [2023/03/09 06:51] superuser |
linak:commands2 [2023/03/09 08:15] (current) superuser |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | = Command reference = | + | === Command reference === |
| The following commands are available: | The following commands are available: | ||
| - | '''up <motor id>, <amount>''' - Move the motor with the specified ID up by the specified amount | + | ''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 | + | ''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 | + | ''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 | + | ''min <motor id>'' - Move the motor with the specified ID to the minimum height |
| - | '''stop <motor id>''' - Stop the motor with the specified ID | + | ''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 | + | ''zero <motor id>'' - Set the height of the motor with the specified ID to zero |
| - | '''calibrate <motor id>''' - Calibrate the motor with the specified ID | + | ''calibrate <motor id>'' - Calibrate the motor with the specified ID |
| - | '''height <motor id>''' - Get the current height of 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 | + | ''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 | + | ''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 | + | ''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 | + | ''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 | + | ''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 | + | ''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 | + | ''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 | + | ''name <name>'' - Change the name of the device |
| - | '''help''' - Show this help | + | ''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 | + | === Examples === |
| - | '''calibrate 1''' - calibrate motor 1 | + | ''up 1, 100'' - move motor 1 up by 100 mm |
| - | '''save 1, 1''' - save current position of motor 1 to slot 1 | + | ''down 2, 200'' - move motor 2 down by 200 mm |
| - | '''load 1, 1''' - move motor 1 to position saved in slot 1 | + | ''max 1'' - move motor 1 to max height |
| - | '''show 1''' - show all saved positions for motor 1 | + | ''calibrate 1'' - calibrate motor 1 |
| - | '''name my_device''' - change device name to my_device.local | + | ''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 | ||