LS16PAxis¶
- class asgard_alignment.NewportMotor.LS16PAxis(connection, semaphore_id, name)¶
Bases:
MotorAttributes Summary
Methods Summary
init()move_abs(position)read_state([echo])Read the state of the motor
Attributes Documentation
- CONTROLLER_STATES = {'0A': 'READY OPEN LOOP: after reset', '0B': 'READY OPEN LOOP: after HOMING state', '0C': 'READY OPEN LOOP: after STEPPING state', '0D': 'READY OPEN LOOP: after CONFIGURATION state', '0E': 'READY OPEN LOOP: after with no parameters', '0F': 'READY OPEN LOOP: after JOGGING state', '10': 'READY OPEN LOOP: after SCANNING state', '11': 'READY OPEN LOOP: after READY CLOSED LOOP state', '14': 'CONFIGURATION', '1E': 'HOMING', '1F': 'REFERENCING', '28': 'MOVING OPEN LOOP (OL)', '29': 'MOVING CLOSED LOOP (CL)', '32': 'READY CLOSED LOOP: after HOMING state', '33': 'READY CLOSED LOOP: after MOVING CL state', '34': 'READY CLOSED LOOP: after DISABLE state', '35': 'READY CLOSED LOOP: after REFERENCING state', '36': 'READY CLOSED LOOP: after HOLDING state', '3C': 'DISABLE: after READY CLOSED LOOP state', '3D': 'DISABLE: after MOVING CL state', '46': 'JOGGING', '50': 'SCANNING', '5A': 'HOLDING'}¶
- ERROR_BITS = {'0000': 'No error', '0010': 'Bit motor stall timeout', '0020': 'Bit time out motion', '0040': 'Bit time out homing', '0080': 'Bit bad memory parameters', '0100': 'Bit supply voltage too low', '0200': 'Bit internal error', '0400': 'Bit memory problem', '0800': 'Bit over temperature'}¶
- LOWER_LIMIT = 0.0¶
- UPPER_LIMIT = 16.0¶
Methods Documentation
- init()¶
- is_at_limit()¶
- is_init_success()¶
- is_motion_done()¶
- is_moving()¶
- is_reset_success()¶
- is_stop_success()¶
- move_abs(position: float)¶
- read_position()¶
- read_state(echo=False)¶
Read the state of the motor
- CONTROLLER_STATES = {'0A': 'READY OPEN LOOP: after reset', '0B': 'READY OPEN LOOP: after HOMING state', '0C': 'READY OPEN LOOP: after STEPPING state', '0D': 'READY OPEN LOOP: after CONFIGURATION state', '0E': 'READY OPEN LOOP: after with no parameters', '0F': 'READY OPEN LOOP: after JOGGING state', '10': 'READY OPEN LOOP: after SCANNING state', '11': 'READY OPEN LOOP: after READY CLOSED LOOP state', '14': 'CONFIGURATION', '1E': 'HOMING', '1F': 'REFERENCING', '28': 'MOVING OPEN LOOP (OL)', '29': 'MOVING CLOSED LOOP (CL)', '32': 'READY CLOSED LOOP: after HOMING state', '33': 'READY CLOSED LOOP: after MOVING CL state', '34': 'READY CLOSED LOOP: after DISABLE state', '35': 'READY CLOSED LOOP: after REFERENCING state', '36': 'READY CLOSED LOOP: after HOLDING state', '3C': 'DISABLE: after READY CLOSED LOOP state', '3D': 'DISABLE: after MOVING CL state', '46': 'JOGGING', '50': 'SCANNING', '5A': 'HOLDING'}¶
- ERROR_BITS = {'0000': 'No error', '0010': 'Bit motor stall timeout', '0020': 'Bit time out motion', '0040': 'Bit time out homing', '0080': 'Bit bad memory parameters', '0100': 'Bit supply voltage too low', '0200': 'Bit internal error', '0400': 'Bit memory problem', '0800': 'Bit over temperature'}¶
- LOWER_LIMIT = 0.0¶
- MIDDLE = 8.0¶
- UPPER_LIMIT = 16.0¶
- disable()¶
The DISABLE command can be used to request the MCU to power off devices.
- enable()¶
The ENABLE command can be used to request the MCU to power on devices.
- init()¶
- is_at_limit()¶
- is_init_success()¶
- is_motion_done()¶
- is_moving()¶
- is_reset_success()¶
- is_stop_success()¶
- move_abs(position: float)¶
- move_relative(position)¶
- online()¶
Upon reception, the ICS back-end server of the MCU shall power on all the controlled devices and have them ready to accept SETUP commands.
- ping()¶
The PING command is used to check the status of the controller, sending a dummy command such as *IDN? and making sure there is a reply
- read_position()¶
- read_state(echo=False)¶
Read the state of the motor
- setup(value)¶
Command to move a device to a given position. The position is given in the value field.
- standby()¶
Upon reception, the ICS back-end server of the MCU shall move some of the controlled devices to a safe “parking” position (if required) and power off all the controlled devices.
- stop()¶
The STOP command is issued by the ICS on wag to immediately stop the motion (initiated by a SETUP command) of devices.