Skip to content

Commit

Permalink
editing comment of li2k4
Browse files Browse the repository at this point in the history
  • Loading branch information
tongju12 committed Aug 29, 2024
1 parent 380d109 commit 0f51f02
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 34 deletions.
2 changes: 1 addition & 1 deletion plc-tmo-motion/_Config/PLC/tmo_motion.xti
Original file line number Diff line number Diff line change
Expand Up @@ -1260,7 +1260,7 @@ External Setpoint Generation:
</DataType>
</DataTypes>
<Project GUID="{9DD0BA81-4A92-4D5E-8BD9-E101C02702D4}" Name="tmo_motion" PrjFilePath="..\..\tmo_motion\tmo_motion.plcproj" TmcFilePath="..\..\tmo_motion\tmo_motion.tmc" ReloadTmc="true" AmsPort="851" FileArchiveSettings="#x000e" SymbolicMapping="true">
<Instance Id="#x08502000" TcSmClass="TComPlcObjDef" KeepUnrestoredLinks="2" TmcPath="tmo_motion\tmo_motion.tmc" TmcHash="{2A171A47-435F-81F5-D78A-688DB5203B14}">
<Instance Id="#x08502000" TcSmClass="TComPlcObjDef" KeepUnrestoredLinks="2" TmcPath="tmo_motion\tmo_motion.tmc" TmcHash="{5EA336A7-BBC1-CAA7-3118-CDD119B4865E}">
<Name>tmo_motion Instance</Name>
<CLSID ClassFactory="TcPlc30">{08500001-0000-0000-F000-000000000064}</CLSID>
<Vars VarGrpType="1">
Expand Down
7 changes: 4 additions & 3 deletions plc-tmo-motion/tmo_motion/POUs/PRG_LI2K4_IP1.TcPOU
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,10 @@ aLI2K4YStates[ENUM_LaserCoupling_States.Mirror1].stPMPS.sPmpsState := 'LI2K4:IP1
aLI2K4XStates[ENUM_LaserCoupling_States.OUT].stPMPS.sPmpsState := 'LI2K4:IP1-OUT';
aLI2K4XStates[ENUM_LaserCoupling_States.Mirror1].stPMPS.sPmpsState := 'LI2K4:IP1-MIRROR1';
//LI2K4 EPS condition: OUT->In move Y then move X + IN->OUT move X thenm move Y
//Y only can move up and down when X is OUT
(* The LI2K4 sequence mover is insteded to move as follows:
When moving from OUT to MIRROR1, first Y is moved, then once Y movement is complete, X is moved.
When moving from MIRROR1 to OUT, first X is moved, then once X movement is complete, Y is moved.
*)
EPS_LI2K4Y_Positive(eps:=Main.M45.stEPSForwardEnable);
EPS_LI2K4Y_Positive.setBit(nBits := 0, bValue:= Main.M46.stAxisStatus.fActPosition > -0.3 OR Main.M45.stAxisStatus.fActPosition < 82);
EPS_LI2K4Y_Negative(eps:=Main.M45.stEPSBackwardEnable);
Expand Down
75 changes: 45 additions & 30 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="{2A171A47-435F-81F5-D78A-688DB5203B14}" 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="{5EA336A7-BBC1-CAA7-3118-CDD119B4865E}" GeneratedBy="TwinCAT XAE Plc">
<DataTypes>
<DataType>
<Name Namespace="LCLS_General">ST_System</Name>
Expand Down Expand Up @@ -19263,6 +19263,21 @@ contributing fast faults, unless the FFO is currently vetoed.
</Property>
</Properties>
</DataType>
<DataType>
<Name>USINT (USINT#1..255)</Name>
<BitSize>8</BitSize>
<BaseType>USINT</BaseType>
<Properties>
<Property>
<Name>LowerBorder</Name>
<Value>1</Value>
</Property>
<Property>
<Name>UpperBorder</Name>
<Value>255</Value>
</Property>
</Properties>
</DataType>
<DataType>
<Name Namespace="lcls_twincat_common_components.lcls_twincat_motion.Tc3_IPCDiag">E_IPCDiag_Datatype</Name>
<Comment> parameter datatype 1..15</Comment>
Expand Down Expand Up @@ -20871,7 +20886,7 @@ contributing fast faults, unless the FFO is currently vetoed.
</Parameter>
<Local>
<Name>nParameterIdx</Name>
<Type>USINT (1..255)</Type>
<Type>USINT (USINT#1..255)</Type>
<BitSize>8</BitSize>
</Local>
<Local>
Expand Down Expand Up @@ -24732,7 +24747,7 @@ contributing fast faults, unless the FFO is currently vetoed.
</Method>
</DataType>
<DataType>
<Name>UINT (1..GVL_Param_TcUnit.MaxNumberOfTestsForEachTestSuite)</Name>
<Name>UINT (UINT#1..GVL_Param_TcUnit.MaxNumberOfTestsForEachTestSuite)</Name>
<BitSize>16</BitSize>
<BaseType>UINT</BaseType>
<Properties>
Expand All @@ -24746,21 +24761,6 @@ contributing fast faults, unless the FFO is currently vetoed.
</Property>
</Properties>
</DataType>
<DataType>
<Name>UINT (1..GVL_Param_TcUnit.MaxNumberOfTestSuites)</Name>
<BitSize>16</BitSize>
<BaseType>UINT</BaseType>
<Properties>
<Property>
<Name>LowerBorder</Name>
<Value>1</Value>
</Property>
<Property>
<Name>UpperBorder</Name>
<Value>1000</Value>
</Property>
</Properties>
</DataType>
<DataType>
<Name Namespace="lcls_twincat_common_components.lcls_twincat_motion.PMPS.TcUnit">FB_AdsTestResultLogger</Name>
<Comment>
Expand All @@ -24778,7 +24778,7 @@ contributing fast faults, unless the FFO is currently vetoed.
</SubItem>
<SubItem>
<Name>PrintingTestSuiteResultNumber</Name>
<Type>UINT (1..GVL_Param_TcUnit.MaxNumberOfTestSuites)</Type>
<Type>UINT (UINT#1..GVL_Param_TcUnit.MaxNumberOfTestSuites)</Type>
<BitSize>16</BitSize>
<BitOffs>192</BitOffs>
</SubItem>
Expand Down Expand Up @@ -24816,12 +24816,12 @@ contributing fast faults, unless the FFO is currently vetoed.
</Local>
<Local>
<Name>TestsInTestSuiteCounter</Name>
<Type>UINT (1..GVL_Param_TcUnit.MaxNumberOfTestsForEachTestSuite)</Type>
<Type>UINT (UINT#1..GVL_Param_TcUnit.MaxNumberOfTestsForEachTestSuite)</Type>
<BitSize>16</BitSize>
</Local>
<Local>
<Name>MaxNumberOfTestsToPrint</Name>
<Type>UINT (1..GVL_Param_TcUnit.MaxNumberOfTestsForEachTestSuite)</Type>
<Type>UINT (UINT#1..GVL_Param_TcUnit.MaxNumberOfTestsForEachTestSuite)</Type>
<BitSize>16</BitSize>
</Local>
<Local>
Expand Down Expand Up @@ -25754,7 +25754,7 @@ contributing fast faults, unless the FFO is currently vetoed.
</SubItem>
<SubItem>
<Name>WritingTestSuiteResultNumber</Name>
<Type>UINT (1..GVL_Param_TcUnit.MaxNumberOfTestSuites)</Type>
<Type>UINT (UINT#1..GVL_Param_TcUnit.MaxNumberOfTestSuites)</Type>
<BitSize>16</BitSize>
<BitOffs>530752</BitOffs>
</SubItem>
Expand Down Expand Up @@ -26156,6 +26156,21 @@ contributing fast faults, unless the FFO is currently vetoed.
</Property>
</Properties>
</DataType>
<DataType>
<Name>UINT (1..GVL_Param_TcUnit.MaxNumberOfTestsForEachTestSuite)</Name>
<BitSize>16</BitSize>
<BaseType>UINT</BaseType>
<Properties>
<Property>
<Name>LowerBorder</Name>
<Value>1</Value>
</Property>
<Property>
<Name>UpperBorder</Name>
<Value>100</Value>
</Property>
</Properties>
</DataType>
<DataType>
<Name Namespace="lcls_twincat_common_components.lcls_twincat_motion.PMPS.TcUnit">U_ExpectedOrActual</Name>
<BitSize>4096</BitSize>
Expand Down Expand Up @@ -27779,7 +27794,7 @@ contributing fast faults, unless the FFO is currently vetoed.
</Local>
<Local>
<Name>NumberOfTestsToAnalyse</Name>
<Type>UINT (1..GVL_Param_TcUnit.MaxNumberOfTestSuites)</Type>
<Type>UINT (UINT#1..GVL_Param_TcUnit.MaxNumberOfTestSuites)</Type>
<BitSize>16</BitSize>
</Local>
<Local>
Expand Down Expand Up @@ -29314,7 +29329,7 @@ contributing fast faults, unless the FFO is currently vetoed.
</Local>
<Local>
<Name>NumberOfTestsToAnalyse</Name>
<Type>UINT (1..GVL_Param_TcUnit.MaxNumberOfTestSuites)</Type>
<Type>UINT (UINT#1..GVL_Param_TcUnit.MaxNumberOfTestSuites)</Type>
<BitSize>16</BitSize>
</Local>
</Method>
Expand Down Expand Up @@ -29899,7 +29914,7 @@ contributing fast faults, unless the FFO is currently vetoed.
</Local>
<Local>
<Name>NumberOfTestsToAnalyse</Name>
<Type>UINT (1..GVL_Param_TcUnit.MaxNumberOfTestSuites)</Type>
<Type>UINT (UINT#1..GVL_Param_TcUnit.MaxNumberOfTestSuites)</Type>
<BitSize>16</BitSize>
</Local>
</Method>
Expand Down Expand Up @@ -30347,7 +30362,7 @@ contributing fast faults, unless the FFO is currently vetoed.
</Local>
<Local>
<Name>NumberOfTestsToAnalyse</Name>
<Type>UINT (1..GVL_Param_TcUnit.MaxNumberOfTestSuites)</Type>
<Type>UINT (UINT#1..GVL_Param_TcUnit.MaxNumberOfTestSuites)</Type>
<BitSize>16</BitSize>
</Local>
</Method>
Expand Down Expand Up @@ -30721,7 +30736,7 @@ contributing fast faults, unless the FFO is currently vetoed.
</Local>
<Local>
<Name>NumberOfTestsToAnalyse</Name>
<Type>UINT (1..GVL_Param_TcUnit.MaxNumberOfTestSuites)</Type>
<Type>UINT (UINT#1..GVL_Param_TcUnit.MaxNumberOfTestSuites)</Type>
<BitSize>16</BitSize>
</Local>
</Method>
Expand Down Expand Up @@ -100428,7 +100443,7 @@ second version of targets paddle 2</Comment>
We do this by defining an array, in where we can see which current TEST_ORDERED() is the one to be handled right now.
The below array is only used for TEST_ORDERED()-tests. </Comment>
<BitSize>16000</BitSize>
<BaseType>UINT (1..GVL_Param_TcUnit.MaxNumberOfTestsForEachTestSuite)</BaseType>
<BaseType>UINT (UINT#1..GVL_Param_TcUnit.MaxNumberOfTestsForEachTestSuite)</BaseType>
<ArrayInfo>
<LBound>1</LBound>
<Elements>1000</Elements>
Expand Down Expand Up @@ -104580,11 +104595,11 @@ second version of targets paddle 2</Comment>
</Property>
<Property>
<Name>ChangeDate</Name>
<Value>2024-08-28T15:32:09</Value>
<Value>2024-08-29T14:17:28</Value>
</Property>
<Property>
<Name>GeneratedCodeSize</Name>
<Value>1228800</Value>
<Value>1282048</Value>
</Property>
<Property>
<Name>GlobalDataSize</Name>
Expand Down

0 comments on commit 0f51f02

Please sign in to comment.