没有合适的资源?快使用搜索试试~ 我知道了~
[工业控制] 嵌入式PLC集成软件开发环境[附程序].doc
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 197 浏览量
2022-06-12
15:06:53
上传
评论
收藏 411KB DOC 举报
温馨提示
![preview](https://dl-preview.csdnimg.cn/85619874/0001-f3c9cc3384cdb41f2b0a81490d85f92a_thumbnail-wide.jpeg)
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
试读
51页
[工业控制] 嵌入式PLC集成软件开发环境[附程序]
资源推荐
资源详情
资源评论
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![doc](https://img-home.csdnimg.cn/images/20210720083327.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![7z](https://img-home.csdnimg.cn/images/20210720083312.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/release/download_crawler_static/85619874/bg1.jpg)
摘要
可编程序控制器作为一种工业控制计算机,其最大特点是“可编
程”, 即突出了软件的柔性控制思想。与其它控制设备相比较,它具
有功能完善、扩展灵活和可靠性高等明显优势,目前已成为工业生产
控制领域中最常见最重要的核心装置。
本文结合可遍程序控制器的应用现状,分析了它的基本原理与实现
方式,提出了一种基于通用微机(工控 PC 机)ISA 总线技术开发的智
能化嵌入式可编程序控制器系统设计方案,并且详细说明了组成系统
的硬件电路设计;同时针对梯形图编辑软件专用性太强的现况,顺应
控制领域开发化的潮流,设计了梯形图集成开发环境,着重论述了梯
形图程序的编辑、编译部分。
在嵌入式 PLC 软件开发及实现过程中所解决的主要问题有:
1. 编制了梯形图集成开发环境。采用模块化设计思想,逐一编写
了文件、编辑、编译、通讯和监控模块,实现了梯形图程序的建
立、存储、打印、编辑、编译和传输,并且可以监控程序的运行
状态。在编译模块中留有接口,用户可根据可编程控制器的
CPU 类型编写相应编译程序。该软件经实例验证表明能较好地
完成上述模块的基本功能。
2. 正向深度优先单趟扫描算法。该算法把把梯形图看成由功能元
件和连接元件组成的稀疏网络矩阵,利用连接元件间的不同组合
表示功能元件间不同的逻辑关系,并据此对程序逻辑行中的所有
路径进行单趟扫描编译,编译结果与手工翻译一致。
嵌入式有效地解决了 PLC 与主机通讯和协调工作的问题,可满足
控制系统实时性的要求,同时性价比优越,无疑是可编程序控制器今
后一个极具有研发价值的发展方向;以编程语言的开放化为出发点而
设计的梯形图集成开发环境。
关键词:嵌入式、梯形图编辑、梯形图编译原理
![](https://csdnimg.cn/release/download_crawler_static/85619874/bg2.jpg)
ABSTRACT
Programmable Logic Controller(PLC) is a kind of industrial control
computer, the most important feature is “programmable”, which gives
prominence to the idea of software’s flexible control. Compared with other
control equipment, PLC possesses many advantages such as perfect
function, convenient expand and high reliability etc, and at present becomes
the most important and the widely used center device.
Combined with application actuality, the elemental principle and
effectuation mode of PLC are analyzed in details in this thesis, and based
on ISA technique of microcomputer or industrial control PC a design plan
of intelligent embedded PLC system is presented as well. The author also
explains the system hardware circuit design in detail. At the same time, in
order to conform the opening tendency of control filed and solve the
problem that ladder diagram software is narrowly limited to special
purpose, in this thesis the edit, compile part of ladder program are
emphatically discussed.
The main problems solved in the development and complete process of
embedded PLC software and hardware are introduced as follows:
1. Composition of ladder diagram program IDE. Based on the
modularization design idea, this software is compose of modules of
File, Edit, Compile, Communicate and Monitor etc, can composed
2
![](https://csdnimg.cn/release/download_crawler_static/85619874/bg3.jpg)
of modules of File, Edit, Compile, Communicate and Monitor etc,
can complete many functions for ladder diagram file: New, Open,
Save, Print, Edit, Compile, Communication, and monitor the
running status of program. It is possible for user to develop and
write his own compile subprogram according to the CPU type of
PLC through interface set into the compile module in advance. It is
verified in practice that the software can fulfil the basic functions of
each module mentioned above.
2. Forward depth-first one-way scanning arithmetic. In this arithmetic
ladder diagram is looked upon as a loose matrix network composed
of function elements and link ones, the logic relation between the
former is expressed by the way of combination of the latter, and
according to this expression all paths of the logic row in program is
scanned in single pass, the compiled result consistent with hand
interpretation.
The embedded mode of PLC effectively solved the problem of
communication and coordination between master and slave computers, can
meet the requirement of real-time control of the system require, and the cost
performance ratio is also superior to the others. Thus it is no doubt that this
mode is a valuable developing orientation. Beginning with opening
program language, the design of ladder diagram IDE is a valuable try and
exploration for improving the generalization and standardization of ladder
diagram software.
Keyword: Embedded PLC ; Edit of ladder program; Thesis compile of
ladder program
3
![](https://csdnimg.cn/release/download_crawler_static/85619874/bg4.jpg)
目录
1 可编程序控制器的基本知识…………………………………………….8
1.1 可编程序控制器的发展……………………………………………..8
1.2 可编程序控制器的原理及应用……………………………………11
1.2.1 可编程序控制器的硬件原理………………………………….11
1.2.2 可编程序控制器的工作原理………………………………….12
1.2.3 可编程序控制器的特点、分类与应用……………………….13
1.2.4 可编程序控制器的实现方法及其现状……………………….15
2 硬件电路描述…………………………………………………………...17
2.1 中央处理器………………………………………………………..18
2.2 通讯模块…………………………………………………………..19
2.3 存储器模块………………………………………………………..19
2.4 输入/输出模块………………………………………………...…..20
2.5 硬件总体结构框图…………………………………...…………...21
3 梯形图语言的编辑……………………………………………………...21
4
![](https://csdnimg.cn/release/download_crawler_static/85619874/bg5.jpg)
3.1 梯形图的格式………………………………………………………22
3.2 梯形图编程元件……………………………………………………23
3.2.1 编程元件的分类……………………………………………….23
3.2.2 编程元件的定义……………………………………………….24
3.2.3 编程元件的显示……………………………………………….26
3.2.4 编程元件的存储格式………………………………………….28
3.3 梯形图网络…………………………………………………………29
3.3.1 网络的结构…………………………………………………….29
3.3.2 网络的存储…………………………………………………….30
3.4 梯形图集成开发环境………………………………………………32
3.4.1 全屏幕编辑…………………………………………………….32
3.4.2 梯形图集成开发环境………………………………………….35
3.4.3 菜单技术和状态栏…………………………………………….37
3.4.4 文件模块……………………………………………………….38
3.4.5 编辑模块……………………………………………………….39
3.4.6 集成环境的使用……………………………………………….39
3.5 小结…………………………………………………………………40
4 梯形图编译……………………………………………………………...42
4.1 梯形图功能元件间的逻辑关系 ………………………………
…...43
4.2 连接元件的相互组合………………………………………………46
4.3 正向深度优先单趟扫描算法………………………………………51
4.3.1 连接元件组合的扫描处理…………………………………...53
4.3.2 算法详述及框图……………………………………………...54
4.3.3 编译指令………………………………………………………59
4.4 小结………………………………………………………………...61
致谢……………………………………………………………………….62
参考文献………………………………………………………………….63
附录……………………………………………………………………….64
5
剩余50页未读,继续阅读
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/default.jpg!1)
omyligaga
- 粉丝: 54
- 资源: 2万+
![benefits](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-1.c8e153b4.png)
下载权益
![privilege](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-2.ec46750a.png)
C知道特权
![article](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-3.fc5e5fb6.png)
VIP文章
![course-privilege](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-4.320a6894.png)
课程特权
![rights](https://csdnimg.cn/release/downloadcmsfe/public/img/vip-rights-icon.fe0226a8.png)
开通VIP
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)