Skip to content

Commit

Permalink
Minor fix, reseting i_ResetFaultCounter
Browse files Browse the repository at this point in the history
  • Loading branch information
janezg-SLAC committed Jan 18, 2024
1 parent 59de96a commit b5d4d41
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion L2SIVacuum/L2SIVacuum.tmc
Original file line number Diff line number Diff line change
Expand Up @@ -1004,4 +1004,4 @@ This function provides ILK and Set Point Protection for the Cold Cathode]]></Com
</Value></Property><Property><Name>TcVarGlobal</Name></Property></Properties><BitOffs>3072000</BitOffs></Symbol><Symbol><Name>PMPS_GVL.AccumulatedFF</Name><Comment><![CDATA[ Any time a FF occurs]]></Comment><BitSize>32</BitSize><BaseType>UDINT</BaseType><Properties><Property><Name>pytmc</Name><Value>
pv: @(PREFIX)AccumulatedFastFaults
io: i
</Value></Property><Property><Name>TcVarGlobal</Name></Property></Properties><BitOffs>3072032</BitOffs></Symbol><Symbol><Name>PMPS_GVL.BP_jsonDoc</Name><BitSize>64</BitSize><BaseType GUID="{928162FC-F0DF-42B8-9EC0-1494F07A4E2F}">SJsonValue</BaseType><Properties><Property><Name>TcVarGlobal</Name></Property></Properties><BitOffs>3072064</BitOffs></Symbol></DataArea></DataAreas><Deployment /><EventClasses><EventClass><Type GUID="{97CF8247-B59C-4E2C-B4B0-7350D0471457}">LCLSGeneralEventClass</Type></EventClass></EventClasses><Properties><Property><Name>ApplicationName</Name><Value>Port_851</Value></Property><Property><Name>ChangeDate</Name><Value>2024-01-15T17:49:48</Value></Property><Property><Name>GeneratedCodeSize</Name><Value>700416</Value></Property><Property><Name>GlobalDataSize</Name><Value>65372160</Value></Property></Properties></Module></Modules></TcModuleClass>
</Value></Property><Property><Name>TcVarGlobal</Name></Property></Properties><BitOffs>3072032</BitOffs></Symbol><Symbol><Name>PMPS_GVL.BP_jsonDoc</Name><BitSize>64</BitSize><BaseType GUID="{928162FC-F0DF-42B8-9EC0-1494F07A4E2F}">SJsonValue</BaseType><Properties><Property><Name>TcVarGlobal</Name></Property></Properties><BitOffs>3072064</BitOffs></Symbol></DataArea></DataAreas><Deployment /><EventClasses><EventClass><Type GUID="{97CF8247-B59C-4E2C-B4B0-7350D0471457}">LCLSGeneralEventClass</Type></EventClass></EventClasses><Properties><Property><Name>ApplicationName</Name><Value>Port_851</Value></Property><Property><Name>ChangeDate</Name><Value>2024-01-18T13:19:49</Value></Property><Property><Name>GeneratedCodeSize</Name><Value>700416</Value></Property><Property><Name>GlobalDataSize</Name><Value>65372160</Value></Property></Properties></Module></Modules></TcModuleClass>
Binary file modified L2SIVacuum/LineIDs.dbg
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,12 @@ xOPN_OK := (i_xVAC_FAULT_OK) AND (NOT i_xTrigger OR (q_xVetoValveClosed AND NOT
(*Reset Fault counter, q_ResetFaultCounter output is TRUE for one plc cycle *)
rtResetFaultCounter(CLK := i_ResetFaultCounter);
q_ResetFaultCounter := rtResetFaultCounter.Q;
IF rtResetFaultCounter.Q THEN
i_ResetFaultCounter := FALSE;
q_ResetFaultCounter := TRUE;
ELSE
q_ResetFaultCounter := FALSE;
END_IF
(*Soft IO Mapping*)
IO();
Expand Down

0 comments on commit b5d4d41

Please sign in to comment.