Skip to content

Commit

Permalink
adding sp1k4 fzp and solid att motor name
Browse files Browse the repository at this point in the history
  • Loading branch information
tongju12 committed Aug 8, 2023
1 parent 57b8bd1 commit 7194062
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 34 deletions.
52 changes: 35 additions & 17 deletions plc-tmo-motion/tmo_motion/GVLs/Main.TcGVL
Original file line number Diff line number Diff line change
Expand Up @@ -162,131 +162,149 @@ VAR_GLOBAL
{attribute 'pytmc' := '
pv: TMO:SPEC:MMS:01
'}
// Lens X (not use it after July 2023)
M32 : DUT_MotionStage := (
bHardwareEnable:=TRUE,
bPowerSelf:=TRUE,
nEnableMode:=ENUM_StageEnableMode.DURING_MOTION,
nHomingMode := ENUM_EpicsHomeCmd.ABSOLUTE_SET); // Lens X
nHomingMode := ENUM_EpicsHomeCmd.ABSOLUTE_SET);
{attribute 'TcLinkTo' := '.bLimitForwardEnable:=TIIB[FoilX-EL7041]^STM Status^Status^Digital input 1;
.bLimitBackwardEnable:=TIIB[FoilX-EL7041]^STM Status^Status^Digital input 2'}
.bLimitBackwardEnable:=TIIB[FoilX-EL7041]^STM Status^Status^Digital input 2'
.nRawEncoderULINT:=TIIB[SP1K4-EL5042-E2]^FB Inputs Channel 2^Position'}
{attribute 'pytmc' := '
pv: TMO:SPEC:MMS:02
'}
// solid atten X(Foil X)
M33: DUT_MotionStage := (
bHardwareEnable:=TRUE,
bPowerSelf:=TRUE,
nEnableMode:=ENUM_StageEnableMode.DURING_MOTION,
nHomingMode := ENUM_EpicsHomeCmd.ABSOLUTE_SET); // AL Foil X
nHomingMode := ENUM_EpicsHomeCmd.ABSOLUTE_SET,
sName := 'TMO:SPEC:MMS:02');
{attribute 'TcLinkTo' := '.bLimitForwardEnable:=TIIB[ZonePlateX-EL7041]^STM Status^Status^Digital input 2;
.bLimitBackwardEnable:=TIIB[ZonePlateX-EL7041]^STM Status^Status^Digital input 1'
.nRawEncoderULINT:=TIIB[SP1K4-EL5042-E1]^FB Inputs Channel 1^Position'}
{attribute 'pytmc' := '
pv: TMO:SPEC:MMS:03
'}
// Zone Plate X
M34 : DUT_MotionStage := (
bHardwareEnable:=TRUE,
bPowerSelf:=TRUE,
nEnableMode:=ENUM_StageEnableMode.DURING_MOTION); // Zone Plate X
nEnableMode:=ENUM_StageEnableMode.DURING_MOTION,
sName := 'TMO:SPEC:MMS:03');
{attribute 'TcLinkTo' := '.bLimitForwardEnable:=TIIB[ZonePlateY-EL7041]^STM Status^Status^Digital input 2;
.bLimitBackwardEnable:=TIIB[ZonePlateY-EL7041]^STM Status^Status^Digital input 1';
.nRawEncoderULINT:=TIIB[SP1K4-EL5042-E1]^FB Inputs Channel 2^Position'}
{attribute 'pytmc' := '
pv: TMO:SPEC:MMS:04
'}
// Zone Plate Y
M35 : DUT_MotionStage := (
bHardwareEnable:=TRUE,
bPowerSelf:=TRUE,
nEnableMode:=ENUM_StageEnableMode.DURING_MOTION); // Zone Plate Y
nEnableMode:=ENUM_StageEnableMode.DURING_MOTION,
sName := 'TMO:SPEC:MMS:04');
{attribute 'TcLinkTo' := '.bLimitForwardEnable:=TIIB[ZonePlateZ-EL7041]^STM Status^Status^Digital input 1;
.bLimitBackwardEnable:=TIIB[ZonePlateZ-EL7041]^STM Status^Status^Digital input 2';
.nRawEncoderULINT:=TIIB[SP1K4-EL5042-E2]^FB Inputs Channel 1^Position'}
{attribute 'pytmc' := '
pv: TMO:SPEC:MMS:05
'}
// Zone Plate Z
M36 : DUT_MotionStage := (
bHardwareEnable:=TRUE,
bPowerSelf:=TRUE,
nEnableMode:=ENUM_StageEnableMode.DURING_MOTION); // Zone Plate Z
nEnableMode:=ENUM_StageEnableMode.DURING_MOTION,
sName := 'TMO:SPEC:MMS:05');
{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
'}
// Yag X
M37 : DUT_MotionStage := (
bHardwareEnable:=TRUE,
bPowerSelf:=TRUE,
nEnableMode:=ENUM_StageEnableMode.DURING_MOTION,
nHomingMode := ENUM_EpicsHomeCmd.ABSOLUTE_SET);; // Yag X
nHomingMode := ENUM_EpicsHomeCmd.ABSOLUTE_SET);
{attribute 'TcLinkTo' := '.bLimitForwardEnable:=TIIB[YagY-EL7041]^STM Status^Status^Digital input 1;
.bLimitBackwardEnable:=TIIB[YagY-EL7041]^STM Status^Status^Digital input 2'}
{attribute 'pytmc' := '
pv: TMO:SPEC:MMS:07
'}
// Yag Y
M38 : DUT_MotionStage := (
bHardwareEnable:=TRUE,
bPowerSelf:=TRUE,
nEnableMode:=ENUM_StageEnableMode.DURING_MOTION,
nHomingMode := ENUM_EpicsHomeCmd.ABSOLUTE_SET); // Yag Y
nHomingMode := ENUM_EpicsHomeCmd.ABSOLUTE_SET);
{attribute 'TcLinkTo' := '.bLimitForwardEnable:=TIIB[YagZ-EL7041]^STM Status^Status^Digital input 2;
.bLimitBackwardEnable:=TIIB[YagZ-EL7041]^STM Status^Status^Digital input 1'}
{attribute 'pytmc' := '
pv: TMO:SPEC:MMS:08
'}
// Yag Z
M39 : DUT_MotionStage := (
bHardwareEnable:=TRUE,
bPowerSelf:=TRUE,
nEnableMode:=ENUM_StageEnableMode.DURING_MOTION,
nHomingMode := ENUM_EpicsHomeCmd.ABSOLUTE_SET); // Yag Z
nHomingMode := ENUM_EpicsHomeCmd.ABSOLUTE_SET);
{attribute 'TcLinkTo' := '.bLimitForwardEnable:=TIIB[YagTheta-EL7041]^STM Status^Status^Digital input 1;
.bLimitBackwardEnable:=TIIB[YagTheta-EL7041]^STM Status^Status^Digital input 2'}
{attribute 'pytmc' := '
pv: TMO:SPEC:MMS:09
'}
// Yag Theta
M40 : DUT_MotionStage := (
bHardwareEnable:=TRUE,
bPowerSelf:=TRUE,
nEnableMode:=ENUM_StageEnableMode.DURING_MOTION,
nHomingMode := ENUM_EpicsHomeCmd.ABSOLUTE_SET); // Yag Theta
nHomingMode := ENUM_EpicsHomeCmd.ABSOLUTE_SET);
{attribute 'pytmc' := '
pv: TMO:SPEC:MMS:10
'}
// Thorlabs1
M41 : DUT_MotionStage := (
bHardwareEnable:=TRUE,
bPowerSelf:=TRUE,
nEnableMode:=ENUM_StageEnableMode.DURING_MOTION,
nHomingMode := ENUM_EpicsHomeCmd.ABSOLUTE_SET); // Thorlabs1
nHomingMode := ENUM_EpicsHomeCmd.ABSOLUTE_SET);
{attribute 'pytmc' := '
pv: TMO:SPEC:MMS:11
'}
// Thorlabs2
M42 : DUT_MotionStage := (
bHardwareEnable:=TRUE,
bPowerSelf:=TRUE,
nEnableMode:=ENUM_StageEnableMode.DURING_MOTION,
nHomingMode := ENUM_EpicsHomeCmd.ABSOLUTE_SET); // Thorlabs2
nHomingMode := ENUM_EpicsHomeCmd.ABSOLUTE_SET);
//thorlab-lenX
{attribute 'pytmc' := '
pv: TMO:SPEC:MMS:12
'}
//thorlab-lenX
M43 : DUT_MotionStage := (
bHardwareEnable:=TRUE,
bPowerSelf:=TRUE,
nEnableMode:=ENUM_StageEnableMode.DURING_MOTION,
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 'TcLinkTo' := '.bLimitForwardEnable:=TIIB[FoilY-EL7041]^STM Status^Status^Digital input 1;
.bLimitBackwardEnable:=TIIB[FoilY-EL7041]^STM Status^Status^Digital input 2';
.nRawEncoderULINT:=TIIB[SP1K4-EL5042-E7]^FB Inputs Channel 1^Position'}
{attribute 'pytmc' := '
pv: TMO:SPEC:MMS:13
'}
//Solid att Y(FOIL-Y)
M44 : DUT_MotionStage := (
bHardwareEnable:=TRUE,
bPowerSelf:=TRUE,
nEnableMode:=ENUM_StageEnableMode.DURING_MOTION,
nHomingMode := ENUM_EpicsHomeCmd.ABSOLUTE_SET);
nHomingMode := ENUM_EpicsHomeCmd.ABSOLUTE_SET,
sName := 'TMO:SPEC:MMS:13');
END_VAR]]></Declaration>
</GVL>
Expand Down
54 changes: 37 additions & 17 deletions plc-tmo-motion/tmo_motion/tmo_motion.tmc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<TcModuleClass xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.beckhoff.com/schemas/2009/05/TcModuleClass" Hash="{02255D21-1806-ED87-A7BB-328C74B83FB7}" GeneratedBy="TwinCAT XAE Plc">
<TcModuleClass xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.beckhoff.com/schemas/2009/05/TcModuleClass" Hash="{B793D80A-AA9E-744E-2567-C5D6094A4810}" GeneratedBy="TwinCAT XAE Plc">
<DataTypes>
<DataType>
<Name Namespace="LCLS_General">ST_System</Name>
Expand Down Expand Up @@ -78398,7 +78398,8 @@ TODO: is add all therest</Comment>
</Symbol>
<Symbol>
<Name>Main.M32</Name>
<Comment> SP1K4 14 Axes</Comment>
<Comment> SP1K4 14 Axes
Lens X (not use it after July 2023)</Comment>
<BitSize>25216</BitSize>
<BaseType Namespace="lcls_twincat_motion">DUT_MotionStage</BaseType>
<Default>
Expand Down Expand Up @@ -78434,7 +78435,7 @@ TODO: is add all therest</Comment>
</Symbol>
<Symbol>
<Name>Main.M33</Name>
<Comment> Lens X</Comment>
<Comment> solid atten X(Foil X)</Comment>
<BitSize>25216</BitSize>
<BaseType Namespace="lcls_twincat_motion">DUT_MotionStage</BaseType>
<Default>
Expand All @@ -78454,6 +78455,10 @@ TODO: is add all therest</Comment>
<Name>.nHomingMode</Name>
<Value>15</Value>
</SubItem>
<SubItem>
<Name>.sName</Name>
<String>TMO:SPEC:MMS:02</String>
</SubItem>
</Default>
<Properties>
<Property>
Expand All @@ -78475,7 +78480,7 @@ TODO: is add all therest</Comment>
</Symbol>
<Symbol>
<Name>Main.M34</Name>
<Comment> AL Foil X</Comment>
<Comment> Zone Plate X</Comment>
<BitSize>25216</BitSize>
<BaseType Namespace="lcls_twincat_motion">DUT_MotionStage</BaseType>
<Default>
Expand All @@ -78491,6 +78496,10 @@ TODO: is add all therest</Comment>
<Name>.nEnableMode</Name>
<Value>2</Value>
</SubItem>
<SubItem>
<Name>.sName</Name>
<String>TMO:SPEC:MMS:03</String>
</SubItem>
</Default>
<Properties>
<Property>
Expand All @@ -78512,7 +78521,7 @@ TODO: is add all therest</Comment>
</Symbol>
<Symbol>
<Name>Main.M35</Name>
<Comment> Zone Plate X</Comment>
<Comment> Zone Plate Y</Comment>
<BitSize>25216</BitSize>
<BaseType Namespace="lcls_twincat_motion">DUT_MotionStage</BaseType>
<Default>
Expand All @@ -78528,6 +78537,10 @@ TODO: is add all therest</Comment>
<Name>.nEnableMode</Name>
<Value>2</Value>
</SubItem>
<SubItem>
<Name>.sName</Name>
<String>TMO:SPEC:MMS:04</String>
</SubItem>
</Default>
<Properties>
<Property>
Expand All @@ -78549,7 +78562,7 @@ TODO: is add all therest</Comment>
</Symbol>
<Symbol>
<Name>Main.M36</Name>
<Comment> Zone Plate Y</Comment>
<Comment> Zone Plate Z</Comment>
<BitSize>25216</BitSize>
<BaseType Namespace="lcls_twincat_motion">DUT_MotionStage</BaseType>
<Default>
Expand All @@ -78565,6 +78578,10 @@ TODO: is add all therest</Comment>
<Name>.nEnableMode</Name>
<Value>2</Value>
</SubItem>
<SubItem>
<Name>.sName</Name>
<String>TMO:SPEC:MMS:05</String>
</SubItem>
</Default>
<Properties>
<Property>
Expand All @@ -78586,7 +78603,7 @@ TODO: is add all therest</Comment>
</Symbol>
<Symbol>
<Name>Main.M37</Name>
<Comment> Zone Plate Z</Comment>
<Comment> Yag X</Comment>
<BitSize>25216</BitSize>
<BaseType Namespace="lcls_twincat_motion">DUT_MotionStage</BaseType>
<Default>
Expand Down Expand Up @@ -78627,7 +78644,7 @@ TODO: is add all therest</Comment>
</Symbol>
<Symbol>
<Name>Main.M38</Name>
<Comment> Yag X</Comment>
<Comment> Yag Y</Comment>
<BitSize>25216</BitSize>
<BaseType Namespace="lcls_twincat_motion">DUT_MotionStage</BaseType>
<Default>
Expand Down Expand Up @@ -78668,7 +78685,7 @@ TODO: is add all therest</Comment>
</Symbol>
<Symbol>
<Name>Main.M39</Name>
<Comment> Yag Y</Comment>
<Comment> Yag Z</Comment>
<BitSize>25216</BitSize>
<BaseType Namespace="lcls_twincat_motion">DUT_MotionStage</BaseType>
<Default>
Expand Down Expand Up @@ -78709,7 +78726,7 @@ TODO: is add all therest</Comment>
</Symbol>
<Symbol>
<Name>Main.M40</Name>
<Comment> Yag Z</Comment>
<Comment> Yag Theta</Comment>
<BitSize>25216</BitSize>
<BaseType Namespace="lcls_twincat_motion">DUT_MotionStage</BaseType>
<Default>
Expand Down Expand Up @@ -78750,7 +78767,7 @@ TODO: is add all therest</Comment>
</Symbol>
<Symbol>
<Name>Main.M41</Name>
<Comment> Yag Theta</Comment>
<Comment> Thorlabs1</Comment>
<BitSize>25216</BitSize>
<BaseType Namespace="lcls_twincat_motion">DUT_MotionStage</BaseType>
<Default>
Expand Down Expand Up @@ -78786,7 +78803,7 @@ TODO: is add all therest</Comment>
</Symbol>
<Symbol>
<Name>Main.M42</Name>
<Comment> Thorlabs1</Comment>
<Comment> Thorlabs2</Comment>
<BitSize>25216</BitSize>
<BaseType Namespace="lcls_twincat_motion">DUT_MotionStage</BaseType>
<Default>
Expand Down Expand Up @@ -78822,8 +78839,7 @@ TODO: is add all therest</Comment>
</Symbol>
<Symbol>
<Name>Main.M43</Name>
<Comment> Thorlabs2
thorlab-lenX</Comment>
<Comment>thorlab-lenX</Comment>
<BitSize>25216</BitSize>
<BaseType Namespace="lcls_twincat_motion">DUT_MotionStage</BaseType>
<Default>
Expand Down Expand Up @@ -78859,7 +78875,7 @@ thorlab-lenX</Comment>
</Symbol>
<Symbol>
<Name>Main.M44</Name>
<Comment>FOIL-Y</Comment>
<Comment>Solid att Y(FOIL-Y)</Comment>
<BitSize>25216</BitSize>
<BaseType Namespace="lcls_twincat_motion">DUT_MotionStage</BaseType>
<Default>
Expand All @@ -78879,6 +78895,10 @@ thorlab-lenX</Comment>
<Name>.nHomingMode</Name>
<Value>15</Value>
</SubItem>
<SubItem>
<Name>.sName</Name>
<String>TMO:SPEC:MMS:13</String>
</SubItem>
</Default>
<Properties>
<Property>
Expand Down Expand Up @@ -79633,11 +79653,11 @@ thorlab-lenX</Comment>
</Property>
<Property>
<Name>ChangeDate</Name>
<Value>2023-08-07T12:10:07</Value>
<Value>2023-08-08T16:09:23</Value>
</Property>
<Property>
<Name>GeneratedCodeSize</Name>
<Value>847872</Value>
<Value>851968</Value>
</Property>
<Property>
<Name>GlobalDataSize</Name>
Expand Down

0 comments on commit 7194062

Please sign in to comment.