首页 | 本学科首页   官方微博 | 高级检索  
     

SPI总线扩展PLC输出点数的设计与实现
引用本文:李磊,李正,曹凤莲,朱腾.SPI总线扩展PLC输出点数的设计与实现[J].微计算机信息,2012(6):52-53,66.
作者姓名:李磊  李正  曹凤莲  朱腾
作者单位:淮阴师范学院物理与电子电气工程学院;淮安市供电局
摘    要:针对PLC主模块可用输出点数少的缺点,提出了采用SPI总线和移位寄存器HC595相结合扩展PLC输出点数,并设计了输出扩展电路;根据SPI总线及HC595的时序特点,确定了SPI的时钟模式,解决了时序的配合问题,并确定了输出点数的逻辑顺序;UDTY端接一下拉电阻,保证其处于高电平,SPI2CLK信号取反后输入到HC595,保证其采样到稳定的SPI输出数据,滤波电容,提高了电路抗干扰性能;编程实现对扩展输出点数的控制。实际应用表明,该设计方案经济、可靠。

关 键 词:可编程逻辑控制器  SPI总线  移位寄存器  扩展输出点数

Design and implementation of extending PLC output points based on SPI bus
LI Lei,LI Zheng,CAO Feng-lian,ZHU Teng.Design and implementation of extending PLC output points based on SPI bus[J].Control & Automation,2012(6):52-53,66.
Authors:LI Lei  LI Zheng  CAO Feng-lian  ZHU Teng
Affiliation:(School of Physics and Electronic Electrical Engineering, Huaiyin Normal University)
Abstract:In order to provide more available output points for PLC master module and integrate the SPI bus with the shift registers,a new method for extending PLC output points is proposed,and the output expansion circuit is designed.Based on the time serie characteristics of the SPI bus and the shift registers of HC595,select the clock mode of SPI,then matching problem of their series and logical output order are solved.A resistance is connected to UDTY port for insuring it high level,SPI2CLK negated then put into HC595,making sure it get steady data of SPI,improving the circuit anti-interference performances by filter capacitors,the extended output points is controlled by the programming.Practical application indicates that the design method is economic and reliable.
Keywords:PLC  SPI bus  shift register  extended output points
本文献已被 CNKI 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号