-
MODBUS RTU 51与维纶触摸屏通信例程。
应用背景51和维纶触摸屏的通信。MODBUS RTU 51与维纶触摸屏通信例程。支持的功能码:位:01(读)、05(写),字:03(读)、06(写)还有与数码管显示输入的数据!注释的也比较详细。个人觉得移植性也比较好。各种的单片机上可以移植修改,关键技术51单片机与威纶通触摸屏通讯说明
本程序仅作为一个通信示例程序,实际使用需要根据需要修改。
请使用EB8000 V3.45以上软件打开触摸屏程序,程序为压缩后的触摸屏程序,请使用EB8000软件 工具——压缩/解压缩 菜单下的工具先进行解压缩;单片机使用Keil uVision3 V3.50编译
一、硬件连接
使用ATMEl 89S52单片机。
二、软件
1、通讯环境
触摸屏设置为主站,即PLC 类型 MODBUS RTU,通讯参数设为“9600,N,8,1”。
2、触摸屏程序,需要读取八个位,以及八个字,每次最少读取16个位,字可以一次读取一个也可以一次读取八个。
有0X1-0X8八个位切换开关,6X1-6X8八个字输入元件,支持的功能码:位:01(读)、05(写),字:03(读)、06(写)
当没有写操作时,屏不断的向单片机发送如下码(16进制显示):
01 01 00 00 00 10 3D C6 (位读取)
01 03 00 00 00 08 44 0C (字读取)
此时,如果不给屏发送相应返回值的话,屏就会提示“PLC no response”
3、51单片机程序思路及说明
- 2022-02-02 15:58:29下载
- 积分:1
-
在CORBA的开源项目MICO里的一个POA测试软件,服务器端的POA程序用一个默认的仆从servant来响应POA的客户端的请求。...
在CORBA的开源项目MICO里的一个POA测试软件,服务器端的POA程序用一个默认的仆从servant来响应POA的客户端的请求。-the CORBA open-source projects MICO"s a POA test software, the server-POA procedures with a default proxy servant POA response to the client"s request.
- 2022-06-15 07:19:32下载
- 积分:1
-
业务被触发 时,从BCP进入整体业务逻辑(GSL)处理的始发点。
返回点(POR):在整体业务逻辑(GSL)处理结束后,返 回到BCP继续呼叫处理的终结...
业务被触发 时,从BCP进入整体业务逻辑(GSL)处理的始发点。
返回点(POR):在整体业务逻辑(GSL)处理结束后,返 回到BCP继续呼叫处理的终结点。
-Business was triggered when, from the BCP into the overall business logic (GSL) deal with the starting point. Return point (POR): in the overall business logic (GSL) after the end of treatment and return to the BCP continues to call the end point of treatment.
- 2023-08-18 18:30:03下载
- 积分:1
-
GPRS通信样例代码,采用成都众山GPRS芯片。可实现无线通信
GPRS通信样例代码,采用成都众山GPRS芯片。可实现无线通信-GPRS communication sample code, the use of Chengdu hills GPRS chip. Can realize wireless communication
- 2022-07-13 20:32:58下载
- 积分:1
-
Note for Pioneer 1330 users.
When you write flash with OSLINK sometimes 10...
Note for Pioneer 1330 users.
When you write flash with OSLINK sometimes 10 sec waiting after writing is not enough
so if you have problems with that just wait longer - maybe 30 sec, It is depend on
written data and many other thing.
-Note for Pioneer 1330 users.
When you write flash with OSLINK sometimes 10 sec waiting after writing is not enough
so if you have problems with that just wait longer- maybe 30 sec, It is depend on
written data and many other thing.
- 2022-03-21 18:16:31下载
- 积分:1
-
Java即时通信工具(JICQ)设计文档(PPT),内容详细。
Java即时通信工具(JICQ)设计文档(PPT),内容详细。-Java instant communication tools (JICQ) design documentation (PPT), which detailed.
- 2022-01-26 08:15:14下载
- 积分:1
-
类似ICQ源代码
用VB编写的
分为服务端和客户端两个部分
类似ICQ源代码
用VB编写的
分为服务端和客户端两个部分
-ICQ similar source code written using VB into service client and the client in two parts
- 2022-07-20 12:44:04下载
- 积分:1
-
的sl11ride是一种低成本、高速通用串行总线基于RISC控制器…
The SL11RIDE is a low cost, high speed Universal Serial Bus RISC based Controller board. It contains a
16-bit RISC processor with built in SL11RIDE ROM to greatly reduce firmware development efforts. Its
serial flash EEPROM interface offers low cost storage for USB device configuration and customer product
specific functions. New functions can be programmed into the I2C by downloading it from a USB Host
PC. This unique architecture provides the ability to upgrade products, in the field, without changing the
peripheral hardware.-USB IDE solution
- 2022-03-19 17:16:13下载
- 积分:1
-
pci rt8139 decoder card connected to the circuit diagram.
c51连接pci rt8139网卡的电路原理图。-pci rt8139 decoder card connected to the circuit diagram.
- 2022-03-19 09:50:16下载
- 积分:1
-
RFC3261 日文翻译版本。完全按照英文原版的3261文档翻译完成。...
RFC3261 日文翻译版本。完全按照英文原版的3261文档翻译完成。-Japanese translation version of RFC3261. In full accordance with the original 3261 English translation of complete documents.
- 2022-10-29 17:00:03下载
- 积分:1