标题:[求助]用vf作串口通信
只看楼主
yx2401
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2006-5-15
 问题点数:0 回复次数:3 
[求助]用vf作串口通信

有人会用vf作串口的通信通信程序么

以及协议 源代码等等

email yx2401@163.com

搜索更多相关主题的帖子: 串口 通信 
2006-05-15 16:01
david_lu
Rank: 1
等 级:新手上路
帖 子:4
专家分:0
注 册:2006-5-17
得分:0 
在你的form中加ActiveX control, Microsoft Comunication Control,将对象取名例如为oCom

oCom.Init

This.commPort = 1 && RS232 COM#1
This.settings = "9600,n,8,1"
This.PortOpen=.T.
This.rthreshold= 1
This.InputLen=1
This.InputMode=0

oCom.OnComm

Thisform.Edit1.Value = rtrim(Thisform.Edit1.Value) + This.Input
2006-05-17 16:40
ytwj
Rank: 1
等 级:新手上路
帖 子:41
专家分:0
注 册:2006-5-15
得分:0 

希望你能用的着

EyvUbg69.rar (3.72 KB)

[此贴子已经被作者于2006-5-18 9:14:08编辑过]

2006-05-18 09:14
pidaneng
Rank: 1
等 级:新手上路
帖 子:2
专家分:0
注 册:2012-3-20
得分:0 
,不错,谢谢楼上的朋友
2014-02-17 10:36



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-64376-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.944126 second(s), 11 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved