摘要
触摸屏通常可以直接对PLC的变量进行读写编程,但对于单片机用户,触摸屏提供自定义通信协议,需要根据不同单片机进行编程,实现数据交换。针对此问题,对Hitcech触摸屏自定义通信协议进行了研究,基于单片机PIC18F452介绍了HITECH触摸屏与单片机实现串行通信的方法,给出了硬件电路连接图、通信协议以及关键通信程序。
Touch screen can generally read and write data directly from variable address of PLC,but for the MCU users,need to make user's own program according the touch screen's computer protocol. To do that,this paper introduced a communication method based on RS232 between HITECH touch screen and PIC18F452 which applying the HITECH touch screen computer protocol. The computer protocol was briefly described,and the scheme diagram of the hardware and some key program were also provided.
出处
《机电工程技术》
2010年第3期36-38,103,共4页
Mechanical & Electrical Engineering Technology