Skip to content

Commit

Permalink
fixing sp1k4-atten-RTD issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tongju12 committed Nov 2, 2023
1 parent 78a3b18 commit 0fc1fe1
Show file tree
Hide file tree
Showing 5 changed files with 2,890 additions and 2,730 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<Box File="SP1K4-TL2-EL1124.xti" Id="14">
<EtherCAT PortABoxInfo="#x0100000d"/>
</Box>
<Box File="SP1K4- EL3202-E9A.xti" Id="257">
<Box File="SP1K4-EL3202-E9A.xti" Id="257">
<EtherCAT PortABoxInfo="#x0100000e"/>
</Box>
<Box File="SP1K4-EL3202-E9B.xti" Id="258">
Expand Down
10 changes: 10 additions & 0 deletions plc-tmo-motion/_Config/PLC/tmo_motion.xti
Original file line number Diff line number Diff line change
Expand Up @@ -12765,6 +12765,16 @@ External Setpoint Generation:
<Link VarA="PlcTask Inputs^Main.M44.bLimitBackwardEnable" VarB="STM Status^Status^Digital input 2" AutoLink="true"/>
<Link VarA="PlcTask Inputs^Main.M44.bLimitForwardEnable" VarB="STM Status^Status^Digital input 1" AutoLink="true"/>
</OwnerB>
<OwnerB Name="TIID^Device 1 (EtherCAT)^Power (EK1200)^PLC Junction 2 (EK1122)^PLC Coupler 2 (EK1100)^PLC Junction 9 (EK1122)^SP1K4 Top Rail (EK1100)^SP1K4-EL3202-E9A">
<Link VarA="PlcTask Inputs^PRG_SP1K4.SP1K4_ATT_RTD_01.bError" VarB="RTD Inputs Channel 1^Status^Error" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_SP1K4.SP1K4_ATT_RTD_01.bOverrange" VarB="RTD Inputs Channel 1^Status^Overrange" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_SP1K4.SP1K4_ATT_RTD_01.bUnderrange" VarB="RTD Inputs Channel 1^Status^Underrange" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_SP1K4.SP1K4_ATT_RTD_01.iRaw" VarB="RTD Inputs Channel 1^Value" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_SP1K4.SP1K4_ATT_RTD_02.bError" VarB="RTD Inputs Channel 2^Status^Error" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_SP1K4.SP1K4_ATT_RTD_02.bOverrange" VarB="RTD Inputs Channel 2^Status^Overrange" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_SP1K4.SP1K4_ATT_RTD_02.bUnderrange" VarB="RTD Inputs Channel 2^Status^Underrange" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_SP1K4.SP1K4_ATT_RTD_02.iRaw" VarB="RTD Inputs Channel 2^Value" AutoLink="true"/>
</OwnerB>
<OwnerB Name="TIID^Device 1 (EtherCAT)^Power (EK1200)^PLC Junction 2 (EK1122)^PLC Coupler 2 (EK1100)^PLC Junction 9 (EK1122)^SP1K4 Top Rail (EK1100)^SP1K4-TL1-EL1124">
<Link VarA="PlcTask Inputs^PRG_SP1K4.bTL1High" VarB="Channel 1^Input" AutoLink="true"/>
<Link VarA="PlcTask Inputs^PRG_SP1K4.bTL1Low" VarB="Channel 2^Input" AutoLink="true"/>
Expand Down
6 changes: 3 additions & 3 deletions plc-tmo-motion/tmo_motion/POUs/PRG_SP1K4.TcPOU
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<TcPlcObject Version="1.1.0.1" ProductVersion="3.1.4022.18">
<POU Name="PRG_SP1K4" Id="{cb7a4ca3-c4c8-4f3d-892b-f36c5516f8fa}" SpecialFunc="None">
<Declaration><![CDATA[ PROGRAM PRG_SP1K4
<Declaration><![CDATA[ PROGRAM PRG_SP1K4
VAR
fbMotionLensX: FB_MotionStage;
fbMotionFoilX: FB_MotionStage;
Expand Down Expand Up @@ -431,8 +431,8 @@ Main.M43.bLimitForwardEnable := True;
GVL_TcGVL.eSP1K4FZP := zp_enumGet;
GVL_TcGVL.eSP1K4ATT := att_enumGet;
SP1K4_ATT_RTD_01(fResolution:=0.01);
SP1K4_ATT_RTD_02(fResolution:=0.01);
]]></ST>
</Implementation>
</POU>
Expand Down
Loading

0 comments on commit 0fc1fe1

Please sign in to comment.