Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
linak:commands2 [2023/02/27 13:13]
superuser
linak:commands2 [2023/03/09 08:15] (current)
superuser
Line 1: Line 1:
-====== Command ​Reference ======+=== Command ​reference ​===
  
-==== up ==== +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 ==== +''​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
  
-==== stop ==== +''​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 ==== +''​zero ​<motor id>'' ​- Set the height of the motor with the specified ID to zero
-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 ==== +''​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 ==== +''​get_range ​<motor id>'' ​Get 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+
  
-----+''​save <motor id>, <slot id>'' ​Save the current position of the motor with the specified ID to the specified slot
  
-==== get_range ==== +''​write ​<motor id>, <slot id>, <​height>'' ​Save the specified height to the specified slot for the motor with the specified ID
-get_range ​<motor id> - Get the allowed range of 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
  
-==== save ==== +''​load ​<motor id>, <slot id>'' ​Go to the position ​saved in the specified slot for 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+ 
 +''​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
  
----- 
  
-==== load ==== 
-load <motor id>, <slot id> - Go to the position saved in the specified slot for the motor with the specified ID 
  
 ---- ----
  
-==== show ==== +=== Examples ​===
-show <motor id>, <slot id 1>, <slot id 2>, ... - Get the positions saved in the specified slots for the motor with the specified ID+
  
-----+''​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
  
-===== Examples =====+''​save 1, 1''​ - save current position of motor 1 to slot 1
  
-<​code>​ +''​load ​1, 1''​ - move motor 1 to position saved in slot 1
-up 1, 100 +
-</​code>​+
  
-<​code>​ +''​show 1''​ - show all saved positions for motor 1
-set_range 2, 100, 500 +
-</​code>​+
  
 +''​name my_device''​ - change device name to my_device.local
  • linak/commands2.1677503634.txt.gz
  • Last modified: 2023/02/27 13:13
  • by superuser