Rapid 编程介绍.pdf

Rapid 编程介绍.pdf

ID:48021486

大小:252.39 KB

页数:7页

时间:2020-01-23

Rapid 编程介绍.pdf_第1页
Rapid 编程介绍.pdf_第2页
Rapid 编程介绍.pdf_第3页
Rapid 编程介绍.pdf_第4页
Rapid 编程介绍.pdf_第5页
资源描述:

《Rapid 编程介绍.pdf》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、Rapid编程介绍1.关于程序设计程序初学阶段是艰苦的;why?太多的语法需要记忆、理解,到了最后,完成控制程序时无从下手。howtodo?记语法------多看程序、看懂程序--------尝试程序编写与调试。2.ABB程序框架将程序分为不同的模块后,可改进程序的外观,且使其便于处理。每个模块表示一种特定的机器人动作或类似动作。执行删除程序命令时,所有系统模块仍将保留。系统模块通常由机器人制造商或生产线建立者编写。例行程序是rapid代码源程序。例行程序包含一些指令集,它定义了机器人系统实际执行的任务。从控制器程序内存中

2、删除程序时,也会删除所有程序模块。每个程序必须含有名为“main”的例行程序,否则程序将无法执行。3.abb程序案例4.数据存储类型varpersconst5.4个基本数据类型6.几个重要的组合数据类型(datatype)pos(位置数据)------[x,y,z]VARpospos1;pos1:=[600,100,800];pos1.z:=850;orient(姿态数据)------[q1,q2,q3,q4]Thedatatypeorientspecifiestheorientationofthetool.Theorie

3、ntationisspecifiedbyfournumericalvalues,namedq1,q2,q3andq4.VARorientorient1:=[1,0,0,0];!Theorient1orientationisassignedthevalueq1=1,q2-q4=0;thiscorrespondstonorotation.TPWrite"Thevalueofq1is"Num:=orient1.q1;Therotatedcoordinatesystemsaxes(x,y,z)arevectorswhichcan

4、beexpressedinthereferencecoordinatesystemasfollows:x=(x1,x2,x3)y=(y1,y2,y3)z=(z1,z2,z3)Thismeansthatthex-componentofthex-vectorinthereferencecoordinatesystemwillbex1,they-componentwillbex2,andsoon.Thesethreevectorscanbeputtogetherinamatrix(arotationalmatrix)wheree

5、achofthevectorsformoneofthecolumns:Aquaternionisjustamoreconcisewaytodescribethisrotationalmatrix;thequaternionsarecalculatedbasedontheelementsoftherotationalmatrix:poseAdatatypecanbecomposedofothercompositedatatypes.Anexampleofthisisthedatatypepose,whichconsistso

6、foneposnamedtransandoneorientnamedrot.VARposepose1:=[[600,100,800],[1,0,0,0]];VARpospos1:=[650,100,850];VARorientorient1;pose1.pos:=pos1;!frame1.transorient1:=pose1.rot;!frame1.rotpose1.pos.z:=875;confdata-Robotconfigurationdata------[cf1,cf4,cf6,cfx]confdataisuse

7、dtodefinetheaxisconfigurationsoftherobot.Example1VARconfdataconf15:=[1,-1,0,0]Arobotconfigurationconf15forrobottypeIRB5400isdefinedasfollows:Theaxisconfigurationoftherobotaxis1isquadrant1,i.e.90-180º.Theaxisconfigurationoftherobotaxis4isquadrant-1,i.e.0-(-90º).The

8、axisconfigurationoftherobotaxis6isquadrant0,i.e.0-90º.Theaxisconfigurationoftherobotaxis5isquadrant0,i.e.0-90º.extjoint-Positionofexternaljoints------[a

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。