版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025標(biāo)準(zhǔn)額借款合同范本
- 2025爬架專業(yè)分包合同
- 電子工程員工作總結(jié)
- 鐵路交通行業(yè)工程師的工作總結(jié)
- 教育環(huán)境下學(xué)生體能提升的教學(xué)方案創(chuàng)新
- 小小茶韻大千世界-小學(xué)生茶文化探索之旅
- 教育領(lǐng)域中的交通安全意識培養(yǎng)
- 足浴店前臺服務(wù)工作總結(jié)
- 教育政策與學(xué)術(shù)文化節(jié)的互動關(guān)系
- 小學(xué)生課外綜合實(shí)踐活動的策略與方法研究
- 工作證明模板下載免費(fèi)
- 顛茄流浸膏實(shí)驗(yàn)方案及總結(jié)
- 投標(biāo)人情況表
- GB/T 34241-2017卷式聚酰胺復(fù)合反滲透膜元件
- GB/T 12494-1990食品機(jī)械專用白油
- 運(yùn)輸供應(yīng)商年度評價(jià)表
- 北京語言大學(xué)保衛(wèi)處管理崗位工作人員招考聘用【共500題附答案解析】模擬試卷
- 肺癌的診治指南課件
- 人教版七年級下冊數(shù)學(xué)全冊完整版課件
- 商場裝修改造施工組織設(shè)計(jì)
- 統(tǒng)編版一年級語文上冊 第5單元教材解讀 PPT
評論
0/150
提交評論