From 47126460f9ac7091e2fa1756266eb5c4c151f027 Mon Sep 17 00:00:00 2001 From: Josue Zamudio Date: Mon, 10 Jun 2024 11:43:40 -0700 Subject: [PATCH] update iq_stValve.xOPN_OK in interface function block to update VFS widget --- .../Valves/Interfaces/FB_VFS_Interface.TcPOU | 149 ++++++++---------- 1 file changed, 70 insertions(+), 79 deletions(-) diff --git a/L2SIVacuum/POUs/Functions/Valves/Interfaces/FB_VFS_Interface.TcPOU b/L2SIVacuum/POUs/Functions/Valves/Interfaces/FB_VFS_Interface.TcPOU index f302b84..e40d02e 100644 --- a/L2SIVacuum/POUs/Functions/Valves/Interfaces/FB_VFS_Interface.TcPOU +++ b/L2SIVacuum/POUs/Functions/Valves/Interfaces/FB_VFS_Interface.TcPOU @@ -1,56 +1,56 @@  - + - iq_stValve.eState THEN - CASE iq_stValve.eState OF - INVALID: - fbLogger(sMsg:='Valve invalid position.', eSevr:=TcEventSeverity.Critical); - MOVING: - fbLogger(sMsg:='Valve moving', eSevr:=TcEventSeverity.Warning); - OPEN: - fbLogger(sMsg:='Valve Open.', eSevr:=TcEventSeverity.Info); - CLOSED: - fbLogger(sMsg:='Valve closed.', eSevr:=TcEventSeverity.Info); - END_CASE - ePrevState := iq_stValve.eState; + CASE iq_stValve.eState OF + INVALID: + fbLogger(sMsg:='Valve invalid position.', eSevr:=TcEventSeverity.Critical); + MOVING: + fbLogger(sMsg:='Valve moving', eSevr:=TcEventSeverity.Warning); + OPEN: + fbLogger(sMsg:='Valve Open.', eSevr:=TcEventSeverity.Info); + CLOSED: + fbLogger(sMsg:='Valve closed.', eSevr:=TcEventSeverity.Info); + END_CASE + ePrevState := iq_stValve.eState; END_IF - + // Log valve timeouts @@ -151,12 +151,15 @@ q_xOverrideMode :=iq_stValve.xOverrideMode; q_xOverrideOpen := iq_stValve.pv_xOvrdOpn ; iq_stValve.sGFS := IG.sPath; +(*update values*) +iq_stValve.xOPN_OK := xOPN_OK; + (*Veto*) (*VETO Devices*) q_xVetoValveOpenDO := Veto_Valve.q_xOPN_DO; q_xVetoValveClosed := Veto_Valve.i_xClsLS; -//reset the commands +//reset the commands IF ( iq_stValve.i_xOpnLS) THEN iq_stValve.pv_xOPN_SW := FALSE; END_IF IF ( iq_stValve.i_xClsLS) THEN iq_stValve.xCLS_SW := FALSE; END_IF @@ -165,17 +168,5 @@ iq_stValve.sVetoDeviceName := Veto_Valve.sDevName; ]]> - - - - - - - - - - - - \ No newline at end of file