Skip to content
Snippets Groups Projects
Commit 885e9dd7 authored by Milan Prica's avatar Milan Prica :skier:
Browse files

Open and Close commands changed.

parent 3960cd67
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ class IrisDiaphragm (PyTango.Device_4Impl):
try:
# ctrl_proxy device to SmarAct MCS Controller
self.ctrl_proxy = PyTango.DeviceProxy(self.SmaractMCSDevice)
if self.ctrl_proxy.state() != PyTango.DevState.ON:
if self.ctrl_proxy.state() not in (PyTango.DevState.ON, PyTango.DevState.MOVING,):
self.set_state(PyTango.DevState.FAULT)
self.status_string = "ctrl_proxy device not in ON state. INIT failed."
return
......@@ -229,7 +229,8 @@ class IrisDiaphragm (PyTango.Device_4Impl):
:return:
:rtype: PyTango.DevVoid """
# self.debug_stream("In Open()")
self.execute_command("GoToHighLimit")
# self.execute_command("GoToHighLimit")
self.write_position(22.0)
def is_Open_allowed(self):
return self.get_state() in (PyTango.DevState.ON,)
......@@ -241,7 +242,8 @@ class IrisDiaphragm (PyTango.Device_4Impl):
:return:
:rtype: PyTango.DevVoid """
# self.debug_stream("In Close()")
self.execute_command("GoToLowLimit")
# self.execute_command("GoToLowLimit")
self.write_position(0.0)
def is_Close_allowed(self):
return self.get_state() in (PyTango.DevState.ON,)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment