摘要
利用西门子CP340自带的串口通讯协议394R,并根据自动称重系统中重量数据格式的要求自定义应用层协议,用VC++6.0编写应用程序,实现自动称重系统中计算机实时从PLC中读取重量数据。
We used the Siemens CP340 with its serial communication protocol 394R,customized the application layer protocol according to the weight data format in the automatic weighing system,and use VC+ +6.0 to compose programs,to realize the real-time reading of weight data from PCL in the automatic weighing system.
出处
《微型电脑应用》
2008年第10期48-49,6,共2页
Microcomputer Applications
关键词
PLC
串口通信
通信协议
实时多任务
多线程
PLC
Serial communication
Communication protocols
Real-time multi-task
Multi-threaded