




已阅读5页,还剩47页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
PMAC插补技术,1,E-MOTION,PMAC多轴运动控制卡(中级培训),PMAC插补技术,2,LINEAR插补方式,对PMAC用户直线插补是最通用的方式.直线插补轨迹包括加减速时间和运动时间.,需要学习:什么是直线插补模式的轨迹如何改变轨迹的特征如何实现多个运动的速度混合,PMAC插补技术,3,Linear模式的轨迹小Acceleration时间,PMAC插补技术,4,Linear模式的轨迹(continued)小Acceleration时间,PMAC插补技术,5,Linear模式的轨迹(continued)加速时间等于运动时间,PMAC插补技术,6,Linear模式的轨迹(continued)加速时间等于运动时间,PMAC插补技术,7,Linear模式的轨迹大(速度限制)加速时间,PMAC插补技术,8,Linear模式的轨迹大(速度限制)加速时间,PMAC插补技术,9,加速参数,TA编程加速时间(单位:msec);整数TS编程S-曲线时间(单位:msec);整数,PMAC插补技术,10,加速参数(continued),PMAC插补技术,11,例3:一个复杂的运动,Thisexampleintroducesincrementalandtime-specificationofmoves,loopinglogic,usingvariables,scalingofaxes,andsimplearithmetic.Notethatlogicalandmathematicaloperationsdonotdelaymoves.,;*Set-upandDefinitions*坐标系1,指向运动程序2,运行,PMAC插补技术,12,例3:一个复杂的运动,PMAC插补技术,13,直线插补测验,曲线的水平和垂直轴的含义?什么是TS,TA,TMandF?TM和F的关系是什么?以100msTA时间和20ms的TS时间,TM为500ms的时间外成一个运动,总的运动时间是多少?如果程序表达TS100TA100TM100,完成3个混合运动的总时间是多少?,PMAC插补技术,14,PMAC运动速度混合,PMAC在如下情况下速度无法混合:两个运动指令中间有DWELL指令2个向后跳转指令(GOTO,ENDW)速度混合功能无效设定(Ix92=1),PMAC插补技术,15,DWELLVs.DELAY,DWELL总使用固定的时基(I10)暂停时间不包括减速过程直到DWELL结束才执行下面运动的计算(addI11time),PMAC插补技术,16,DWELLVs.DELAY(continued),DELAY使用可变的时基(%value)暂停时间包括减速过程最小暂停时间是当前TA时间下面运动时间开始于DELAY指令,PMAC插补技术,17,例4:速度混合有效的例程,ThisexampleshowshowtoprogramablendedmoveonthePMACandthefunctionofIx92.Firsttheprogramspecifieshowtodothemove,thencommandsthemove.,*Set-upandDefinitions*DELGAT;EraseanydefinedgatherbufferGATHER,CS.1,pointtoBeginningofProgram1,Run,PMAC插补技术,18,例4:速度混合有效的例程,PMAC插补技术,19,例5:速度混合无效的例程,ThisexampleshowshowtoprogrammovesonthePMACandthefunctionofIx92.Firsttheprogramspecifieshowtodothemove,thencommandsthemove.,*Set-upandDefinitions*DELGAT;EraseanydefinedgatherbufferGATHER,CS.1,pointtoBeginningofProgram1,Run,PMAC插补技术,20,例5:速度混合无效的例程,PMAC插补技术,21,速度混合测验,使用速度指令(F)在增量方式(INC),指令X1000和指令X100X400X500如果Ix92=0,TATMor(TAX:$0806,0,24,sforfeedrateoverridecontrol.,PMAC插补技术,30,Exercise3:ConditionalBranching,Problem:,TheEuropeanCompanyishavingalotofsuccesswithyourmachineandyourbossnowhassomeextraRMoveSegmentationTimeNORMALK-1;XYplaneINC;IncrementalEndPointdefinitionINC(R);IncrementalCenterVectordefinitionCIRCLE1;ClockwisecircleX20Y0I10J0;Arcmove,Start(0,0),Center(10,0),End(20,0),PMAC插补技术,34,圆弧插补例程,;SetupanddefinitionsMotionProgramTextopenprog4clearnormalK-1rapidx1y4f5lineary13circle1x2y14i1j0linearx3circle1x4y13i0j-1lineary7circle2x7y4i3j0linearx13circle1x14y3i0j-1lineary2circle1x13y1i-1j0linearx4circle1x1y4i0j4dwell100rapidx0y0close,PMAC插补技术,35,提前运算(前瞻功能)PRECALCULATION,前瞻功能做了些什么?怎样停止前瞻功能?如何使用同步变量?,在blend和spline运动中,运动程序必须将当前运动后几步的运动指令提前进行运算.根据不同的运动模式,在程序运行中将进行0,1,或2段运动指令的前瞻计算.,我们将要学习:,PMAC插补技术,36,PRECALCULATION,Allprogramcalculationsandassignments,exceptforsynchronousM-variableassignments,betweenthemoveinprogressandthemovebeingcalculatedareperformedonelineatatimeduringthelook-ahead.ThismaybeaproblemwithM-variables,particularlyoutputs,astheactionwilltakeplacesoonerthanexpected.Example:LINEAR;linearmovemodeX10;moveX-axisto10X20;moveX-axisto20M1=1;turnonoutput#1X50;moveX-axisto50,TheoutputM1willbeturnedonatthebeginningoftheX10moveduetoPMACsprecalculationoftheprogram,PMAC插补技术,37,PMACMotionProgramPrecalculation,PMAC插补技术,38,PMACMotionProgramPrecalculation,PMAC插补技术,39,PMACMotionProgramPrecalculation,PMAC插补技术,40,同步M-变量,SynchronousM-Variablesassignmentsareasolutiontothesynchronizationproblemscausedbymoveprecalculation.WhenaSynchronousM-variableassignmentisencountered,itisnotexecutedimmediately;butputonastackforexecutionatthestartofthenextmoveintheprogram.OutputactionsarethussynchronizedwiththemotionactionExample:LINEAR;linearmovemodeX10;moveX-axisto10X20;moveX-axisto20M1=1;turnonoutput#1X50;moveX-axisto50,ThestatementM1=1isencounteredatthebeginningofthemovetoX10,buttheactionisnotperformeduntilthestartofblendingintothemoveX50,PMAC插补技术,41,MACROS,MacrosallowyoutoassignaspecificnametoaPMACvariableorcommandforprogrammingpurposes.Forexample,youcandefinethewordPUMP_PRESSUREtothevariableP10.Thisallowsyoutousemeaningfulnamesinyourprogramswhichsimplifiesprogrammingandmemorymanagement.MacrosareafeatureoftheExecutiveProgramandarenotaPMACfeature.WhenaMacrosisdownloadedtoPMAC,theexecutiveprogramsubstitutestheappropriatePMACcommandsorvariablesinplaceoftheMacros.PMAConlyseesthePMACcommandsandvariables.,PMAC插补技术,42,PMAC计算优先级,1.SinglecharacterI/O单字符I/OSerial,PC-bus,STD-bus;200ns/char2.CommutationUpdate换相更新率E29-E33set(9KHzdefault);3usec/axis3.ServoUpdate伺服更新率E3-E6setfreq(2.25KHzdefault);30usec/axis4.RealTimeInterrupt实时中断I8设定频率;循环于:A.运动程序的计算每次新运动的开始;1or2步提前B.PLC0当不执行运动程序C.PLCC0D.DualPortedRAM双端口RAMServodatabuffers伺服数据存储器,PMAC插补技术,43,5.VMEmailbox处理器事件驱动6.后台任务Doneintimeleftover;rotatesbetween:A.CommunicationlineprocessingEventdrivenB.PLC1-31oneatatimeC.PLCConescanthroughallPLCCsD.GeneralHousekeepingE.DualPortedRAMDataBuffers,PMAC计算优先级,PMAC插补技术,44,PMAC看门狗计时器,WatchdogTimerSatisfied,Frequency25Hz,DCVoltage4.75,TurnOffCard,Yes,No,No,Yes,PMACalgorithmtoassureWatchdoggets25Hzsignalandcheckforaminimumof4.75Vtothememorychips.,PMAC插补技术,45,PMAC看门狗计时器(续.),RealTimeInterrupt,ReadW.DRegister,IsRegister0,DecrementW.D.TimerRegister,BackgroundTasksarenotoccurringoftenenough,there-forestopupdatingtimer,PMACalgorithmtoassureWatchdoggets25Hzsignal.Thisensuresbothbackgroundandforegroundtasksaredonereasonablyoften.,PMAC插补技术,46,通讯控制I-变量,I1:串口模式=0,2:HostCShandshakeused=1,3:HostCShandshakedisabled=2,3:MultiplecarddaisychainenabledI3:握手字符控制=1:senttoacknowledgevalidcommand=2,3:senttoacknowledgevalidcommand=1,3:precedesdataresponselineI4:通讯完整性模式=0,2:Checksumdisabled=1,3:Checksumenabled=0,1:Serialerrorsreportedimmediately=2,3:SerialerrorsreportedatendoflineI6:错误报告模式=0,2:Returnscharacter=1,3:Reportserrornumber,PMAC插补技术,47,CommunicationsControlI-Variables,I9:DataReportingForm=1,3:Longformdatareporting=2,3:HexadecimaladdressI-variablereportingI58:DPRAMASCIICommunications=0:DisablesDPRAMcommunication=1:EnablesDPRAMcommunicationI56:DPRAMASCIICommunicationsInterruptEnable=0:Disablescommunicationsinterrupt=1:Enablesc
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 新生儿科护理新理论新技术试题库(含答案)
- 麻精毒药品培训考试测试题库含答案
- 2025年秋九年级化学上册 5 化学方程式说课稿 (新版)新人教版
- 地陪导游服务教学设计-2025-2026学年中职专业课-导游实务-旅游类-旅游大类
- 四年级信息技术上册 第二单元 第12课《图片的浏览和编辑》说课稿 冀教版
- 机电组安全教育培训课件
- 机电安全管理技术培训课件
- 2025年教师招聘之《幼儿教师招聘》预测试题含答案详解【基础题】
- 安全生产现场管控培训课件
- 2025年教师招聘之《小学教师招聘》通关练习试题及答案详解(必刷)
- Welcome+unit +and+Expressions+单词讲解课件 【知识精讲精研】高中英语人教版必修第一册
- GB/T 43950-2024工业浓盐水回用技术导则
- 2024年出租车网约车司机从业资格证考试题库附参考答案【模拟题】
- “1+X”幼儿照护技能等级证书(中级)考试题库(多选、判断题)
- T-CUWA 20059-2022 城镇供水管网模型构建与应用技术规程
- 火电厂检修培训课件
- 核医学医学影像医技科室质量评估细则
- 观看《中国乒乓之绝地反击》观后感600字三篇
- YY/T 0698.5-2023最终灭菌医疗器械包装材料第5部分:透气材料与塑料膜组成的可密封组合袋和卷材要求和试验方法
- 小学生班干部竞选PPT模板
- 大学生创新创业(微课版 第3版)教学大纲
评论
0/150
提交评论