# LabVIEW-GCode-Parser
This SubVI resolves GCodes commands into an array of clusters. The command array can then be used in other loops to issue commands to the motion controller.
Some GCode background:
This is the standard format for most GCode commands:
G1 Z-0.2432 F127.0
G1 F127.0
G1 X23.4002 Y26.2105 Z-0.1604
G1 X23.4153 Y25.2337 Z-0.1307
G1 X23.3739 Y24.1009 Z-0.1732
There should be spaces between the parameters and the initial GCode.
Also, this is inherently modal. For instance F127.0 will stay with the last 3 commands.
Not all Gcode will follow this format, but please report any bugs to make this code more robust.
For more on GCode, visit here: http://en.wikipedia.org/wiki/G-code.
Software Requirements:
LabVIEW 2014
NI SoftMotion Module 2014
Features:
1. Robust parsing ability to deal lack of spaces or formatting characters.
2. Fast! Can parse 100000+ commands in less than a second.
Instructions for use:
1. Open the LV Project "GCode Parser - SoftMotion Example.lvproj"
2. Run "GCode Parser - SoftMotion Example.vi"
3. Select a sample GCode from the dialog window. Watch run.
Notes:
In the SoftMotion example, only the following GCodes are supported:
G0 - Rapid Positioning
G1 - Linear Interpolation
G92 - Reset Position
G2/G3 - Arc Moves
This example is intended for someone to modify and combine with the motion driver of their choice.
For ex: NI SoftMotion, FlexMotion, motion VIs from other vendors, etc.
BTW, this example can also run 3D Printer GCode files! Just remember to tweak the "Velocity Scale" control on the front panel, as the feed speeds for most 3D Printer files (the "F" parameter) is mostly in step/s, you need to slow that down to get a more realistic speed in mm/s (velocity scale around 1/60 or so.)
没有合适的资源?快使用搜索试试~ 我知道了~
LabVIEW-GCode-Parser:解析GCode命令的工具
共29个文件
vi:8个
nc:5个
tap:3个
需积分: 50 15 下载量 106 浏览量
2021-06-20
02:51:25
上传
评论 2
收藏 4.87MB ZIP 举报
温馨提示
LabVIEW-GCode-解析器 该子 VI 将 GCodes 命令解析为一个簇数组。 然后可以在其他循环中使用命令数组向运动控制器发出命令。 一些 GCode 背景: 这是大多数 GCode 命令的标准格式: G1 Z-0.2432 F127.0 G1 F127.0 G1 X23.4002 Y26.2105 Z-0.1604 G1 X23.4153 Y25.2337 Z-0.1307 G1 X23.3739 Y24.1009 Z-0.1732 参数和初始 GCode 之间应该有空格。 此外,这本质上是模态的。 例如 F127.0 将保留最后 3 个命令。 并非所有 Gcode 都会遵循这种格式,但请报告任何错误以使此代码更加健壮。 有关 GCode 的更多信息,请访问此处: : 。 软件要求:LabVIEW 2014 NI SoftMotion 模块 2014
资源详情
资源评论
资源推荐
收起资源包目录
LabVIEW-GCode-Parser-master.zip (29个子文件)
LabVIEW-GCode-Parser-master
GCode Parser
From OpenG.lib
Convert EOLs__ogtk.vi 6KB
Convert EOLs (String Array)__ogtk.vi 11KB
String to 1D Array__ogtk.vi 13KB
Multi-line String to Array__ogtk.vi 12KB
Convert EOLs (String)__ogtk.vi 11KB
GCode Command Cluster.ctl 5KB
Sample GCodes
Scorpion.tap 5KB
Contains G2 G3
Heart.TAP 17KB
part.nc 17KB
Smiley002.nc 5KB
Smiley face.TAP 2KB
Smiley001.nc 2KB
Test.nc 850KB
3D Printer - Taipel_101.gcode 1.7MB
Test3.gcode 1010KB
Test2.nc 905KB
GCode Parser.vi 51KB
Documentation
NPI.docx 33KB
Title.jpg 65KB
Diagram.pptx 34KB
Overall Flow.docx 33KB
Typedefs
Motion Parameters.ctl 6KB
GCode Parser - SoftMotion Example.lvproj 10KB
GCode Parser - SoftMotion Example.aliases 96B
Video
Demo.flv 3.58MB
README.md 2KB
SubVIs
Calc Arc Angles.vi 18KB
GCode Parser - SoftMotion Example.vi 177KB
GCode Parser - SoftMotion Example.lvlps 85B
共 29 条
- 1
MorisatoGeimato
- 粉丝: 51
- 资源: 4664
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0