1、 I 摘要 论文以松下 FP1 系列 PLC 为研究对象,对其 MEWTOCOL-COM 协议,有关 远程测控系统开发,以及 PLC 指令的机器代码进行系统研究,并在此基础上 开发 B/S 模式的 Web 远程测控系统。 论文首先介绍了 PLC 的运用领域和发展前景;其次对 MEWTOCOL-COM 协 议进行了系统的研究分析,以实验统计的方式,得出了 PLC 基本指令的机器 代码表;接着基于 LABVIEW10.0,开发了 PLC 与上位机的人机界面,简单实 现了上位机对 PLC 端口,寄存器,定时器以及布尔命令的读写功能。接下来 又介绍了通讯原理和通讯模式,描述了 LABVIEW10.0
2、中的通讯函数,然后以 16 盏流水灯为例子,先在向 PLC 输入梯形图,然后在通讯系统上对 PLC 的进 行监控,以 16 盏布尔灯显示其运行过程。接着比较分析了 Date Socket 通 讯,TCP 通讯和 Web 通讯的优缺点,并解释了最终通讯方案选择的原因。最 后基于 Web 通讯技术实现了 PLC 与上位机的远程通讯。 本文技术对进一步研发 PLC 与上位机通讯系统提供了一定的借鉴作用, 尤其机代码的测定在后续进一步开发通讯界面提供了新的方向。 关键字:关键字:松下 PLC 上位机 串口通讯 指令机代码 LABVIEW10.0 Web 服务器 II Design a Communic
3、ation System Between PLC and Computer ABSTRCT The paper see the PLC of FP1 series made by Panasonic as the research object, studying for the MEWTOCOL-COM protocol, the development of remote monitoring and control system, as well as the machine code represented the PLC command ,and finally build a re
4、mote measurement and control system based on the Web in the model of B/S. Firstly, the application fields and development prospects are introduced in this paper. Secondly, the MEWTOCOL-COM protocol is studied in a systematic way. Meanwhile, the machine code table of the PLC basic command was found i
5、n statistical methods by conducting serious experiments. Thirdly, a PC interface lining to PLC was constructed based on LABVIEW10.0,and it can implement some function simply ,such as read or write the PLC ports ,registers, timers, or the Boolean command and so on. Then the paper introduces the commu
6、nication principle and communication modes, describes communication function in LAB- VIEW10.0, and takes 12 lamps for example, we input the ladder diagram into a PLC, and then monitor the PLC with display 16 Boolean lamps display its runni- ing process by the communication system which we have developed . Then we do a comparative analysis of the Date Socket communication, TCP communication and Web in advantages and disadvantages. Finally, the PC interface realizes the long-distance communicatio