Single gear in and gear out support

-Add visualisation elements for support of single gear in
-Add visualisation elements for support of gear out
-Change AXES() action call to use GVL.iAxis as index of FOR loop
This commit is contained in:
Simon-Cooper
2019-06-04 11:46:53 +01:00
parent 20c07ff66e
commit 8e59e35241
9 changed files with 3611 additions and 240 deletions
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
+86
View File
@@ -913,6 +913,7 @@ External Setpoint Generation:
<Name>NC-Task 1 SVB</Name>
</SvbTask>
<Axis File="Axis 1.xti" Id="1"/>
<Axis File="Axis 2.xti" Id="2"/>
</NC>
</Motion>
<Plc>
@@ -1004,6 +1005,83 @@ External Setpoint Generation:
1: axis is a master axis
2: axis is master and slave
3: axis is a slave axis
]]>
</Comment>
</SubVar>
</Var>
<Var>
<Name>GVL.axes[2].inputs.bLimitFwd</Name>
<Comment>
<![CDATA[////Axis Inputs///////]]>
</Comment>
<Type>BOOL</Type>
</Var>
<Var>
<Name>GVL.axes[2].inputs.bLimitBwd</Name>
<Comment>
<![CDATA[Backward limit switch]]>
</Comment>
<Type>BOOL</Type>
</Var>
<Var>
<Name>GVL.axes[2].inputs.bHomeSensor</Name>
<Comment>
<![CDATA[Reference siganl for homing]]>
</Comment>
<Type>BOOL</Type>
</Var>
<Var>
<Name>GVL.axes[2].inputs.bEncLAtch</Name>
<Comment>
<![CDATA[Reference index signal from inc. enconder]]>
</Comment>
<Type>BOOL</Type>
</Var>
<Var>
<Name>GVL.axes[2].Axis.NcToPlc</Name>
<Type GUID="{6A65C767-34E5-42BF-AD87-E1A503EAC7BE}" Namespace="MC">NCTOPLC_AXIS_REF</Type>
<SubVar>
<Name>AxisState</Name>
<Comment>
<![CDATA[Present State Of The Axis Movement (continuous axis):
0 = INACTIVE: axis has no job
1 = RUNNING: axis is executing a motion job
2 = OVERRIDE_ZERO: axis is executing a job but override is zero
3 = PHASE_VELOCONST: axis is moving at constant velocity
4 = PHASE_ACCPOS: axis is accelerating
5 = PHASE_ACCNEG: axis is decelerating
Slaves only:
11 = PREPHASE: slave axis is in a motion pre-phase
12 = SYNCHRONIZING: slave axis is synchronizing
13 = SYNCHRONOUS: slave axis is moving synchronously
External Setpoint Generation:
41 = EXTSETGEN_MODE1: external setpoint generation active
42 = EXTSETGEN_MODE2: internal and external setpoint gen. active
]]>
</Comment>
</SubVar>
<SubVar>
<Name>HomingState</Name>
<Comment>
<![CDATA[Axis Homing Status:
0: idle
1: start homing
2: searching home switch
3: stopping on home switch
4: moving off home switch
5: searching sync pulse
6: stopping after homing
]]>
</Comment>
</SubVar>
<SubVar>
<Name>CoupleState</Name>
<Comment>
<![CDATA[Axis Coupling Status:
0: axis is a single axis (not coupled)
1: axis is a master axis
2: axis is master and slave
3: axis is a slave axis
]]>
</Comment>
</SubVar>
@@ -1022,6 +1100,10 @@ External Setpoint Generation:
<Name>GVL.axes[1].Axis.PlcToNc</Name>
<Type GUID="{63A84524-72E3-41C8-BEAB-4CCE44690A13}" Namespace="MC">PLCTONC_AXIS_REF</Type>
</Var>
<Var>
<Name>GVL.axes[2].Axis.PlcToNc</Name>
<Type GUID="{63A84524-72E3-41C8-BEAB-4CCE44690A13}" Namespace="MC">PLCTONC_AXIS_REF</Type>
</Var>
</Vars>
<TaskPouOids>
<TaskPouOid Prio="20" OTCID="#x08502041"/>
@@ -1038,6 +1120,10 @@ External Setpoint Generation:
<Link VarA="PlcTask Inputs^GVL.axes[1].Axis.NcToPlc" VarB="Outputs^ToPlc"/>
<Link VarA="PlcTask Outputs^GVL.axes[1].Axis.PlcToNc" VarB="Inputs^FromPlc"/>
</OwnerB>
<OwnerB Name="TINC^NC-Task 1 SAF^Axes^Axis 2">
<Link VarA="PlcTask Inputs^GVL.axes[2].Axis.NcToPlc" VarB="Outputs^ToPlc"/>
<Link VarA="PlcTask Outputs^GVL.axes[2].Axis.PlcToNc" VarB="Inputs^FromPlc"/>
</OwnerB>
</OwnerA>
</Mappings>
</TcSmProject>
+23 -3
View File
@@ -80,6 +80,11 @@
<v n="TextDefault">"bFwEnabled"</v>
<l n="LanguageTexts" t="ArrayList" />
</o>
<o>
<v n="TextID">"295"</v>
<v n="TextDefault">"bGeared"</v>
<l n="LanguageTexts" t="ArrayList" />
</o>
<o>
<v n="TextID">"42"</v>
<v n="TextDefault">"bHomed"</v>
@@ -160,6 +165,16 @@
<v n="TextDefault">"fVelocity"</v>
<l n="LanguageTexts" t="ArrayList" />
</o>
<o>
<v n="TextID">"507"</v>
<v n="TextDefault">"gearIn"</v>
<l n="LanguageTexts" t="ArrayList" />
</o>
<o>
<v n="TextID">"938"</v>
<v n="TextDefault">"gearOut"</v>
<l n="LanguageTexts" t="ArrayList" />
</o>
<o>
<v n="TextID">"26"</v>
<v n="TextDefault">"jog+/- reset stop home"</v>
@@ -175,6 +190,11 @@
<v n="TextDefault">"jogFw"</v>
<l n="LanguageTexts" t="ArrayList" />
</o>
<o>
<v n="TextID">"493"</v>
<v n="TextDefault">"masterGear"</v>
<l n="LanguageTexts" t="ArrayList" />
</o>
<o>
<v n="TextID">"99"</v>
<v n="TextDefault">"moveAbsolute"</v>
@@ -242,9 +262,9 @@
</o>
</l>
<l n="Languages" t="ArrayList" />
<v n="GuidInit">{d7005498-b4fa-4a56-8593-01efab31a22a}</v>
<v n="GuidReInit">{eb0543d6-24e5-4c0d-b12a-2b173f65a3e6}</v>
<v n="GuidExitX">{58c39072-3512-4d2d-9972-e2fb2a30b0d1}</v>
<v n="GuidInit">{946c8e6e-0a97-4d14-95ca-e8575d4b5b95}</v>
<v n="GuidReInit">{156c2383-e9aa-42c6-a12a-29764abb596e}</v>
<v n="GuidExitX">{cc9acff5-a471-4694-806c-07b8a247c706}</v>
</o>
</Data>
<TypeList>
+2 -2
View File
@@ -43,8 +43,8 @@ ERROR();]]></ST>
<Action Name="AXES" Id="{7eb32732-9b53-4934-8cd9-20ba971dd8ff}">
<Implementation>
<ST><![CDATA[
FOR i:=1 TO gvl.axisNum DO
aFBAxes[i](stAxisStruct:=gvl.axes[i]);
FOR GVL.iAxis:=1 TO gvl.axisNum DO
aFBAxes[GVL.iAxis](stAxisStruct:=gvl.axes[GVL.iAxis]);
END_FOR
File diff suppressed because it is too large Load Diff
@@ -230,6 +230,41 @@
<v></v>
</l>
</o>
<o>
<v n="TextID">"bGeared"</v>
<v n="TextDefault">"In Gear"</v>
<l n="LanguageTexts" t="ArrayList" cet="String">
<v></v>
</l>
</o>
<o>
<v n="TextID">"masterGear"</v>
<v n="TextDefault">"Master Axis"</v>
<l n="LanguageTexts" t="ArrayList" cet="String">
<v></v>
</l>
</o>
<o>
<v n="TextID">"gearRatio"</v>
<v n="TextDefault">"Gear Ratio"</v>
<l n="LanguageTexts" t="ArrayList" cet="String">
<v></v>
</l>
</o>
<o>
<v n="TextID">"gearIn"</v>
<v n="TextDefault">"Gear In"</v>
<l n="LanguageTexts" t="ArrayList" cet="String">
<v></v>
</l>
</o>
<o>
<v n="TextID">"gearOut"</v>
<v n="TextDefault">"Gear Out"</v>
<l n="LanguageTexts" t="ArrayList" cet="String">
<v></v>
</l>
</o>
<o>
<v n="TextID">""</v>
<v n="TextDefault">""</v>
@@ -241,9 +276,9 @@
<l n="Languages" t="ArrayList" cet="String">
<v>Test</v>
</l>
<v n="GuidInit">{962e4813-aef8-4dae-aeb7-04077d21434b}</v>
<v n="GuidReInit">{82ace71d-e165-4acf-b153-7a4cf4328067}</v>
<v n="GuidExitX">{a31774a9-92e9-4b2c-85d2-e107f62daa07}</v>
<v n="GuidInit">{6ee01c9c-bade-4561-8f8f-51a016e36b74}</v>
<v n="GuidReInit">{39936094-7e9a-4d1a-be25-5739d90e11d1}</v>
<v n="GuidExitX">{ed0a015c-01b4-4db1-a63c-fa53488b2ddf}</v>
</o>
</Data>
<TypeList>
@@ -37,6 +37,9 @@
<Compile Include="tc_mca_std_lib\DUTs\ST_AxisInputs.TcDUT">
<SubType>Code</SubType>
</Compile>
<Compile Include="tc_mca_std_lib\DUTs\ST_GearAxis.TcDUT">
<SubType>Code</SubType>
</Compile>
<Compile Include="tc_mca_std_lib\DUTs\ST_AxisStatus.TcDUT">
<SubType>Code</SubType>
</Compile>