Skip to content

Commit

Permalink
FIX: Issue pcdshub#73 input for the kashiyama pump is the remote sign…
Browse files Browse the repository at this point in the history
…al and not the local signal
  • Loading branch information
ghalym committed Feb 3, 2021
1 parent 2dda136 commit d9edab8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 27 deletions.
3 changes: 2 additions & 1 deletion L2SIVacuum/DUTs/Pumps/ST_KashiyamaDryPump.TcDUT
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ STRUCT
field: ONAM TRUE;
io: i
'}
i_xLocal : BOOL;
i_xRemote : BOOL;
{attribute 'pytmc' := '
pv: ALARM_OK;
field: ZNAM FALSE;
Expand Down
4 changes: 2 additions & 2 deletions L2SIVacuum/L2SIVacuum.tmc

Large diffs are not rendered by default.

Binary file modified L2SIVacuum/LineIDs.dbg
Binary file not shown.
25 changes: 3 additions & 22 deletions L2SIVacuum/POUs/Functions/Pumps/FB_KashiyamaPump.TcPOU
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ VAR
q_xLspdDo AT%Q*: BOOL;
(* Input *)
i_xLocal AT%I*: BOOL;
i_xRemote AT%I*: BOOL;
i_xAlarm AT%I*: BOOL;
i_xWarning AT%I*: BOOL;
i_xIsRun AT%I*: BOOL;
Expand All @@ -33,7 +33,7 @@ END_VAR
<Implementation>
<ST><![CDATA[
//Kashiyama Dry pump outputs at high level indicate no warning, no alarm and remotely
q_stPump.xIlkOK := q_stPump.i_xLocal AND q_stPump.i_xWarningOK AND q_stPump.i_xAlarmOK;
q_stPump.xIlkOK := q_stPump.i_xRemote AND q_stPump.i_xWarningOK AND q_stPump.i_xAlarmOK;
IF q_stPump.xIlkOK THEN
q_stPump.q_xRunDO := q_stPump.pv_xRunSW;
Expand Down Expand Up @@ -86,7 +86,7 @@ ACT_IO();]]></ST>
q_xLspdDo := q_stPump.q_xLspdDo;;
(* Input *)
q_stPump.i_xLocal := i_xLocal;
q_stPump.i_xRemote := i_xRemote;
q_stPump.i_xAlarmOK := i_xAlarm;
q_stPump.i_xWarningOK := i_xWarning;
q_stPump.i_xIsRun := i_xIsRun;]]></ST>
Expand All @@ -103,24 +103,5 @@ END_VAR
this^.q_stPump.pv_xRunSW := run;]]></ST>
</Implementation>
</Method>
<LineIds Name="FB_KashiyamaPump">
<LineId Id="67" Count="0" />
<LineId Id="20" Count="1" />
<LineId Id="66" Count="0" />
<LineId Id="22" Count="25" />
<LineId Id="63" Count="0" />
<LineId Id="102" Count="10" />
<LineId Id="96" Count="0" />
<LineId Id="64" Count="1" />
<LineId Id="9" Count="0" />
</LineIds>
<LineIds Name="FB_KashiyamaPump.ACT_IO">
<LineId Id="2" Count="8" />
<LineId Id="1" Count="0" />
</LineIds>
<LineIds Name="FB_KashiyamaPump.M_Run">
<LineId Id="10" Count="0" />
<LineId Id="5" Count="0" />
</LineIds>
</POU>
</TcPlcObject>
4 changes: 2 additions & 2 deletions L2SIVacuum/Version/Global_Version.TcGVL
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4024.3">
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4022.18">
<GVL Name="Global_Version" Id="{b4103322-af4d-4358-8c01-a7ffb0bae992}">
<Declaration><![CDATA[{attribute 'TcGenerated'}
{attribute 'no-analysis'}
{attribute 'linkalways'}
// This function has been automatically generated from the project information.
VAR_GLOBAL CONSTANT
{attribute 'const_non_replaced'}
stLibVersion_LCLS_Vacuum : ST_LibVersion := (iMajor := 0, iMinor := 0, iBuild := 0, iRevision := 0, nFlags := 0, sVersion := '0.0.0');
stLibVersion_LCLS_Vacuum : ST_LibVersion := (iMajor := 0, iMinor := 0, iBuild := 0, iRevision := 0, sVersion := '0.0.0');
END_VAR
]]></Declaration>
</GVL>
Expand Down

0 comments on commit d9edab8

Please sign in to comment.