登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 理工学类 > 自动化 > 正文

三菱FX2N毕业论文

 2022-07-18 10:07  

论文总字数:26307字

摘 要

本次毕业设计主要详细地介绍了运用Visual Basic汇编程序实现对三菱FX系列PLC的通讯连接。对其所用到的知识点,主要包括了五大部分:第一部分主要介绍了Visual Basic汇编软件的发展历史和应用领域,以及可编程序控制器在现代工厂设备领域中的重要作用,从而说明了两者之间相互作用的重要性。第二部分开始介绍通讯控件MSComm的主要特点,及其MSComm控制项的建立。第三部分则重点介绍Visual Basic与PLC之间的通讯方法,主要涉及其通讯协议,通讯格式等内容。只有顺利的进行PLC与PC间的通讯,才可以进行后面程序的调试。第四部分和第五部分则详细的介绍了PLC程序与VB之间的控制原理及作用,主要例举了PLC模拟骰子,计数器的监控两组程序,在已经汇编的PLC程序的基础上,通过VB控制画面的编写,在可以顺利通讯的基础上,实现VB对PLC程序的控制,主要表现为数据的写入和读出以及PLC内部各个继电器的点位控制。

关键词 : Visual Basic;三菱FX系列PLC;通讯控件MSComm;通讯协议

ABSTRACT

The main details of the graduate design on the use of Visual Basic assembler of Mitsubishi FX series PLC communications connectivity.By the use of its knowledge points, including five parts: The first part of introduced the Visual Basic software compilation of the history of the development and application fields, as well as PLC is play an important role in the area of modern factory equipment and the importance of interaction between the two. The second part introduces the main characteristics of start of the MSComm communication control, and MSComm control.The third part will focus on Visual Basic and means of communication between the PLC, mainly involving its communication protocol, communications and other content format. Only the smooth conduct of the PLC and communication between the PC can only be conducted after the commissioning process. Part IV and V while the detailed introduction of the PLC program and VB between the control theory, the main examples of the PLC simulation dice, counters the monitoring procedures were in the process have been compiled on the basis of PLC, through the VB Control of the preparation of the screen, can be smoothly on the basis of communication, and VB of the PLC process control, mainly for data write and read out the relay and the PLC within a point of control.

Keywords: Visual Basic; Mitsubishi FX series PLC; protocol

目录

摘 要 Ⅰ

ABSTRACT Ⅱ

第1章 绪 论 3

1.1 课题研究背景及意义 1

1.2 可编程控制器的发展 1

1.3 通讯控件MSComm 2

1.4 设计任务和内容 4

第2章 FX-PLC与VB的通讯研究 6

2.1 FX系列PLC通讯协议 6

2.1.1 PLC←→PC通讯参数 6

2.1.2 PLC←→PC传输讯息格式 7

2.2 FX_PLC 元件规格及特性 8

2.3 PC→PLC通讯命令 9

2.3.1 PC→PLC元件群读取命令讯息格式 10

2.3.2 PC←PLC元件群读取的回应讯息格式 12

3.3.3 PC→PLC元件群写入命令讯息格式 15

2.3.4 PC→PLC元件群写入的回应讯息格式 17

2.4单一元件的强制 18

2.4.1 PC→PLC单一元件的强制命令讯息格式 18

2.4.2 PC→PLC单一元件的强制回应讯息格式 19

2.5 FX2_PLC←→PC的基本通讯命令 19

2.6 FX2系列PLC与PC连接 19

第3章 下位机控制程序的设计 21

3.1 设计步骤 21

3.1.1 VB表单_Form的建立 21

3.1.2 VB控制项属性的设定 21

3.1.3 VB模组_Module的建立 22

3.2程序码 22

3.2.1表单_Form 23

3.2.2模组 24

3.3 PLC程式 32

3.3.1 PLC简体图如下 32

3.3.2 PLC元件 32

3.3.3程序解说 32

3.4 运行结果 33

第4章 上位机监控程序的设计 37

4.1 设计步骤 37

4.1.1 VB表单_Form的建立 37

4.1.2 VB模组_Module的建立 37

4.1.3 VB控制项及其属性的设定 38

4.2 程序码 39

4.2.1 表单_Form 39

4.2.2 模组 41

4.3 PLC程序 42

4.4运行结果 43

总 结 47

参考文献 48

致 谢 49

第1章 绪 论

1.1 课题研究背景及意义

Basic语言,是早期微型计算机中广泛适用的计算机程序设计高级语言。Visual Basic在原有Basic语言的基础上进一步发展,综合了Basic语言和Windows操作系统的优点,把它们融合在一起,为初学者在Windows的环境下编写应用程序提供了良好的开发环境。“Visual”的原意是指“可视的”或“看得见的”,是为用户开发图形用户界面(GUI)提供的一种方法。用户不需要编写大量代码去描述界面元素的外观和位置,而只要把预先建立的对象加到屏幕上的适当位置,再进行简单的设计即可。

在工业生产中,人们常常面临着数据采集与管理。作为工厂自动化的三大支柱可编程控制器PLC,由于其安全可靠,广泛的用于数据采集与控制。生产过程中,要监视PLC内部的数据与运行状况,选用市场上的人机界面或组态软件,虽然功能丰富,但大都价格昂贵,在一些中小规模的生产场合,人们希望能自己用高级语言开发一个简易实用的通信程序。使用Visual Basic 6.0,开发串行通信程序时,有两种方法,一种是用Windows API函数,另一种是用VB支持的通信控件 MSCOMM。

请支付后下载全文,论文总字数:26307字

您需要先支付 80元 才能查看全部内容!立即支付

企业微信

Copyright © 2010-2022 毕业论文网 站点地图