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:
1 parent
20c07ff66e
commit
8e59e35241
9 files changed
+3611
-240
No files matched your search
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<TreeItem><NcAxisDef><AxisType>1</AxisType><AxisParam><Unit>mm</Unit><Dynamic><Acceleration>1500</Acceleration><Deceleration>1500</Deceleration><Jerk>2250</Jerk><AccelerationMaximum>15000</AccelerationMaximum><DecelerationMaximum>15000</DecelerationMaximum><DelayTime>0</DelayTime><SetpointGeneratorType>1</SetpointGeneratorType><OverrideType>3</OverrideType><VeloJumpFactor>0</VeloJumpFactor><ToleranceBallAuxAxis>0</ToleranceBallAuxAxis><MaxPosDeviationAuxAxis>0</MaxPosDeviationAuxAxis><FastAxisStopSignalType>0</FastAxisStopSignalType><FastAcceleration>0</FastAcceleration><FastDeceleration>0</FastDeceleration><FastJerk>0</FastJerk></Dynamic><Velo><RefSearch>30</RefSearch><RefSync>30</RefSync><SlowManual>100</SlowManual><FastManual>600</FastManual><Fast>2000</Fast><Maximum>2000</Maximum></Velo><PositionAreaControl><Enable>true</Enable><Range>5</Range></PositionAreaControl><MotionControl><Enable>false</Enable><Range>0.1</Range><Time>0.5</Time></MotionControl><Loop><Enable>false</Enable><Range>100</Range></Loop><TargetPosControl><Enable>true</Enable><Range>2</Range><Time>0.02</Time></TargetPosControl><PEHControl><Enable>false</Enable><Time>5</Time></PEHControl><BacklashCompensation><Enable>false</Enable><Range>0</Range></BacklashCompensation><OtherSettings><ErrorReactionMode>0</ErrorReactionMode><ErrorReactionDelay>0</ErrorReactionDelay><SwitchToActValuesIfDisabled>false</SwitchToActValuesIfDisabled><NoMotionWindow>1</NoMotionWindow><NoMotionFilterTime>0.01</NoMotionFilterTime><EncGrpDeadTimeComp>0</EncGrpDeadTimeComp><AllowMotionCmdToSlave>true</AllowMotionCmdToSlave><AllowMotionCmdToExtSetGenAxis>false</AllowMotionCmdToExtSetGenAxis></OtherSettings><DataPersistence>false</DataPersistence><PulseDistancePos>5</PulseDistancePos><PulseDistanceNeg>5</PulseDistanceNeg></AxisParam><Encoder><EncType>1</EncType><EncParam><ScaleFactorNumerator>0.0001</ScaleFactorNumerator><ScaleFactorDenominator>1</ScaleFactorDenominator><Offset>0</Offset><ModuloFactor>360</ModuloFactor><ToleranceWndModuloStart>0</ToleranceWndModuloStart><Inverse>false</Inverse><EncMode>2</EncMode><MaxCount>16777215</MaxCount><FilterTime><TPos>0</TPos><TVelo>0.01</TVelo><TAcc>0.1</TAcc></FilterTime><SoftEndMinControl><Enable>false</Enable><Range>0</Range></SoftEndMinControl><SoftEndMaxControl><Enable>false</Enable><Range>0</Range></SoftEndMaxControl><ActPosCorrection><Enable>false</Enable><Time>0</Time></ActPosCorrection><RejectionFilterMask>0</RejectionFilterMask><ReferenceSystem>0</ReferenceSystem><EvaluationDirection>0</EvaluationDirection><Inc><RefSearchInverse>false</RefSearchInverse><RefSyncInverse>true</RefSyncInverse><RefPosition>0</RefPosition><RefDistSearchToSyncEnabled>false</RefDistSearchToSyncEnabled><RefDistanceSearchToSync>0</RefDistanceSearchToSync><RefExternSync>false</RefExternSync><RefMode>0</RefMode><RefSoftSyncMask>1048575</RefSoftSyncMask></Inc><Sim><RandScale>0</RandScale></Sim><TimeComp><TimeCompMode>0</TimeCompMode><IoTimeAbsolute>false</IoTimeAbsolute><EncDelayCycles>0</EncDelayCycles><AdditionalTimeShift>0</AdditionalTimeShift></TimeComp></EncParam></Encoder><Drive><DrvType>5</DrvType><DrvParam><Inverse>false</Inverse><DrvMode>1</DrvMode><MinOutputLimit>-1</MinOutputLimit><MaxOutputLimit>1</MaxOutputLimit><MaxCount>65535</MaxCount><DriveControlDWord>#x00000000</DriveControlDWord><InputScalingFactorActTorque>0.1</InputScalingFactorActTorque><InputFilterTimeActTorque>0</InputFilterTimeActTorque><InputFilterTimeActTorqueDerivative>0</InputFilterTimeActTorqueDerivative><Analog><VeloReferenz>2200</VeloReferenz><OutputReferenz>1</OutputReferenz><VeloOffset>0</VeloOffset><VeloScale>1</VeloScale><PosScale>1</PosScale><AccScale>0</AccScale><TorqueScale>0</TorqueScale><PosOutputDelay>0</PosOutputDelay><VeloOutputDelay>0</VeloOutputDelay><AccOutputDelay>0</AccOutputDelay><TorqueOutputDelay>0</TorqueOutputDelay><OutputSmoothingFilterType>0</OutputSmoothingFilterType><OutputSmoothingFilterTime>0.01</OutputSmoothingFilterTime><OutputSmoothingFilterOrder>2</OutputSmoothingFilterOrder><QuadrantCompensation>1</QuadrantCompensation><VeloBendPoint>1</VeloBendPoint><OutputBendPoint>1</OutputBendPoint><ProfiDrivePosKpc>0</ProfiDrivePosKpc><TabId>0</TabId><TabIpolType>0</TabIpolType><OutputOffsetPercent>0</OutputOffsetPercent><ProfiDriveScaleXerr>1</ProfiDriveScaleXerr></Analog><Stepper><BitMaskCycle1>3</BitMaskCycle1><BitMaskCycle2>6</BitMaskCycle2><BitMaskCycle3>12</BitMaskCycle3><BitMaskCycle4>9</BitMaskCycle4><BitMaskHoldingLoad>133</BitMaskHoldingLoad></Stepper><TimeComp><TimeCompMode>0</TimeCompMode><IoTimeAbsolute>false</IoTimeAbsolute><DriveDelayCycles>1</DriveDelayCycles><TaskDelayCycles>1</TaskDelayCycles><AdditionalTimeShift>0</AdditionalTimeShift></TimeComp></DrvParam></Drive><Controller><CtrType>1</CtrType><CtrParam><CtrMode>1</CtrMode><PriorControlFactor>1</PriorControlFactor><PosDiffControl><Enable>true</Enable><Range>5</Range><Time>0.02</Time></PosDiffControl><VeloDiffControl><Enable>false</Enable><Range>0</Range><Time>0</Time></VeLine truncated
|
||||
File diff suppressed because it is too large.
Load diff
@@ -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>
|
||||
@@ -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>
|
||||
|
||||
@@ -43,8 +43,8 @@ ERROR();]]></ST>
|
||||
<Action Name="AXES" Id="{7eb32732-9b53-4934-8cd9-20ba971dd8ff}">
|
||||
<Implementation>
|
||||
<ST><;
|
||||
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>
|
||||
|
||||
Submodule solution/tc_project_app/tc_mca_std_lib updated: 5eb56db806...fe55ce8af8.
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user