日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

s7300plc串口通信_实现S7-300 PLC与PC机的普通串口通信毕业论文

發(fā)布時間:2024/3/24 编程问答 42 豆豆
生活随笔 收集整理的這篇文章主要介紹了 s7300plc串口通信_实现S7-300 PLC与PC机的普通串口通信毕业论文 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

摘? 要

現(xiàn)代工業(yè)控制系統(tǒng)通常以PC機(jī)為上位機(jī),通過與現(xiàn)場工控設(shè)備如PLC等的數(shù)據(jù)交換與處理,實現(xiàn)對工業(yè)生產(chǎn)的過程控制。這就促進(jìn)了上位機(jī)與現(xiàn)場工控設(shè)備通信手段的不斷發(fā)展和完善。

西門子S7-300 PLC因其功能強(qiáng)、速度快、擴(kuò)展靈活,在廣大工業(yè)控制領(lǐng)域中占有重要地位。目前,S7-300PLC與PC的通信是通過專用接口卡5611卡和MPI電纜實現(xiàn)的。通信軟件為STEP7、PRODAVE_S7_mini以及功能十分強(qiáng)大的WinCC。但是,對于較小的工業(yè)控制系統(tǒng)使用這樣的軟硬件,成本相對昂貴,同時對操作人員的技術(shù)要求也較高。本課題著重研究通過VB自編通信程序,使用普通串口,實現(xiàn)上位機(jī)與PLC的自由通信。

關(guān)鍵詞:S7-300PLC;串口通信;vb

Abstract

Modern industrial control systems are generally in the PC for PC, the field of industrial equipment such as PLC data exchange and processing, the realization process of industrial production control. This will promote the continuous development of computer and the field of industrial equipment and improve the means of communication.

Siemens S7-300 PLC because of its strong function, high speed, flexible expansion, occupies an important position in the field of industrial control. At present, the communication between S7-300PLC and PC is realized by a special interface card 5611 card and MPI cable. Communication software for the STEP7, PRODAVE_S7_mini and powerful WinCC. However, for the industrial control system using the software and hardware that smaller, the cost is relatively expensive, at the same time, the technical requirements of the operator is also higher. This paper focuses on the research on self communication program by VB, using the common serial port, free communication between PC and PLC.

Keywords: S7-300PLC; serial communication; VB

目? 錄

摘? 要?1

Abstract?2

目? 錄?3

1 緒論?4

1.1 引言?4

1.2? Visual Basic串口通信技術(shù)的研究背景與前景?4

2 串口通信?6

2.1? 串口通信的基本概念?6

2.1.1 并行通信與串行通信?6

2.1.2 串行通信工作模式?7

2.1.3? 異步傳輸與同步傳輸?7

2.1.4 握手信號?7

2.1.5 通信參數(shù)?8

2.2 RS-232串口通信標(biāo)準(zhǔn)?9

2.2.1 電氣特性?9

2.2.2 接口連接器?9

2.2.3? 近距離通信線路連接?10

2.3 計算機(jī)中的串行端口?11

2.3.1 查看串行端口信息?11

2.3.2? 串行端口的中斷?13

2.3.3? 串行端口的地址?15

2.4? 串口通信測試?15

2.4.1? 系統(tǒng)連接?15

2.4.2? 溫度測量與控制?16

2.4.3? 計算機(jī)串口設(shè)置?16

2.4.4? 串口程序的使用?17

3? Visual Basic與串口通信?18

3.1? MSComm控件?18

3.1.1? MSComm控件處理通信的方式?18

3.1.2 MSComm控件的引用?18

3.1.3? MSComm控件的常用屬性?19

3.1.4? MSComm控件的事件?20

3.1.5? MSComm控件通信步驟?20

3.2? API函數(shù)?20

3.2.1 動態(tài)鏈接庫與API函數(shù)?20

3.2.2? Visual Basic與動態(tài)鏈接庫?21

3.2.3 用API文本瀏覽器聲明API函數(shù)?21

3.2.4 與串口通信有關(guān)的API函數(shù)?23

3.3 直接訪問端口?23

4 利用MSComm控件實現(xiàn)PC雙串口互通信?25

4.1 硬件連接?25

4.2 軟件實現(xiàn)?25

4.2.1 MSComm簡介?25

4.2.2數(shù)據(jù)監(jiān)測程序?25

4.2.3監(jiān)測結(jié)果?26

總? 結(jié)?28

參考文獻(xiàn)?29

致? 謝?30

總結(jié)

以上是生活随笔為你收集整理的s7300plc串口通信_实现S7-300 PLC与PC机的普通串口通信毕业论文的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。