diff --git a/L2SIVacuum/POUs/Functions/Valves/Interfaces/FB_VFS_2OO3Interface.TcPOU b/L2SIVacuum/POUs/Functions/Valves/Interfaces/FB_VFS_2OO3Interface.TcPOU index d44e0ec..1563936 100644 --- a/L2SIVacuum/POUs/Functions/Valves/Interfaces/FB_VFS_2OO3Interface.TcPOU +++ b/L2SIVacuum/POUs/Functions/Valves/Interfaces/FB_VFS_2OO3Interface.TcPOU @@ -1,90 +1,90 @@  - 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 @@ -193,12 +193,15 @@ q_xOverrideMode :=iq_stValve.xOverrideMode; q_xOverrideOpen := iq_stValve.pv_xOvrdOpn ; iq_stValve.sGFS := CONCAT(CONCAT(CONCAT(IG1.sPath,','),CONCAT(IG2.sPath,',')),IG3.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 @@ -211,4 +214,4 @@ q_e2OO3_MODE := i_e2OO3_MODE; - \ No newline at end of file +