This commit is contained in:
gac-x11ma
2026-06-24 13:28:45 +02:00
parent b658ce0a15
commit 97ecbd2af2
113 changed files with 5193 additions and 456368 deletions
+16 -15
View File
@@ -1,22 +1,23 @@
POL_IDS={ "Circ_Plus": 1, "Circ_Minus": 2, "Lin_Hor":3, "Lin_Ver": 4, "Lin": 5}
channel_id1_status=Channel("X11MA-ID1-USER:STATUS", 'i', monitored=True)
channel_id2_status=Channel("X11MA-ID2-USER:STATUS", 'i', monitored=True)
channel_id1_error=Channel("X11MA-ID1-USER:ERROR-SOURCE", 'i', monitored=True)
channel_id2_error=Channel("X11MA-ID2-USER:ERROR-SOURCE", 'i', monitored=True)
channel_id1_control=Channel("X11MA-ID1-GAP:SCTRL", 'i', monitored=True)
channel_id2_control=Channel("X11MA-ID2-GAP:SCTRL", 'i', monitored=True)
channel_ring_status=Channel("ACOAU-ACCU:OP-MODE", 'i', monitored=True)
#channel_id1_status=Channel("X11MA-ID1-USER:STATUS", 'i', monitored=True)
#channel_id2_status=Channel("X11MA-ID2-USER:STATUS", 'i', monitored=True)
#channel_id1_error=Channel("X11MA-ID1-USER:ERROR-SOURCE", 'i', monitored=True)
#channel_id2_error=Channel("X11MA-ID2-USER:ERROR-SOURCE", 'i', monitored=True)
#channel_id1_control=Channel("X11MA-ID1-GAP:SCTRL", 'i', monitored=True)
#channel_id2_control=Channel("X11MA-ID2-GAP:SCTRL", 'i', monitored=True)
#channel_ring_status=Channel("ACOAU-ACCU:OP-MODE", 'i', monitored=True)
#
def get_id_status(id):
# 0 = ok
# 1 = Warning
# 2 = Error
# 3 = Not available
if id<1 or id>2:
raise Exception("Invalid id")
return channel_id1_status.get() if (id==1) else channel_id2_status.get()
# # 0 = ok
# # 1 = Warning
# # 2 = Error
# # 3 = Not available
x=1
# if id<1 or id>2:
# raise Exception("Invalid id")
# return channel_id1_status.get() if (id==1) else channel_id2_status.get()
def get_id_error(id):
# B0 (1) = PLC (Taper, Motor controller, Limitswitch....)