




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
TwinCAT
TheWindowsControlandAutomationTechnology
NCPTP
NumericalControlPointToPointNC-PTPPartIGeneralOverviewAxistypesFunctionalprincipleReferencingMotionControlFunctionblocksTeilIIPracticalPart:SettingupNCaxesintheSystemManagerStartingNCaxesfromthePLC23.11.20232SoftwareNCPTPTwinCATNCPoint-to-Point(PTP)isanaxispositioningsoftwarewithintegratedPLC,NCinterface,operatingprogramforaxessetupandI/Oconnectionoftheaxesthroughthefieldbus.Upto255axescanbemovedatthesametime.TwinCATNCPTPsupportsaxisdrivebyswitchedmotors,steppermotors,frequencycontrolledandservocontrolledmotors.PartIGeneralOverviewAxistypesFunctionalprincipleReferencingMotionControlFunctionBlocksTeilIIPracticalPart:SettingupNCaxesintheSystemManagerStartingNCaxesfromthePLC23.11.20233SoftwareNCPTPTwinCATNCPTPProgrammingDebuggingRuntimesystemNumberofaxesAxistypesCycletimeAxisfunctionsPerformedusingfunctionblocksforTwinCATPLCaccordingtoIEC61131-3,convenientaxiscommissioningmenusOnlinemonitoringofallaxisstatevariablessuchasactual/setvalue,enable,controllervalues,onlineaxistuning,forcingaxisvariablesNCPoint-to-Point(NCPTP)includingTwinCATPLCUpto255inupto255channelsElectricalandhydraulicservodrives,frequencyconverterdrives,
steppermotordrives,switcheddrives(fast/crawlaxes)Min.50µs,typ.1
ms(freelyadjustable)Standardaxisfunctions:start/stop/reset/referenceVelocityoverride,targetoverrideSpecialfunctions:master-slavecascading,electronicgearboxes,
onlinedistancecompensationofsegments23.11.20234Camshafts,Flyingsaw,FIFOCamshaftsSoftwaresolutionforelectroniccamshafts,obviatingtheneedtousemechanicalcamshaftsandspecialhardwareassemblies.Atablerelatesthepositionofthemasteraxis(mainshaft)totheassociatedpositiontowhichtheslaveaxisisdriven.FlyingsawThe"flyingsaw"(diagonalslave)isaspecialkindofslavecoupling.Theslaveaxisisbroughtfromstandstilltoaspeedsynchronouswiththemaster.FIFOInsteadofusinginternalgenerationofstandardsetvalues,anaxiscanalsoobeyanexternallycalculatedsequenceofsetvaluesthatcanbesupplementedasthemovementoftheaxisproceeds(FIFObuffer).23.11.20235SoftwareNCITwinCATNCIProgrammingDebuggingRuntimeSystemNumberofaxesAxistypesInterpreter-functionsGeometriesAxisfunctionsTwinCATPLCaccordingtoIEC61131-3OnlinemonitoringintheTwinCATSystemManagerwiththefollowingdisplays:presentset/actualpositions,followingerrorsofallaxes,NCprogramlinepresentlybeingexecuted/interpreted,channelstatusNCPTP+NCinterpolation,includingTwinCATPLC3axespergroup,1groupperchannel,max.255channelsElectricalservo-axesSubroutinesandjumps,programmedloops,zeroshifts,toolcompensations,MandHfunctions,Straightlinesandcircularpathsin3Dspace,circularpathsinallmainplanes,helixeswithbasecirclesinallmainplanesOnlinereconfigurationofaxesingroups,pathoverride,
slavecouplingtopathaxesDIN66025programsforNCinterpolation,accessviafunctionblocksforTwinCATNCInterpolation(NCI)istheNCsystemforlinearorcircularinterpolatedpathmovementsofaxisgroupseachinvolvingtwoorthreedrives.TwinCATNCIoffers2Dand3Dinterpolation(interpreter,setpointgeneration,positioncontroller),anintegratedPLCwithanNC-IinterfaceandanI/Oconnectionforaxesviathefieldbus.23.11.20236
ContinuousaxesTheaxisrespondstoacontinuously
changeablesetvalueThesetvalueisgeneratedbyTwinCATNC,e.g.servowith+/-10V,Sercosdrive,frequencyconverter,linearisedhydraulicaxis,steppermotordrivewithamplifierAxistypesPartIGeneralOverviewAxistypesFunctionalprincipleReferencingMotionControlFunctionBlocksTeilIIPracticalPart:SettingupNCaxesintheSystemManagerStartingNCaxesfromthePLC23.11.20237High/lowspeedaxesTheaxisrespondstoatwo-stagesetspeedvalueincludingdirectionofrotation:FAST/SLOWandFORWARDS/REVERSEThesetvalueisgeneratedbyTwinCATNC,e.g.frequencyconverterwithfast/slowinputs,combinationinterlock.Warning:Acquisitionofactualvalue(Encoderisnecessary)Axistypes23.11.20238Lowcoststeppermotor
Theaxisconsistsofasteppermotorwhichisconnectedtodigitaloutputsandreactstopulses(A/Bfromtheterminals)Fastpulsesequence->motorturnsquicklylSlowpulsesequence->motorturnsslowlyThesetvalue(=pulsepattern)isgeneratedbyTwinCATNC.Axistypes23.11.20239Lowcoststeppermotor,Hardwaree.g.24Voltsteppermotorwith2AoutputterminalsAnencoderisNOTrequired
foracquisitionoftheactualvalue,sincethepulsesthatareoutputarecounted.
!Themechanicaldesignand/ormaximumrotaryspeed/torqueshouldbeexaminedtoensurethatthemotorwillbeableto"keepup",sinceanoutputterminalcannotprovideanincreasedvoltageathigherfrequencyAxistypes23.11.202310Virtualencoderaxis,Anaxisthatonlyconsistsofanencoder."Normal”(continuous)axescanbecoupledtothisaxisasslaves,andfollowthesetencodervalueofthevirtualencoderaxis.(Gearrationpossible) HANDWHEELFUNCTIONAxistypes23.11.202311OutputisaspeedvalueTheactualpositionismonitored.Output:Speedpre-control+controlleroutput(accelerationpre-controlalsoisoptional)Feedback:ActualpositionvalueAtspecificaxistypese.g.SERCOSisalsoadirectoutputoftheSetpositioninNCtimepossible.Axistypes23.11.202312FunctionalprincipleoftheTwinCATNCTwinCATNCworkswitha
velocityprecontrol.
ThePositioncontroller
controlstheobservanceofthesetposition(„Motion“andpositioncontrol).
Furtheravailableoptions:
-Accelerationprecontrol
-PositioncontrolwithtwoPconstants
-directoutputoftheposition.(SercosAxes)
-High/lowspeedcontroller
-Steppermotorcontroller
-ExternalSetpointgeneration(abTwinCAT2.9)
-Linearisationofprecontrolfornonlinearaxes(Hydraulicaxes).PartIGeneralOverviewAxistypesFunctionalprinciple
ReferencingMotionControlFunctionBlocksTeilIIPracticalPart:SettingupNCaxesintheSystemManagerStartingNCaxesfromthePLC23.11.202313FunctionalprincipleoftheTwinCATNCDeadtimecompensationPosition-controllerController-limitingVelocityprecontrol(Scaling)OutputScaling&LimitingProcessPosition-measurementSetpointgenerator23.11.202314SetvaluegenerationDeadtime-compensationPositions-reglerRegler-begrenzungVelocityprecontrol(Scaling)OutputScalierung&Begrenzung??SetpositionSetvelocitySetpointgenerator23.11.202315SetvalueprofilesTheprofileofthevelocityoutputcanbevariiedduringandefinedbraketimeTherebytheaccelerationchange(jerk)canbereducedconsiderably.Thisworksoutonintheshortrunmechanicalburdensandcommensuratewithaswellontheelectricburdenofthedrive.23.11.202316Setvalueprofiles„hard“,bigAccelerationchange23.11.202317Setvalueprofiles„smooth“,theaccelerationrises(linearly)23.11.202318Setvalueprofiles„mostsmooth“,theaccelerationreachesnomoreconstantphase23.11.202319SetvalueprofilesInputviarun-uptimePreselectprofileCalculationbytheTwinCATSystemManagerDieVorgabekannsehreinfachüberdieVorgabederHochlaufzeitundderAuswahldesProfilsimSystemManagererfolgen!23.11.202320Problem:nonlinearcharcateristiccurvesofvalvesSolutionMeasurementofthecurveswiththePLCProgramimportthevaluestotheSystemManagergraphicalLinearisationInterpolation(Polynomialof5thdegree)LoadtoNCOutputsarelinearizedOutputLinearisation:TwinCATValveDiagramEditor23.11.202321controllerdriveValveDiagramEditorLinearoutputNCRealtimeLinearizationTwinCATValveDiagramEditor23.11.202322TwinCATValveDiagramEditor23.11.202323ReferencingReferencing(calibrate)isnecessaryforaxiswithnotabsoluteencodersystems.
IncrementalEncoder,SingleTurnAbsoluteEncoder,ornotabsoluteencodersystemsdirectfromthedrive,(e.g.actualpositionvalueofAX2000).
Atreferencingtheaxisisleadtoafixreferencepositionandtheencoderissettothecurrentactualposition.PartIGeneralOverviewAxistypesFunctionalprincipleReferencingMotionControlFunctionBlocksTeilIIPracticalPart:SettingupNCaxesintheSystemManagerStartingNCaxesfromthePLC23.11.202324ReferencinginitialstateReferenceswitch(PLCinput)GearingPLC:Functionblockforreferencing23.11.202325ReferencingReferenceswitch(PLCinput)GearingPLC:StartwithexecuteAxismovestoReferenceswitch23.11.202326ReferencingReferenceswitch(PLCinput)GearingPLC:StartwithexecuteReferenceswitchwasreached,axisbreaks23.11.202327ReferencingReferenceswitch(PLCinput)GearingPLC:StartwithexecuteAxismovesbackuntilreferenceswitchisfree.23.11.202328Referencingcompleted(a)Referenceswitch(PLCinput)GearingPLC:StartwithexecuteAxisbreaks,actualpositionisset23.11.202329Referencingcompleted(b)Referenceswitch(PLCinput)GearingAX2000:
Afterleavingthereferenceswitch,TwinCATNCwaitsforthe“Syncsignal”ofAX2000andthenstops.Advantage:moreexactely.ThesetpositioninthestandstilloftheaxisiscalculatedwiththeinternallatchoftheAX2000(correspondstothezerosignalatIncrementalencoders)StandardsettingsintheTwinCATSystemManager23.11.202330Referencingcompleted.Whichpositionisset?If„Position“DEFAULT_HOME_POSITION(globalvariablefromTCMC.LIB)issubmittedattheFbinput,thevalueistakenoutoftheSystemManager.Otherwisethevalueisttakenattheinput„Position“23.11.202331MotionControlFunctionblocksTarget:IEC61131-3compatible
programminginterface
formotiontasksPartIGeneralOverviewAxistypesFunctionalprincipleReferencingMotionControl
FunctionBlocksTeilIIPracticalPart:SettingupNCaxesintheSystemManagerStartingNCaxesfromthePLC23.11.202332MotionControlFunctionblocksWhyastandard?-HardwareindependentProgramming-thesamelookandfeel,identicalSyntax-IEC61131-3asBase
-Expansionsfornewapplicationareaspossible-TwinCAT:CombinationofMCblocksandTwinCATspecificAxisblockspossible.ExistingapplicationscanbeexpandedwithMotionControlblocks,withoutanewwritingoftheexistingflows.Beckhoff:Beckhoff:Beispiel:esmüssennichtunbedingtalleFB‘sausderspecvorhandensein23.11.202333MotionControlFunctionblocksDefinedin:ThePLCopenTaskForceMotionControl
byManufacturerandenduserBeckhoff:Beckhoff:Beispiel:esmüssennichtunbedingtalleFB‘sausderspecvorhandenseinAtlasCopcoControl TetraPakBaumueller RovemaPackagingMachinesBeckhoffControlTechniques FordElau GeneralMotorsGiddings&LewisIndramatInfoteamSoftwareKWSoftwareLenzeSiemensSofting Root:TaskForceMotionControlpresentationVersionFebr2002.()23.11.202334Statemachine:DiscreteMotionContinuousMotionStandstillStoppingHomingSynchronizedMotionErrorStop23.11.202335Statemachine:MC_MoveSuperimposedMC_MoveVelocityMC_VelocityProfileMC_AccelerationProfileDiscreteMotionContinuousMotionStandstillMC_MoveAbsoluteMC_MoveRelativeMC_MoveAdditiveMC_MoveSuperimposedMC_PositionProfileDoneMC_MoveAbsoluteMC_MoveRelativeMC_MoveSuperimposedMC_MoveAdditiveMC_PositionProfileMC_StopMC-StopMC_MoveVelocityMC_VelocityProfileMC_AccelerationProfileMC_MoveVelocityMC_VelocityProfileMC_AccelerationProfileMC_PowerMC_StopNote1StoppingMC_MoveAbsolute;MC_MoveRelativeMC_MoveAdditive;MC_PositionProfileDoneHomingDoneMC_HomeMC-StopNote1:AllFBscanbecalled,
althoughtheywillnot
beexecuted,exceptMC_ResetandError–willgeneratethetransitiontoStandStillorErrorStopresp..
Root:TaskForceMotionControlpresentationVersionFebr2002.()23.11.202336StatemachineSynchronizedMotionDiscreteMotionContinuousMotionStandstillStoppingSynchronizedMotionMC_GearInMC_GearInMC_CamInMC_CamInMC_GearInMC_CamInMC_MoveAbsoluteMC_MoveRelativeMC_PositionProfileMC_MoveVelocityMC_GearOutMC_CamOutMC_VelocityProfileMC_AccelerationProfileMC_StopMC_GearInMC_CamInMC_PhasingMC_MoveSuperimposed23.11.202337OverviewFunctionBlockClass:AdministrativeMotionSingleAxesMultipleAxesSingleAxesMultipleAxesNon-InterpolatedMoveAbsoluteInterpolatedMoveAdditiveMoveSuperImposedMoveContinuousMoveVelocityHomeStopPowerResetReadStatusReadAxisErrorReadParameterWriteParameterReadActualPositionPositionProfileVelocityProfileAccelerationProfileCamTableSelectCamInCamOutGearInGearOut…MoveRelativePhasing23.11.202338StandardizedHandshake23.11.202339FB‘sAdministrativeFunctionBlocks23.11.202340MCPowerEnableEnable_PositiveEnable_NegativeNCControllerallows:100Positioncontrol110Positioncontrol+Startinpositivedirection101Positioncontrol+Startinnegativedirection111Positioncontrol+Startinpositiveornegativedirection23.11.202341MCRead_...23.11.202342MCRead_...23.11.202343MCRead/WriteParameterNumberinTCMC.LIB?PLCControlLibraryManager23.11.202344ExampleReadActualVelocityWithReadModethesingleresp.permanentreadingcanbedetermined.23.11.202345MotionFunctionBlocksMotionFunctionBlocksSingleAxis23.11.202346MotionFunctionBlocks23.11.202347ModeofOperationMoveSuperimposedExecute¢
ActualPos
¢
SetpointPos¢
ActualVelo
¢
SetpointVelo¢
ActualAcc
¢
SetpointAcc23.11.202348MotionFunctionBlocksModeofoperationsee„Referencing“23.11.202349MotionFunctionBlocksDiscreteMotionContinuousMotionStandstillDoneMC_StopNote1StoppingDoneHomingDoneMC_StopMC_StopMC_Stop23.11.202350MotionFunctionBlocksMultipleAxisMotionFunctionBlocksMultipleAxis(non-interpolated)23.11.202351MotionFunctionBlocksMultipleAxisGEARINGistheactivationofanumericratiobetweenmasterandslaveaxis.(comparablewithamechanicalgearbox).
23.11.202352MotionFunctionBlocksMultipleAxisLinear“gearbox”
fixedratiooftransmission:Vm/Vs“FlyingSaw”23.11.202353MotionFunctionBlocksMultipleAxisMOTIONDIAGRAMFORGEARING23.11.202354MotionFunctionBlocksMultipleAxisMovementdiagram¢
SlavePosSetpoint
¢
MasterPosSetpoint ¢
PositionLag¢
MasterVeloSetpoint
¢
SlaveVeloSetpoint¢
MasterAccelSetpoint ¢
SlaveAccelSetpoint23.11.202355PracticalPart
SettingupNCAxesinSystemManagerNote:ThesebitmapsshowallbasicstepsintheSystemManagerinforAX2000.Notallpossiblecombinationsareshown.
FurthermoretheSafetyinstructionsaretobeconsideredabsolutely.TwinCATInformationSystemNC->Safetyfunctionalities.PartIGeneralOverviewAxistypesFunctionalprincipleReferencingMotionControlFunctionBlocksTeilIIPracticalPart:SettingupNCaxesintheSystem
ManagerStartingNCaxesfromthePLC23.11.202356AxesSettingsExampleconfigurationDataAX2000:SettingsatthetrainingdevicesMax.r.p.m.3000IncrementsperMotorrevolution(EncoderemulationofAX2000)65535Adoptedmechanicalration1motorrevolutionisequivalentto1mmmechanicalway23.11.202357AxesSettings(adoptedApplicationmodell)ReferenceswitchGearing23.11.202358
EnterHardware23.11.202359ResultEnterHardwareRepeatstepsforallfurtherdrivesRename?23.11.202360
SettingupNCAxesintheSystemManager23.11.202361SelectandlinkdrivetypeRename?23.11.202362SelectandlinkdrivetypeInputsandoutputsbetweenTwinCATNCControllerandAX2000arelinked23.11.202363DefineAxisparameterunits23.11.202364EncoderparameterScalingfactorTranslationofthecollectedactualpositionvalueinthewayunitDecimalpointnecessaryCanbetakeninRegistryWriteonlinetoNC23.11.202365FurtherEncoderparameter(Notice)23.11.202366DriveparameterreferencevelocityTranslationofthemax.rotationspeedofthedrivetoavelocityCanbetakeninRegistryWriteonlinetoNCDecimalpointnecessary23.11.202367FurtherDriveparameter(Notice)23.11.202368GlobalAxisparameterLimitationofthemax.allowedvelocityHandvelocitiesintheOnlineMenueInfeedvelocity(NCIonly)ReferencingvelocitiesSoftwarelimitswitchFollowingErrormonitoringTargetpositionmonitoringPrecisionandfilterformessagetoPLC„Axisintargetposition“TimeoutmonitoringifaxisisintargetpositionVelocityreductionatsegmenttransitions(NCIonly)23.11.202369GlobalAxisparameter(Notice)23.11.202370DynamicEffectsseeSetvalueprofilesReferenceswitch23.11.202371StartingNCAxesfromthePLCExample:AsmallprojectforstartingansingleaxisshouldbecreatedwiththehelpoftheMCLibraryNotes:-Thecontroloftheenablesignals(hardware)isnottreatedinthisexample.TheprogrammingmodecorrespondsinthisexampletotheclassicalPLCprogramming,thatmeansglobalvariablesfortheinputsandoutputsandreferencinginthePOUs.AnalternativeisthecreationofFBs,whichworkinternallywithnottotallocatedvariablesfortheaxisinterface.(VAR_CONFIG)PartIGeneralOverviewAxistypesFunctionalprincipleReferencingMotionControlFunctionBlocksTeilIIPracticalPart:SettingupNCaxesintheSystemManagerStartingNCaxesfromthePLC23.11.202372CreatingaPLCProject23.11.202373InsertingTcMCLibraryFurtherrequiredlibrarieswillbeinsertedautomatically(fromTwinCAT2.8)23.11.202374CreatingInput/OutputvariablebetweenNCandPLCControlinputs.Linkingwithhardware,„Writingvalues“inPLCControl,o
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 小班立秋美术课件
- 护士言行规范专项
- 河北省石家庄市第四十四中学2024-2025学年高一下学期3月月考 数学试卷(含解析)
- 护理文书书写新规范
- 幼儿园年轮课件
- 教育培训行业调研报告
- 护理骨干工作总结
- 华为全场景培训
- 宗教场所消防安全培训
- 场所安全知识培训课件
- 班组长的领导方式与技巧
- DL-T5190.1-2022电力建设施工技术规范第1部分:土建结构工程
- TD/T 1044-2014 生产项目土地复垦验收规程(正式版)
- (高清版)JTGT 3331-07-2024 公路膨胀土路基设计与施工技术规范
- 基金会公益慈善项目管理办法
- 2009年10月自考00567马列文论选读试题及答案含解析
- 小学第三学段培养数学模型意识研究-以南昌市A小学为例
- 中国电磁加热器行业市场现状分析及竞争格局与投资发展研究报告2024-2029版
- 2.3.5 重力坝扬压力计算示例讲解
- 肺孢子菌肺炎新课件
- 高纯碳酸锂行业报告
评论
0/150
提交评论