论文部分内容阅读
可编程控制器(PLC)在现代工业中得到了越来越广泛的应用,同时由于计算机的日益普及,在许多应用中需要在工控机(IPC)与可编程控制器(PLC)之间进行数据交换。串口通讯是最常用的通讯方法。文章介绍了Delphi环境下三种实现IPC和PLC串口通讯的方法:使用控件、调用API函数和使用动态连接库,并比较了三种方法的异同及适用范围。
PLCs are more and more widely used in modern industry. At the same time, due to the increasingly popularization of computers, there are many applications that require data between IPC and PLC exchange. Serial communication is the most commonly used method of communication. This article introduces three ways to implement IPC and PLC serial communication in Delphi environment: using controls, calling API functions and using dynamic link library, and comparing the similarities and differences and the scope of the three methods.