- 1、本文档共1页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
G代码例程(-Code Example)
TURBO PMAC PROGRAM EXAMPLES JAN -2004
G-Code Program Example
Turbo PMAC’s capability for accepting and executing RS-274 (“G-code”) programs gives the
user great power and flexibility in creating andrunning programs that describe path motion and
its associated I/O. This is important not justfor classic CNC machine tool applications, but for
any application that uses CAD/CAM software for the automatic generation of these programs.
Since RS-274 is a loose standard, with hundreds of “dialects” and thousands of machine-specific
implementation issues, the key to Turbo PMAC’sstrategy for these programs is that it treats the
G, M, T, and D codes within the programs as special subroutine calls. The machine integrator
writes these subroutines so as to implement the features of the specific dialect and machine. How
these subroutines are generated can remain hidden from the person (or software package) that
generates the part program, and from the machineoperator, for whom the controller simply loose
standard appears as a standard “G-code” machine.
Here we give a few examples of how this feature can be used in Turbo PMAC.
A Basic Example
This first case implements a bare minimum of the most standard G and M-codes. For the G04
dwell, it uses a P argument, expressed in seconds. For controlling the “cutting” tool, it simply
uses a discrete digital output. The path is the tool-center path, so no cutter-radius compensation is
used.
; Setup and definitions
#define BitsPassed Q100 ; Var for checking passed args
#define PArg Q116 ; Var for P argument
#define PVal 32768 ; Val for checking if P passed
#define CutterOn M1 ; Discrete cutter output
CutterOn-Y:$078802,8,1 ; Machine Output 1
1 ; Address CS 1
#1-2000X
#2-2000Y
#3-2000Z
; Moti
您可能关注的文档
- 2014年度人员继续教育《会计基础工作规范》.doc
- 2014年《PGA技术》考试题型示范.pdf
- CON - 0 Group Luggage - Check In 团队行李抵店程序.doc
- Contrative Analysis语言学中的对比分析.ppt
- CoreSek Mysql 安装与测试 For Mac OS X.doc
- COMPAS单词翻译及使用说明1.doc
- Corporte finance11公司金融.ppt
- CORBA实与CORBA服务.ppt
- COPD诊治南的解读.ppt
- CP115 RW洁净房工序safe-launch控制计划(01-1).pdf
- 凹印机数字化设计平台.pptx
- 2024自考专业(公共关系)考前冲刺练习题附参考答案详解【精练】.docx
- 凸轮连杆机构设计.pptx
- 2024自考专业(公共关系)考前冲刺练习题含答案详解【典型题】.docx
- 2024自考专业(公共关系)考前冲刺练习题带答案详解(综合卷).docx
- 2024自考专业(公共关系)考前冲刺练习题含完整答案详解【全优】.docx
- 2024自考专业(公共关系)考前冲刺练习题含完整答案详解(历年真题).docx
- 2024自考专业(公共关系)考前冲刺练习题及完整答案详解(名校卷).docx
- 出产房护理宣教要点.pptx
- 2024自考专业(公共关系)考前冲刺练习题新版附答案详解.docx
最近下载
- DB37∕T 242-2021 建筑消防设施检测技术规程.docx
- PE管材验收标准(SDR17.6).docx VIP
- 复旦大学《计算机体系结构》期末考试两套试卷(含答案).pdf VIP
- 中国近现代史纲要知到课后答案智慧树章节测试答案2025年春海南大学.docx VIP
- 形考作业3:基于UML的大学图书馆图书信息管理系统设计实验.docx VIP
- 大学《地震工程学》课程课件.pptx
- 2024年二建继续教育-基于建筑信息模型、虚拟施工及网络的项目管理理论及实践1、2答案.docx VIP
- 2024年二建继续教育-剖析价值工程及如何运用价值工程优选设计方案1、2答案.docx VIP
- 茶颜悦色案例分析.pptx VIP
- yolov9论文中文翻译.docx VIP
文档评论(0)