Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EBD/FEE Flow Switch Readbacks #120

Merged
merged 14 commits into from
Dec 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<Box File="IM1K0-EL6021.xti" Id="33">
<EtherCAT PortABoxInfo="#x01000020"/>
</Box>
<Box File="EBD-PCW-FSW-EL1004.xti" Id="168">
<Box File="IM1K0-EL1004.xti" Id="168">
<EtherCAT PortABoxInfo="#x01000021"/>
</Box>
<Box File="IM1K0-EL6002.xti" Id="34">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
<Box File="ST1K4-EL7041-E4.xti" Id="116">
<EtherCAT PortABoxInfo="#x01000073"/>
</Box>
<Box File="FEE-K-PCW-FSW-EL1004.xti" Id="240">
<Box File="ST1K4-EL1004-E5.xti" Id="240">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed that there's already an E5 in the IO tree here. Is this a typo, or was ST1K4-EL9505-E5 always named wrong (should it be E6?)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think whats going on here is E5 at install exists turning the following terminals into 5V. Next someone adds an EL5042 calls it E5A before the 9505, next someone adds EL1004 Before E5A calls it correctly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's currently an 1004-E5, 5042-E5A, followed by 9505-E5

Copy link
Member

@ZLLentz ZLLentz Nov 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, that explains the confusion here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could quickly fix this.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would ask you to, but this also needs to involve updating drawings, terminal labels, and maybe even captars, so it might not necessarily be worth your time

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is incidentally a device that never had a drawing until I started hooking stuff up to it, so its probably not a big deal to update. Its actually been stuck in purgatory for awhile:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://trello.com/c/HvURG1e1/256-05ops-fee-sc-fsw-st1-im1k4-r-1-e4
not a bad idea to get it pulled from the darkness into a JIRA ticket

<EtherCAT PortABoxInfo="#x01000074"/>
</Box>
<Box File="ST1K4-EL5042-E5A.xti" Id="241">
<Box File="ST1K4-EL5042-E6.xti" Id="241">
<EtherCAT PortABoxInfo="#x010000f0"/>
</Box>
<Box File="ST1K4-EL9505-E5.xti" Id="117">
<Box File="ST1K4-EL9505-E7.xti" Id="117">
<EtherCAT PortABoxInfo="#x010000f1"/>
</Box>
<Box File="ST1K4-EL9011.xti" Id="118">
Expand Down
2 changes: 1 addition & 1 deletion plc-kfe-motion/_Config/NC/Axes/ST1K4-TEST.xti
Original file line number Diff line number Diff line change
Expand Up @@ -1530,7 +1530,7 @@ External Setpoint Generation:
</Axis>
<Mappings>
<OwnerA>
<OwnerB Name="TIID^Device 1 (EtherCAT)^Power (EK1200)^PLC Junction 3 (EK1122)^X1 TMO FEE EC1 (EK1100)^TMO FEE EC1 E1 (EK1122)^X2-ST1K4-TEST (EK1100)^ST1K4-EL5042-E5A">
<OwnerB Name="TIID^Device 1 (EtherCAT)^Power (EK1200)^PLC Junction 3 (EK1122)^X1 TMO FEE EC1 (EK1100)^TMO FEE EC1 E1 (EK1122)^X2-ST1K4-TEST (EK1100)^ST1K4-EL5042-E6">
<Link VarA="Enc^Inputs^In^nComState" VarB="WcState^InputToggle" Size="1" OffsA="1"/>
<Link VarA="Enc^Inputs^In^nComState" VarB="WcState^WcState"/>
<Link VarA="Enc^Inputs^In^nDataIn1" VarB="FB Inputs Channel 1^Position"/>
Expand Down
38 changes: 37 additions & 1 deletion plc-kfe-motion/_Config/PLC/kfe_motion.xti
Original file line number Diff line number Diff line change
Expand Up @@ -1743,6 +1743,10 @@ External Setpoint Generation:
<Name>PRG_IM1K3_PPM.fbIM1K3.fbYagThermoCouple.iRaw</Name>
<Type>INT</Type>
</Var>
<Var>
<Name>PRG_IM1K3_PPM.fbIM1K3.fbFlowSwitch.bFlowOk</Name>
<Type>BOOL</Type>
</Var>
<Var>
<Name>PRG_IM2K0_XTES.fbIM2K0.fbYStage.fbDriveVirtual.MasterAxis.NcToPlc</Name>
<Type GUID="{6A65C767-34E5-42BF-AD87-E1A503EAC7BE}" Namespace="MC">NCTOPLC_AXIS_REF</Type>
Expand Down Expand Up @@ -2129,6 +2133,10 @@ External Setpoint Generation:
<Name>PRG_PF1K0_WFS.fbPF1K0.fbThermoCouple2.iRaw</Name>
<Type>INT</Type>
</Var>
<Var>
<Name>PRG_PF1K0_WFS.fbPF1K0.fbFlowSwitch.bFlowOk</Name>
<Type>BOOL</Type>
</Var>
<Var>
<Name>PRG_RTDSK0.RTDSK0_MPA_01.i_xInsertedLS</Name>
<Comment>
Expand Down Expand Up @@ -4164,6 +4172,10 @@ External Setpoint Generation:
</Comment>
<Type>INT</Type>
</Var>
<Var>
<Name>PRG_ST1K4_TEST.fbFlowSwitch.bFlowOk</Name>
<Type>BOOL</Type>
</Var>
<Var>
<Name>PRG_3_PMPS_POST.fbArbiterIO.i_stCurrentBP</Name>
<Type GUID="{292CD354-C7C0-4A61-AAD0-1C85DD69646B}">ST_BeamParams_IO</Type>
Expand Down Expand Up @@ -7540,6 +7552,14 @@ External Setpoint Generation:
<Name>GVL.rReqTrans</Name>
<Type GUID="{6D319B26-4590-2152-3DE7-3BA9B629CA65}">ARRAY [1..16] OF ST_PMPS_Attenuator_IO</Type>
</Var>
<Var>
<Name>PRG_OTHER.fbPC1K0FlowSwitch.bFlowOk</Name>
<Type>BOOL</Type>
</Var>
<Var>
<Name>PRG_OTHER.fbPC1K4FlowSwitch.bFlowOk</Name>
<Type>BOOL</Type>
</Var>
</Vars>
<Vars VarGrpType="2">
<Name>PlcTask Outputs</Name>
Expand Down Expand Up @@ -8478,6 +8498,11 @@ External Setpoint Generation:
<Link VarA="PlcTask Outputs^PRG_RTDSK0.RTDSK0_MPA_04.q_xInsert_DO" VarB="Channel 7^Output" AutoLink="true"/>
<Link VarA="PlcTask Outputs^PRG_RTDSK0.RTDSK0_MPA_04.q_xRetract_DO" VarB="Channel 8^Output" AutoLink="true"/>
</OwnerB>
<OwnerB Name="TIID^Device 1 (EtherCAT)^Power (EK1200)^PLC Junction 1 (EK1122)^X2 IM1K0-XTES (EK1100)^IM1K0-EL1004">
<Link VarA="PlcTask Inputs^PRG_IM1K0_XTES.fbIM1K0.fbFlowSwitch.bFlowOk" VarB="Channel 2^Input" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_OTHER.fbPC1K0FlowSwitch.bFlowOk" VarB="Channel 1^Input" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_SL1K0_POWER.fbSL1K0.fbFlowSwitch.bFlowOk" VarB="Channel 3^Input" AutoLink="true"/>
</OwnerB>
<OwnerB Name="TIID^Device 1 (EtherCAT)^Power (EK1200)^PLC Junction 1 (EK1122)^X2 IM1K0-XTES (EK1100)^IM1K0-EL1088">
<Link VarA="PlcTask Inputs^Main.M2.bHome" VarB="Channel 2^Input" AutoLink="true"/>
<Link VarA="PlcTask Inputs^Main.M3.bHome" VarB="Channel 4^Input" AutoLink="true"/>
Expand Down Expand Up @@ -8630,6 +8655,11 @@ External Setpoint Generation:
<Link VarA="PlcTask Inputs^Main.M6.nRawEncoderUINT" VarB="ENC Status compact Channel 1^Counter value" AutoLink="true"/>
<Link VarA="PlcTask Inputs^Main.M7.nRawEncoderUINT" VarB="ENC Status compact Channel 2^Counter value" AutoLink="true"/>
</OwnerB>
<OwnerB Name="TIID^Device 1 (EtherCAT)^Power (EK1200)^PLC Junction 2 (EK1122)^X2 SXR EC1 (EK1100)^EC1 E1 (EK1122)^X2 SL2K0-POWER (EK1100)^SL2K0-EL1004-E12">
<Link VarA="PlcTask Inputs^PRG_IM2K0_XTES.fbIM2K0.fbFlowSwitch.bFlowOk" VarB="Channel 1^Input" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_PF1K0_WFS.fbPF1K0.fbFlowSwitch.bFlowOk" VarB="Channel 1^Input" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_SL2K0_POWER.fbSL2K0.fbFlowSwitch.bFlowOk" VarB="Channel 1^Input" AutoLink="true"/>
</OwnerB>
<OwnerB Name="TIID^Device 1 (EtherCAT)^Power (EK1200)^PLC Junction 2 (EK1122)^X2 SXR EC1 (EK1100)^EC1 E1 (EK1122)^X2 SL2K0-POWER (EK1100)^SL2K0-EL3202-E10">
<Link VarA="PlcTask Inputs^PRG_SL2K0_POWER.fbSL2K0.RTD_Bottom_1.bError" VarB="RTD Inputs Channel 1^Status^Error" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_SL2K0_POWER.fbSL2K0.RTD_Bottom_1.iRaw" VarB="RTD Inputs Channel 1^Value" AutoLink="true"/>
Expand Down Expand Up @@ -8814,10 +8844,16 @@ External Setpoint Generation:
<Link VarA="PlcTask Inputs^Main.M31.nRawEncoderUINT" VarB="ENC Status compact Channel 1^Counter value" AutoLink="true"/>
<Link VarA="PlcTask Inputs^Main.M32.nRawEncoderUINT" VarB="ENC Status compact Channel 2^Counter value" AutoLink="true"/>
</OwnerB>
<OwnerB Name="TIID^Device 1 (EtherCAT)^Power (EK1200)^PLC Junction 3 (EK1122)^X1 TMO FEE EC1 (EK1100)^TMO FEE EC1 E1 (EK1122)^X2-ST1K4-TEST (EK1100)^ST1K4-EL1004-E5">
<Link VarA="PlcTask Inputs^PRG_IM1K3_PPM.fbIM1K3.fbFlowSwitch.bFlowOk" VarB="Channel 3^Input" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_IM1K4_XTES.fbIM1K4.fbFlowSwitch.bFlowOk" VarB="Channel 2^Input" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_OTHER.fbPC1K4FlowSwitch.bFlowOk" VarB="Channel 2^Input" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_ST1K4_TEST.fbFlowSwitch.bFlowOk" VarB="Channel 1^Input" AutoLink="true"/>
</OwnerB>
<OwnerB Name="TIID^Device 1 (EtherCAT)^Power (EK1200)^PLC Junction 3 (EK1122)^X1 TMO FEE EC1 (EK1100)^TMO FEE EC1 E1 (EK1122)^X2-ST1K4-TEST (EK1100)^ST1K4-EL2202-E3">
<Link VarA="PlcTask Outputs^Main.M33.bBrakeRelease" VarB="Channel 1^Output" AutoLink="true"/>
</OwnerB>
<OwnerB Name="TIID^Device 1 (EtherCAT)^Power (EK1200)^PLC Junction 3 (EK1122)^X1 TMO FEE EC1 (EK1100)^TMO FEE EC1 E1 (EK1122)^X2-ST1K4-TEST (EK1100)^ST1K4-EL5042-E5A">
<OwnerB Name="TIID^Device 1 (EtherCAT)^Power (EK1200)^PLC Junction 3 (EK1122)^X1 TMO FEE EC1 (EK1100)^TMO FEE EC1 E1 (EK1122)^X2-ST1K4-TEST (EK1100)^ST1K4-EL5042-E6">
<Link VarA="PlcTask Inputs^Main.M33.nRawEncoderULINT" VarB="FB Inputs Channel 1^Position" AutoLink="true"/>
</OwnerB>
<OwnerB Name="TIID^Device 1 (EtherCAT)^Power (EK1200)^PLC Junction 3 (EK1122)^X1 TMO FEE EC1 (EK1100)^TMO FEE EC1 E1 (EK1122)^X2-ST1K4-TEST (EK1100)^ST1K4-EL7041-E4">
Expand Down
2 changes: 1 addition & 1 deletion plc-kfe-motion/kfe_motion/GVLs/Main.TcGVL
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ VAR_GLOBAL
{attribute 'TcLinkTo' := '.bLimitForwardEnable := TIIB[ST1K4-EL7041-E4]^STM Status^Status^Digital input 1;
.bLimitBackwardEnable := TIIB[ST1K4-EL7041-E4]^STM Status^Status^Digital input 2;
.bBrakeRelease := TIIB[ST1K4-EL2202-E3]^Channel 1^Output;
.nRawEncoderULINT := TIIB[ST1K4-EL5042-E5A]^FB Inputs Channel 1^Position'}
.nRawEncoderULINT := TIIB[ST1K4-EL5042-E6]^FB Inputs Channel 1^Position'}
M33: ST_MotionStage := (sName := 'ST1K4:TEST:MMS:01');
END_VAR]]></Declaration>
</GVL>
Expand Down
2 changes: 1 addition & 1 deletion plc-kfe-motion/kfe_motion/POUs/IM2K0/FB_XPIM_IM2K0.TcPOU
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ VAR
fbLED: FB_XPIM_LED;

{attribute 'pytmc' := '
pv: SFW
pv: FSW
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

'}
fbFlowSwitch: FB_XTES_Flowswitch;
END_VAR
Expand Down
1 change: 1 addition & 0 deletions plc-kfe-motion/kfe_motion/POUs/PRG_1_PlcTask.TcPOU
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ PRG_SL2K0_POWER();
PRG_AT1K4_SOLID();
PRG_IM1K4_XTES();
PRG_ST1K4_TEST();
PRG_OTHER();

PRG_3_PMPS_POST();
PRG_4_LOG();]]></ST>
Expand Down
4 changes: 3 additions & 1 deletion plc-kfe-motion/kfe_motion/POUs/PRG_IM1K0_XTES.TcPOU
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ VAR
.bFocusEndFwd := TIIB[IM1K0-EL1088]^Channel 3^Input;
.bFocusEndBwd := TIIB[IM1K0-EL1088]^Channel 4^Input;
.fbOpal.bOpalPower := TIIB[IM1K0-EL2004]^Channel 2^Output;
.fbLED.bLedPower := TIIB[IM1K0-EL2004]^Channel 3^Output'}
.fbLED.bLedPower := TIIB[IM1K0-EL2004]^Channel 3^Output;
.fbFlowSwitch.bFlowOk := TIIB[IM1K0-EL1004]^Channel 2^Input
'}
fbIM1K0: FB_XPIM;
fbStateSetup: FB_StateSetupHelper;
stDefault: ST_PositionState := (
Expand Down
3 changes: 2 additions & 1 deletion plc-kfe-motion/kfe_motion/POUs/PRG_IM1K3_PPM.TcPOU
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ VAR
.fbYagThermoCouple.bError := TIIB[IM1K3-EL3314]^TC Inputs Channel 2^Status^Error;
.fbYagThermoCouple.bUnderrange := TIIB[IM1K3-EL3314]^TC Inputs Channel 2^Status^Underrange;
.fbYagThermoCouple.bOverrange := TIIB[IM1K3-EL3314]^TC Inputs Channel 2^Status^Overrange;
.fbYagThermoCouple.iRaw := TIIB[IM1K3-EL3314]^TC Inputs Channel 2^Value'}
.fbYagThermoCouple.iRaw := TIIB[IM1K3-EL3314]^TC Inputs Channel 2^Value;
.fbFlowSwitch.bFlowOk := TIIB[ST1K4-EL1004-E5]^Channel 3^Input'}
fbIM1K3: FB_PPM;
fbStateSetup: FB_StateSetupHelper;
stDefault: ST_PositionState := (
Expand Down
3 changes: 2 additions & 1 deletion plc-kfe-motion/kfe_motion/POUs/PRG_IM1K4_XTES.TcPOU
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ VAR
.bFocusEndFwd := TIIB[IM1K4-EL1088-E5]^Channel 3^Input;
.bFocusEndBwd := TIIB[IM1K4-EL1088-E5]^Channel 4^Input;
.fbOpal.bOpalPower := TIIB[IM1K4-EL2004-E2]^Channel 2^Output;
.fbLED.bLedPower := TIIB[IM1K4-EL2004-E2]^Channel 3^Output'}
.fbLED.bLedPower := TIIB[IM1K4-EL2004-E2]^Channel 3^Output;
.fbFlowSwitch.bFlowOk := TIIB[ST1K4-EL1004-E5]^Channel 2^Input'} // same as PC1K4
fbIM1K4: FB_XPIM;
fbStateSetup: FB_StateSetupHelper;
stDefault: ST_PositionState := (
Expand Down
3 changes: 2 additions & 1 deletion plc-kfe-motion/kfe_motion/POUs/PRG_IM2K0_XTES.TcPOU
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
VAR
{attribute 'pytmc' := 'pv: IM2K0:XTES'}
{attribute 'TcLinkTo' := '.fbLED.bLedPower := TIIB[IM2K0-EL2004]^Channel 3^Output;
.fbGige.bGigePower := TIIB[IM2K0-EL2004]^Channel 4^Output'}
.fbGige.bGigePower := TIIB[IM2K0-EL2004]^Channel 4^Output;
.fbFlowSwitch.bFlowOk := TIIB[SL2K0-EL1004-E12]^Channel 1^Input'} // same cooling loop as SL2K0
fbIM2K0: FB_XPIM_IM2K0;
fbStateSetup: FB_StateSetupHelper;
stDefault: ST_PositionState := (
Expand Down
21 changes: 21 additions & 0 deletions plc-kfe-motion/kfe_motion/POUs/PRG_OTHER.TcPOU
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4022.18">
<POU Name="PRG_OTHER" Id="{404f3e80-89c9-4363-9ece-c8d5a2e49981}" SpecialFunc="None">
<Declaration><![CDATA[PROGRAM PRG_OTHER
// A Program for implementing devices with minimal interaction.
VAR
{attribute 'pytmc' := 'pv: PC1K0:XTES:FSW'}
{attribute 'TcLinkTo' := '.bFlowOk := TIIB[IM1K0-EL1004]^Channel 1^Input'}
fbPC1K0FlowSwitch : FB_XTES_Flowswitch;

{attribute 'pytmc' := 'pv: PC1K4:XTES:FSW'}
{attribute 'TcLinkTo' := '.bFlowOk := TIIB[ST1K4-EL1004-E5]^Channel 2^Input'}
fbPC1K4FlowSwitch : FB_XTES_Flowswitch;
END_VAR
]]></Declaration>
<Implementation>
<ST><![CDATA[fbPC1K0FlowSwitch();
fbPC1K4FlowSwitch();]]></ST>
</Implementation>
</POU>
</TcPlcObject>
3 changes: 2 additions & 1 deletion plc-kfe-motion/kfe_motion/POUs/PRG_PF1K0_WFS.TcPOU
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ VAR
.fbThermoCouple2.bError := TIIB[PF1K0-EL3314]^TC Inputs Channel 2^Status^Error;
.fbThermoCouple2.bUnderrange := TIIB[PF1K0-EL3314]^TC Inputs Channel 2^Status^Underrange;
.fbThermoCouple2.bOverrange := TIIB[PF1K0-EL3314]^TC Inputs Channel 2^Status^Overrange;
.fbThermoCouple2.iRaw := TIIB[PF1K0-EL3314]^TC Inputs Channel 2^Value'}
.fbThermoCouple2.iRaw := TIIB[PF1K0-EL3314]^TC Inputs Channel 2^Value;
.fbFlowSwitch.bFlowOk := TIIB[SL2K0-EL1004-E12]^Channel 1^Input'} // shares same cooling loop as SL2K0
fbPF1K0: FB_WFS;
fbStateSetup: FB_StateSetupHelper;
stDefault: ST_PositionState := (
Expand Down
5 changes: 3 additions & 2 deletions plc-kfe-motion/kfe_motion/POUs/PRG_SL1K0_POWER.TcPOU
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ VAR
.RTD_Bottom_2.bError := TIIB[SL1K0-EL3202-E9]^RTD Inputs Channel 2^Status^Error;
.RTD_Bottom_2.bUnderrange := TIIB[SL1K0-EL3202-E9]^RTD Inputs Channel 2^Status^Underrange;
.RTD_Bottom_2.bOverrange := TIIB[SL1K0-EL3202-E9]^RTD Inputs Channel 2^Status^Overrange;
.AptArrayStatus := 'TIIB[PMPS_PRE]^IO Outputs^AptArrayStatus^AptArrayStatus[1];
.AptArrayReq := 'TIIB[PMPS_PRE]^IO Inputs^AptArrayReq^AptArrayReq[1]'}
.AptArrayStatus := TIIB[PMPS_PRE]^IO Outputs^AptArrayStatus^AptArrayStatus[1];
.AptArrayReq := TIIB[PMPS_PRE]^IO Inputs^AptArrayReq^AptArrayReq[1];
.fbFlowSwitch.bFlowOk := TIIB[IM1K0-EL1004]^Channel 3^Input'}
fbSL1K0: FB_SLITS_POWER;
//{attribute 'TcLinkTo' := 'TIIB[PMPS_PRE]^IO Outputs^AptArrayStatus'}
{attribute 'pytmc' := '
Expand Down
5 changes: 3 additions & 2 deletions plc-kfe-motion/kfe_motion/POUs/PRG_SL2K0_POWER.TcPOU
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ VAR
.RTD_Bottom_2.bError := TIIB[SL2K0-EL3202-E11]^RTD Inputs Channel 2^Status^Error;
.RTD_Bottom_2.bUnderrange := TIIB[SL2K0-EL3202-E11]^RTD Inputs Channel 2^Status^Underrange;
.RTD_Bottom_2.bOverrange := TIIB[SL2K0-EL3202-E11]^RTD Inputs Channel 2^Status^Overrange;
.AptArrayStatus := 'TIIB[PMPS_PRE]^IO Outputs^AptArrayStatus^AptArrayStatus[2];
.AptArrayReq := 'TIIB[PMPS_PRE]^IO Inputs^AptArrayReq^AptArrayReq[2]'}
.AptArrayStatus := TIIB[PMPS_PRE]^IO Outputs^AptArrayStatus^AptArrayStatus[2];
.AptArrayReq := TIIB[PMPS_PRE]^IO Inputs^AptArrayReq^AptArrayReq[2];
.fbFlowSwitch.bFlowOk := TIIB[SL2K0-EL1004-E12]^Channel 1^Input'}
fbSL2K0: FB_SLITS_POWER;
//GET PMP Move Ok bit
// Default True until it is properly linked to PMPS bit
Expand Down
9 changes: 9 additions & 0 deletions plc-kfe-motion/kfe_motion/POUs/PRG_ST1K4_TEST.TcPOU
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ VAR
io: io
'}
bST3K4_auto: BOOL := TRUE;

{attribute 'pytmc' := '
pv: ST1K4:TEST:FSW
'}
{attribute 'TcLinkTo' := '.bFlowOk := TIIB[ST1K4-EL1004-E5]^Channel 1^Input'}
fbFlowSwitch: FB_XTES_Flowswitch;

END_VAR

]]></Declaration>
Expand Down Expand Up @@ -73,6 +80,8 @@ IF bST3K4_auto THEN
eEnumSet := ENUM_EpicsInOut.OUT;
END_IF
END_IF

fbFlowSwitch();
]]></ST>
</Implementation>
</POU>
Expand Down
5 changes: 4 additions & 1 deletion plc-kfe-motion/kfe_motion/kfe_motion.plcproj
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@
<Compile Include="POUs\PRG_IM2K0_XTES.TcPOU">
<SubType>Code</SubType>
</Compile>
<Compile Include="POUs\PRG_OTHER.TcPOU">
<SubType>Code</SubType>
</Compile>
<Compile Include="POUs\PRG_PF1K0_WFS.TcPOU">
<SubType>Code</SubType>
</Compile>
Expand Down Expand Up @@ -159,7 +162,7 @@
<Resolution>LCLS General, 2.9.1 (SLAC)</Resolution>
</PlaceholderResolution>
<PlaceholderResolution Include="lcls-twincat-common-components">
<Resolution>lcls-twincat-common-components, 3.0.1 (SLAC)</Resolution>
<Resolution>lcls-twincat-common-components, 3.3.0 (SLAC)</Resolution>
</PlaceholderResolution>
<PlaceholderResolution Include="lcls-twincat-motion">
<Resolution>lcls-twincat-motion, 4.0.4 (SLAC)</Resolution>
Expand Down
Loading