单片机与PLC通讯技术在纺织整经机中的应用
上传时间: 2013-11-24
上传用户:redmoons
PC与单片机数据采集系统的USB通讯设计论文
上传时间: 2013-10-30
上传用户:hanli8870
和其他的μC/OS-II移植文件类似,设备代码由以下3 到5 个文件组成的。 Os_cpu.h Os_cpu_c.c Os_cpu_a.s90 (该文件仅在ICC 编译器中使用) Os_cpu_i.s90 (该文件仅在ICC 编译器中使用) Os_dbg.c Os_dbg.c 仅需在IAR 工程中使用。 3.01 OS_CPU.H 3.01.01 OS_CPU.H, macros for ‘externals’ Listing 3-1, OS_CPU.H, 外部宏(macros for ‘externals’) #ifdef OS_CPU_GLOBALS #define OS_CPU_EXT #else #define OS_CPU_EXT extern #endif
上传时间: 2013-11-25
上传用户:zhaistone
西门子从PLCSIM V5.4 SP3开始增加了对与PLC之间通讯的仿真能力,但是这种能力仅仅局限于Profibus-S7之间的通讯。 S7通讯是S7系列PLC基于MPI,Profibus,Ethernet网络的一种优化的通讯协议,主要用于S7-400之间,S7-300与S7-40之间的主对主通讯,也非常适合S7 PLC与HMI通讯,例如与操作面板OP/TP以及上位监控软件Wincc的通讯,下面的例子将围绕Profibus网络展开S7的通讯。 每个CPU都有资源限制,如过程映像区的大小,计数器/定时器的个数,同样,通信的资源也有限制,在产品样本中有CPU的链接数量指标,这就是指CPU的通信资源。旧版本的S7-300PLC有动态连接与静态连接的区分,动态连接指通过MPI,PLC与PLC通过调用SFC通信的通信连接,调用SFC时连接建立,停止调用时连接仍然维持,通过调用断开连接的SFC才能释放连接资源;静态连接指与HMI的通信连接,当把OP/TP、Wincc连接到同一CPU时会发生有的OP/TP、Wincc连接不上,这是因为使用的连接数已经超过了CPU的连接资源限制,此外还有一个静态连接资源保留给编程器使用。
上传时间: 2013-10-12
上传用户:13736136189
本内容介绍了IO模拟串口通讯的实现方法及实例分析
上传时间: 2013-11-11
上传用户:jiwy
摘要! 为提高单片机通讯的实时性" 采用了动态的内存管理方法" 并将其应用到AUTO2000DCS, 系统中" 获得了满意的效果 关键词! 动态分区静态分区最先适应法内存表
上传时间: 2013-10-19
上传用户:yangqian
#ifndef __485_C__ #define __485_C__ #include #include #define unsigned char uchar #define unsigned int uint /* 通信命令 */ #define __ACTIVE_ 0x01 // 主机询问从机是否存在 #define __GETDATA_ 0x02 // 主机发送读设备请求 #define __OK_ 0x03 // 从机应答 #define __STATUS_ 0x04 // 从机发送设备状态信息 #define __MAXSIZE 0x08 // 缓冲区长度 #define __ERRLEN 12 // 任何通信帧长度超过12则表示出错 uchar dbuf[__MAXSIZE]; // 该缓冲区用于保存设备状态信息 uchar dev; // 该字节用于保存本机设备号 sbit M_DE = P1^0; // 驱动器使能,1有效 sbit M_RE = P1^1; // 接收器使能,0有效
上传时间: 2014-12-26
上传用户:604759954
单片机通讯电路的抗干扰设计
上传时间: 2013-12-20
上传用户:jing911003
详细介绍工控软件组态王与单片机多机串口通讯的设计原理。分析组态王提供的直接与单片机串口通信方法的优点,给出系统基于RS-485总线传输的接口电路原理图。根据组态王提供的通讯协议和单片机多机串口通讯的原理,给出程序设计流程与思路。 Abstract: In this paper,the design principle of communication between multi-SCM and KingView by serial ports is described in detail.We analysis the advantage of method supplied by KingView,by which KingView can communicate with serial ports of SCM directly,and provide the system’s interface circuit based on the RS-485transmission line.We provide flow diagram of programming and thinking on the basis of communication protocol supplied by KingView and principle of communication among multi-SCM through serial ports.
上传时间: 2013-12-19
上传用户:tecman
介绍一种基于CAN总线的牵引变电站自动化系统通讯规约的设计,CAN通讯规约采用标准帧,报文采用主动发送和发送查询两种处理形式。该设计在城市轻轨与地铁牵引变电站中的应用表明:可实现间隔层和通讯处理层的数据快速、可靠的交换,提高牵引变电站的安全性和稳定性 。 Abstract: This paper firstly presents a kind of design dealing with communicational protocol to the traction substation automation system based on CAN bus,and then comes up with the ideas that all frames of CAN communicational protocol should adopt the standard frame,and that messages be processed by two ways:sending initiatively and sending quiries.Subway and light rail application shows that the use of the CAN bus is possible to exchange data quickly and reliably between the layers of the middle and the communicational processing,hence to improve the safety and stability of traction substations.
上传时间: 2013-11-07
上传用户:bs2005