




版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
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. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- (二模)2025年深圳市高三年級第二次調研考試地理試卷(含標準答案)
- 專業介紹課件
- 高速公路改建工程承包合同書
- 遼寧政法職業學院《生物工程導論》2023-2024學年第二學期期末試卷
- 洛陽科技職業學院《西方醫學史》2023-2024學年第二學期期末試卷
- 江蘇省兩校2024-2025學年高三四模(5月)物理試題試卷含解析
- 云南省昭通市昭陽區達標名校2024-2025學年初三年級第一次調研考試生物試題含解析
- 蘇州工業園區職業技術學院《中國大學發展史》2023-2024學年第二學期期末試卷
- 蘇州幼兒師范高等專科學校《大學化學及實驗》2023-2024學年第二學期期末試卷
- 吉林省白城市通榆一中2024-2025學年高三期末熱身聯考英語試題含解析
- 健康教育心肺復蘇知識講座(3篇模板)
- 五年級上冊體育教案(表格式)
- DL-T5190.1-2022電力建設施工技術規范第1部分:土建結構工程
- (正式版)JTT 1499-2024 公路水運工程臨時用電技術規程
- 中國高清熒光腹腔鏡行業市場現狀分析及競爭格局與投資發展研究報告2024-2034版
- 國企管理人員招聘考試題庫
- 托管老師員工手冊
- 中醫養生的健康體重
- 中石化公司招聘考試真題
- 統編版一年級語文下冊部編版第六單元單元教材解讀(素材)(課件)
- 乳腺結節手術后的護理
評論
0/150
提交評論