|
摘要: |
Delphi环境下的SPComm控件是专用于串行通信口开发的控件,可用在PC机和工业电子设备组成的监控系统中。在介绍SPComm控件的基本属性(控件引用、属性描述、调用方法、事件驱动机制)的基础上讨论了串行通信的基本组成模式(PC机与单个数据终端设备(DTE)采用RS-232接口通信、PC机与多个DTE采用RS-485通信);以及通信协议和串行通信软件的编程实现。实践证明该方式适应性强、兼容性好、管理和维护方便。 |
关键词: SPComm控件,串行通信,数据终端设备,人机界面 |
DOI: |
分类号:TP311.52 |
基金项目: |
|
Serial communication design based on SPComm control |
WU Yan WANG Qi ZHOU Zhi-jie
|
Abstract: |
SPComm is a specific control for serial communication design in Delphi,which can be used in the monitoring system composed of PC and electronic equipment.SPComm is introduced in its installment,property description,calling method and event driving mechanism,based on which the basic composition modes of serial communication are discussed:the RS-232 between PC and DTE(Data Terminal Equipment)and the RS-485 among PC and multiple DTEs.The communication protcol and serial communication software are also presented. |
Key words: SPComm control,serial communication,DTE,man-machine interface |