12
LIF TKIT- 0 S
12
7.3 Commands
Several commands can be used to communicate with the
SBOX-L-01. Consider, that they only work in the allowed state.
Command
Allowed state
moveTo_absolutePosition
Ready
stop_moving
Moving
get_position
Connected, Ready, Moving, Error
get_stroke
Connected, Ready, Moving, Error
get_status
Initialized, Connected, Ready,
Moving, Error
set_virtualLimits
Connected, Ready
get_virtualLimits
Connected, Ready, Moving, Error
set_type*
Initialized, Connected, Ready, Error
get_type
Initialized, Connected, Ready,
Moving, Error
get_typesAvailable
Initialized, Connected, Ready,
Moving, Error
* Require restart. Virtual limits must be set again after changing the type.
Get status
For getting the actual status from the SBOX-L-01 send:
“get_status\n”
As a return you get the actual status in parameter one and a
cause in parameter two, if the state is not READY or
MOVING.
There are six states, the SBOX-L-01 can be in:
Error
Error
Lost
connection
Power on
All instances
created Storage
file read
Connection to Kit
established
Homing done
All parameters
valid
Position
reached
Start moving
No Error
Bootup
Initialized
Connected
Ready
Moving