feat(galil): added lights on/off

This commit is contained in:
wakonig_k 2024-02-16 08:27:06 +01:00 committed by wakonig_k
parent 5e9d3aed17
commit 366f592e08

View File

@ -42,6 +42,8 @@ class FlomniGalilController(GalilController):
"fosaz_light_curtain_is_triggered", "fosaz_light_curtain_is_triggered",
"is_motor_on", "is_motor_on",
"all_axes_referenced", "all_axes_referenced",
"lights_off",
"lights_on",
] ]
def is_axis_moving(self, axis_Id, axis_Id_numeric) -> bool: def is_axis_moving(self, axis_Id, axis_Id_numeric) -> bool:
@ -65,6 +67,18 @@ class FlomniGalilController(GalilController):
return int(float(self.socket_put_and_receive("MG @IN[14]").strip())) == 1 return int(float(self.socket_put_and_receive("MG @IN[14]").strip())) == 1
def lights_off(self) -> None:
"""
Turn off the lights
"""
self.socket_put_confirmed("CB15")
def lights_on(self) -> None:
"""
Turn on the lights
"""
self.socket_put_confirmed("SB15")
class FlomniGalilReadbackSignal(GalilSignalRO): class FlomniGalilReadbackSignal(GalilSignalRO):
@retry_once @retry_once