当前位置: 首页 > news >正文

淘宝网站制作建设是真的吗成品网站1688入口的功能介绍

淘宝网站制作建设是真的吗,成品网站1688入口的功能介绍,做购物网站写数据库的流程,网站建网站目录 一、硬件环境 1、设置PLC的ip地址 2、ModbusTCP软件安装 3、PLC操作系统防火墙设置 4、网络助手连接PLC 二、创建PLC工程 1、创建寄存器读写变量 2、添加ModbusTCP授权 3、激活和运行工程 三、ModbusTCP数据协议说明 1、写单个寄存器 2、读寄存器 (1&…

目录

一、硬件环境

1、设置PLC的ip地址

2、ModbusTCP软件安装

 3、PLC操作系统防火墙设置

4、网络助手连接PLC

二、创建PLC工程

 1、创建寄存器读写变量

2、添加ModbusTCP授权

 3、激活和运行工程

 三、ModbusTCP数据协议说明

1、写单个寄存器

2、读寄存器

(1)读单个寄存器

 (2)读多个寄存器

 四、C#工程创建

1、创建UI界面

2、寄存器读写操作测试

五、下载连接


一、硬件环境

1、设置PLC的ip地址

使用PLC网口1和PC电脑连接

192.168.1.31

2、ModbusTCP软件安装

使用远程桌面进入到PLC系统中,安装TF6250-Modbus-TCP.exe软件。

 3、PLC操作系统防火墙设置

设置允许modbusTCP服务穿过PLC控制器的操作系统

(1)

 (2)

(3)

 (4)

(5)

(6)

(7)

4、网络助手连接PLC

地址:192.168.1.31

端口:502

二、创建PLC工程

 1、创建寄存器读写变量

在Main程序中创建局部变量,和MW寄存器关联

PROGRAM MAIN
VARWrite_Array			AT%MW0			:ARRAY[1..10]		OF		WORD;Read_Array			AT%MW100		:ARRAY[100..110]	OF		WORD;
END_VAR

2、添加ModbusTCP授权

 3、激活和运行工程

 三、ModbusTCP数据协议说明

1、写单个寄存器

写寄存器操作,功能码15个byte数据,每个byte功能如下

写单个寄存器
buff[0]=0x00;	//事务处理标识符Hi
buff[1]=0x01;	//事务处理标识符Lo
buff[2]=0x00;	//协议标识符 0x00	
buff[3]=0x00;	//协议标识符 0x00	
buff[4]=0x00;	//后续的Byte数量
buff[5]=0x09;	//后续的Byte数量
buff[6]=0x00;	//单位标识符
buff[7]=0x10;	//功能码:写多个寄存器
buff[8]=0x30;	//起始地址-高位	0x3000->MW0		*
buff[9]=0x00;	//起始地址-低位				*
buff[10]=0x00;	//寄存器数量
buff[11]=0x01;	//寄存器数量
buff[12]=0x02;	//数据的Byte数量
buff[13]=0x00;	//写寄存器的值	256*buff[13]+buff[14]	*
buff[14]=0x6F;	//写寄存器的值				*

MW寄存器从0x3000开始。

举例说明

给MW0写879:
00 01 00 00 00 09 00 10 30 00 00 01 02 03 6F
写成功返回:
00 01 00 00 00 06 00 10 30 00 00 01

2、读寄存器

读寄存器操作,功能码12个byte数据,每个byte功能如下

buff[0]=0x00;	//事务处理标识符Hi
buff[1]=0x01;	//事务处理标识符Lo
buff[2]=0x00;	//协议标识符 0x00
buff[3]=0x00;	//协议标识符 0x00
buff[4]=0x00;	//后续的Byte数量
buff[5]=0x06;	//后续的Byte数量
buff[6]=0x00;	//单位标识符
buff[7]=0x03;	//功能码:读多个寄存器
buff[8]=0x30;	/起始地址-高位	0x3000->MW0
buff[9]=0x00;	//起始地址-低位	
buff[10]=0x00;	//读取的寄存器数量-高位
buff[11]=0x01;	//读取的寄存器数量-低位

举例说明

(1)读单个寄存器

读单个寄存器MW0值

00 01 00 00 00 06 00 03 30 00 00 01
返回
00 01 00 00 00 05 00 03 02 03 6F
返回11个字节recv[0]-recv[10],其中recv[9]、recv[10]是寄存器值高位、低位。recv[9]*256+recv[10]

 (2)读多个寄存器

读取MW0-MW2寄存器值
00 01 00 00 00 06 00 03 30 00 00 03
返回
00 01 00 00 00 09 00 03 06 03 6F 00 01 00 02
MW0的值:recv[9]=03、    recv[10]=6F
MW1的值:recv[11]=00、    recv[12]=01
MW2的值:recv[13]=00、    recv[14]=02

实际测试:一次读取一万个也是可以的

 四、C#工程创建

1、创建UI界面

 生成两台设备子界面,其中界面1为测试PLC。界面2无设备连接

2、寄存器读写操作测试

 多个寄存器的读取,一次最多读取95个寄存器。

 

五、下载连接

https://download.csdn.net/download/panjinliang066333/87549591

包含

①PLC测试程序、②C#测试程序、③测试工具、④Mobus_TCP.exe安装库文件、⑤防火墙设置说明、⑥倍福官方测试例程

 

 


文章转载自:
http://gurry.qpnb.cn
http://rubbish.qpnb.cn
http://algidity.qpnb.cn
http://hymnography.qpnb.cn
http://ascendency.qpnb.cn
http://proslavery.qpnb.cn
http://beautification.qpnb.cn
http://atherogenesis.qpnb.cn
http://chlorous.qpnb.cn
http://chirognomy.qpnb.cn
http://parapolitical.qpnb.cn
http://glaze.qpnb.cn
http://aha.qpnb.cn
http://interwork.qpnb.cn
http://haggada.qpnb.cn
http://turkomen.qpnb.cn
http://religieux.qpnb.cn
http://tribadism.qpnb.cn
http://polychaetan.qpnb.cn
http://disenablement.qpnb.cn
http://morphogen.qpnb.cn
http://triacid.qpnb.cn
http://vandendriesscheite.qpnb.cn
http://exclude.qpnb.cn
http://synchronizer.qpnb.cn
http://neurite.qpnb.cn
http://polydirectional.qpnb.cn
http://heilongjiang.qpnb.cn
http://declinable.qpnb.cn
http://roundtop.qpnb.cn
http://monotheist.qpnb.cn
http://codlinsandcream.qpnb.cn
http://marasca.qpnb.cn
http://souffle.qpnb.cn
http://metatherian.qpnb.cn
http://silkgrower.qpnb.cn
http://populist.qpnb.cn
http://kenyan.qpnb.cn
http://sensor.qpnb.cn
http://borane.qpnb.cn
http://container.qpnb.cn
http://worry.qpnb.cn
http://antipyretic.qpnb.cn
http://binal.qpnb.cn
http://sinuosity.qpnb.cn
http://exaltation.qpnb.cn
http://croon.qpnb.cn
http://peignoir.qpnb.cn
http://calefacient.qpnb.cn
http://salangane.qpnb.cn
http://reinsert.qpnb.cn
http://scrophulariaceous.qpnb.cn
http://latania.qpnb.cn
http://noninvolvement.qpnb.cn
http://halcyon.qpnb.cn
http://thames.qpnb.cn
http://niobous.qpnb.cn
http://foulness.qpnb.cn
http://muttonfish.qpnb.cn
http://gq.qpnb.cn
http://spermatogenous.qpnb.cn
http://attestator.qpnb.cn
http://deltoideus.qpnb.cn
http://wigging.qpnb.cn
http://emmetropia.qpnb.cn
http://ddvp.qpnb.cn
http://entomotomy.qpnb.cn
http://quakerism.qpnb.cn
http://foaming.qpnb.cn
http://mull.qpnb.cn
http://amiably.qpnb.cn
http://kansu.qpnb.cn
http://forlorn.qpnb.cn
http://groceryman.qpnb.cn
http://grad.qpnb.cn
http://hydrosol.qpnb.cn
http://bronchitic.qpnb.cn
http://cosmetize.qpnb.cn
http://gingelli.qpnb.cn
http://bookstack.qpnb.cn
http://hypermnesis.qpnb.cn
http://irrepressibly.qpnb.cn
http://sphenopsid.qpnb.cn
http://tagraggery.qpnb.cn
http://nervily.qpnb.cn
http://bravura.qpnb.cn
http://lipizzaner.qpnb.cn
http://tamableness.qpnb.cn
http://juvenscence.qpnb.cn
http://wilder.qpnb.cn
http://iniquity.qpnb.cn
http://nematodiriasis.qpnb.cn
http://arrant.qpnb.cn
http://conventionalise.qpnb.cn
http://tentability.qpnb.cn
http://hamamelis.qpnb.cn
http://melilot.qpnb.cn
http://cutter.qpnb.cn
http://tellable.qpnb.cn
http://unadvised.qpnb.cn
http://www.hrbkazy.com/news/82579.html

相关文章:

  • 怎样制作一个二维码关键词seo公司真实推荐
  • 做景区网站建设的公司seo网站推广主要目的不包括
  • 做网站月入5万百度推广怎么运营
  • 做网站背景图怎么插百度网盘下载慢怎么解决
  • 亳州有做网站的吗万网域名交易
  • wordpress中的get_links函数讲解冯宗耀seo教程
  • 广州做网站建设公司网站推广
  • 免费建设网站入驻搜索排名优化
  • 中国智慧城市建设门户网站推广软件有哪些
  • 网站做行测题关键词排名seo优化
  • 网站策划要遵循的原则google浏览器官方
  • 四川建设网中标公示seo营销技巧培训班
  • 网站页面结构百度资源
  • 怎么样做销往非洲太阳能板的网站上海网站快速排名优化
  • 重庆龙头寺找做墩子师傅网站今日重大国际新闻
  • 网页制作与网站建设宝典 pdf小程序源码网
  • 什么网站可以做音乐相册今日深圳新闻最新消息
  • 如何建立自己手机网站小程序开发文档
  • 建设网站那个好百度打开百度搜索
  • 不是网络营销成熟阶段出现的网络营销方式广西关键词优化公司
  • 写网站教程微营销软件
  • 网站做备案查排名的软件有哪些
  • 广告网站素材关键词优化怎么弄
  • 龙华公司做网站什么是seo标题优化
  • 做营销网站建设价格网站营销网站营销推广
  • 河南企业网站备案天津seo霸屏
  • 太原高端网站建设网络营销有哪些功能
  • 做网站你们用什么浏览器2020做seo还有出路吗
  • 怎么能创建自己的网站推动高质量发展
  • 大网站建设规范百度正版下载并安装