Skip to content

Commit

Permalink
adding sp1k4 att limit
Browse files Browse the repository at this point in the history
  • Loading branch information
tongju12 committed Aug 7, 2023
1 parent 5c126fe commit 2ab11d1
Show file tree
Hide file tree
Showing 3 changed files with 77,244 additions and 757 deletions.
4 changes: 4 additions & 0 deletions plc-tmo-motion/_Config/PLC/tmo_motion.xti
Original file line number Diff line number Diff line change
Expand Up @@ -9434,6 +9434,10 @@ External Setpoint Generation:
<Link VarA="PlcTask Inputs^Main.M36.bLimitBackwardEnable" VarB="STM Status^Status^Digital input 2" AutoLink="true"/>
<Link VarA="PlcTask Inputs^Main.M36.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)^FoilY-EL7041">
<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-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
21 changes: 12 additions & 9 deletions plc-tmo-motion/tmo_motion/GVLs/Main.TcGVL
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ VAR_GLOBAL
nEnableMode:=ENUM_StageEnableMode.DURING_MOTION); // Zone Plate Z
{attribute 'TcLinkTo' := '.bLimitForwardEnable:=TIIB[YagX-EL7041]^STM Status^Status^Digital input 2;
.bLimitBackwardEnable:=TIIB[YagX-EL7041]^STM Status^Status^Digital input 1'}
{attribute 'pytmc' := '
pv: TMO:SPEC:MMS:06
'}
Expand Down Expand Up @@ -265,26 +265,29 @@ VAR_GLOBAL
bPowerSelf:=TRUE,
nEnableMode:=ENUM_StageEnableMode.DURING_MOTION,
nHomingMode := ENUM_EpicsHomeCmd.ABSOLUTE_SET); // Thorlabs2
//thorlab-lenX
{attribute 'pytmc' := '
//thorlab-lenX
{attribute 'pytmc' := '
pv: TMO:SPEC:MMS:12
'}
M43 : DUT_MotionStage := (
bHardwareEnable:=TRUE,
bPowerSelf:=TRUE,
nEnableMode:=ENUM_StageEnableMode.DURING_MOTION,
nHomingMode := ENUM_EpicsHomeCmd.ABSOLUTE_SET);
//FOIL-Y
{attribute 'pytmc' := '
nHomingMode := ENUM_EpicsHomeCmd.ABSOLUTE_SET);
//FOIL-Y
{attribute 'TcLinkTo' := '.bLimitForwardEnable:=TIIB[FoilY-EL7041]^STM Status^Status^Digital input 1;
.bLimitBackwardEnable:=TIIB[FoilY-EL7041]^STM Status^Status^Digital input 2'}
{attribute 'pytmc' := '
pv: TMO:SPEC:MMS:13
'}
M44 : DUT_MotionStage := (
bHardwareEnable:=TRUE,
bPowerSelf:=TRUE,
nEnableMode:=ENUM_StageEnableMode.DURING_MOTION,
nHomingMode := ENUM_EpicsHomeCmd.ABSOLUTE_SET);
nHomingMode := ENUM_EpicsHomeCmd.ABSOLUTE_SET);
END_VAR]]></Declaration>
</GVL>
</TcPlcObject>
77,976 changes: 77,228 additions & 748 deletions plc-tmo-motion/tmo_motion/tmo_motion.tmc

Large diffs are not rendered by default.

0 comments on commit 2ab11d1

Please sign in to comment.