以太网转485
网络转485使用说明

以太网转RS485模块可以实现以太网数据与RS485接口数据间的透明传输
功能简介:
1、模块默认作TCP主机,默认IP为:192.168.1.110,默认端口为6000;
2、通过网页选择模块RS485串口波特率,波特率默认为19200;
3、通过网页配置模块IP,子网掩码,网关及TCP端口(范围:1~65535);
4、通过网页修改MAC,主机名,DNS服务器名;
5、通过网页设置是否IP自动获得功能;
6、通过网页设置串口接收超时时间,单位为ms;
7、模块采用5V直流电供电,电流大小为160mA;
应用场合:
1、与其他单片机串口连接,快速实现单片机以太网通信功能;
2、原有RS232串口系统的设备通过该模块,快速升级成以太网接口设备;
3、使用我们提供的VC源代码例程,非常方便的实现上位机TCP通信二次开发;
4、免费赠送TCP转串口demo源代码(非该模块成品代码),可用于学习单片机以太网通信以及模块的二次开发;
测试流程:
1、从J4口为模块供5V电源,注意电源极性,否则容易引起模块损坏,也可从串口第9脚接5V电源,第5脚接地。
2、模块上电初始化成功后,D1开始闪烁;
3、将模块的网口与PC机网口用交叉网线相连,模块网口绿灯常亮表示网路物理连接正常,黄灯闪烁表示有以太网数据通信;
4、PC机网卡IP配置为:192.168.1.2,网关为192.168.1.1;
5、在游览器地址栏中输入192.168.1.110,登录模块参数配置平台,登录用户名及密码均为admin;
注意:模块除IP地址和端口外,其他参数尽量不要修改如需恢复出厂设置,请短接J7直至模块红灯灭。
用以太网-485网对鞍钢集团矿业公司ERP水量-电量-矿量-质计量-图像数据采集系统

用以太网\485网对鞍钢集团矿业公司ERP水量\电量\矿量\质计量\图像数据采集系统摘要:通过多网和一可以节约大量的硬件资源和软件资源,鞍钢集团矿业公司ERP数据采集网的建成已经证明电量、水量、原矿量、质量、汽车衡量、轨道衡量、化验室信息、视频信息等通过485网、控制网、以太采集网、原有的以太网完全能满足鞍钢集团矿业公司ERP数据采集网的需要。
关键词:多网和一节约大量的硬件软件资源。
1鞍钢集团矿业公司ERP数据采集概述鞍钢集团矿业公司ERP数据采集的内容包括373个电量采集点的数据采集、分析、管理与自动结算;包括7个厂矿区域的新水、鞍钢净环水、尾矿回水,共21点的水量信息采集、分析、管理与自动结算;包括13个厂矿区域11个汽车衡、7个轨道衡、4个皮带秤的原矿、精矿、球团矿、烧结矿及辅料计量信息的采集、分析、管理与自动结算;包括10个厂矿区域的11个化验室的质量信息采集、分析、管理;包括10个汽车衡,20个视频监视的录像、拍照信息的同步上传。
2鞍钢集团矿业公司ERP数据采集概况鞍钢集团矿业公司ERP数据采集地域广,涵盖面大,工程内容复杂,多领域技术融合。
工程项目南至谢家堡子的三车厂,北至羊草庄的矿机厂,东至眼前山铁矿,西至调军台选矿厂柳西屯过滤车间,涵盖15个厂矿区域,17个总降变电所。
在公司主机房设置数据库存储服务器2台,硬盘磁盘阵列1套,电量服务器2台,质计量服务器1台,水量服务器1台,WEB浏览服务器2台,视频监控服务器1台。
在各厂矿、变电所设置工作站48个。
在采集现场设置各种数据采集设备471套。
系统信息采集点442个,设置IP节点180个。
架设网络光纤60km。
3鞍钢集团矿业公司ERP数据采集特点其它矿山公司和钢铁企业建好的ERP采集网是各种能源信息采集独立组网,软硬件资源不共享。
电量、水量、质计量采集分别各自组网。
我们认为这里有潜力可挖。
如能把各种采集技术进行融合,实现三网合一,系统软硬件资源共享,系统简单,连接方便,既不影响现有生产控制系统,又会缩短工期,节省投资。
网络转485模块--网络转232模块

网络转 485 模块—网络转 232 模块ZLSN 系列嵌入式设备联网模块是串口到 TCP/IP 的嵌入式协议转化模块,提供串口到 TCP/IP 网络的双向以太网透明传输。
ZLSN 系列嵌入式设备联网模块是业界第一款全双工、不间断、低成本嵌入式设备联网模块,即在高达 115200bsp 的速率下串口到 TCP/IP 可实现单片机联网和设备网络化升级,广泛应用于安防、工业自动化、银行系统、楼宇自控、智能交通等领域。
串口转以太网模块——TTL 电平带 RJ45 联网模块和 TCP/IP 到串口同时进行工作,收发数据可以不间断地进行,且不丢失一个字节。
具有功能强大、价格经济、技术资料全面特点型号:ZLSN3000 名称:TTL 电平带 RJ45 联网模块 用法:只需通过排线将 RXD、TXD 和用户电路板 MCU(例如 51 单片机)串口连接, 即可使用。
选型:使用 ZLSN2000 之前,可先用 ZLSN3000 测试模块性能,用户无需制板即可与 模块连接,方便快捷。
适合已有串口设备立即联网升级。
型号:ZLSN3002 名称:TTL 电平带 RJ45 联网模块 用法:只需通过排线将 RXD、TXD 和用户电路板 MCU(例如 51 单片机)串口连接, 即可使用。
选型:与 ZLSN3000 相比,ZLSN3001 速度更快,但是电流从 40mA 变为 100mA。
另外 厚度厚 3mm。
串口转以太网模块——RS232 联网模块型号:ZLSN2100 名称:RS232 联网模块 用法:可 9V~24V 电源,实现 DB9 接口(公头)RS232 到以太网的转化。
选型:需要 RS232 转以太网的普通用户请选择 ZLSN2100。
型号:ZLSN4000 名称:MINI 型 RS232 联网模块用法: 可外接 5V 或者 9V~24V 电源, 实现 DB9 接口 (母头) RS232 到以太网的转化。
以太网rs485串口服务器NB114快速入门配置教程

以太网rs485串口服务器NB114快速入门配置教程串口服务器(以下简称“设备”)使用前,需准备网线、电脑、USB转串口转换器等相关辅材。
具体如下:【注】本案例使用RS485接口演示;2.2设备接线电源接线(DC8~28V):串口与网口与接线:1、采用标准10M RJ45网口,正确接入后设备网口橙色指示灯常亮,绿色指示灯闪烁;2、采用标准RS485接口(4×3.81mm凤凰端子),设备485-A接USB 转RS485转换器的A,设备485-B接USB转RS485转换器的B(距离较远请使用标准RS485双绞线缆,否则可能由于环境干扰过大无法正常通讯);【注】请勿同时使用RS485、RS422、RS232接口,可能影响数据收发。
2.3软件设置2.3.1网络测试环境避免客户在实际应用过程中出现服务器搜索失败,还有无法打开网页等相关问题,建议先对电脑进行相关设置的检查。
(1)关闭电脑的防火墙、杀毒软件;(2)配置与设备连接的网卡;(3)此案例针对设备直连电脑测试,需要配置电脑为静态IP(电脑直连串口服务器,没有路由器来分配,电脑获取不到IP地址),使用交换机或路由器需要保证设备与电脑处于同一网端(比如:192.168.3.xxx);(4)此处配置电脑的静态IP为192.168.3.4(与串口服务器同一网段),配置子网掩码为255.255.255.0,配置默认网关为192.168.3.1。
默认参数数据传输测试经过上述操作步骤后,沿用设备出厂默认参数,执行以下操作,即可实现数据的透明传输测试。
操作步骤如下:(1)打开测试TCP/IP调试助手软件;(2)“网络设置区”选择TCP客户端模式(TCP Client),远端主机地址对应(设备默认本机IP:192.168.3.7),远端主机端口对应设备出厂本机端口8887,点击连接;(3)等待电脑连接串口服务器,连接完成后串口服务器的LINK灯常亮;(4)打开串口助手,串口波特率设置为115200,串口参数设置为1/8/None,点击打开串口;(5)数据传输测试,串口助手(串口端)发送测试数据,网络调试助手(网络端)收到测试数据。
S6887 Ethernet RS485 ZIGBEE 两两转换器 使用说明书

S6887Ethernet/RS485/ZIGBEE两两转换器使用说明书上海世杰电子有限公司销售:*************************技术支持:*************************S6887可以作为Ethernet 到 ZigBee透明数据转换,Ethernet 到 RS485数据转换,RS485到ZigBee数据转换,通过跳线设置。
Rs485 到 ZIgBee 转换Ethernet到RS485数据转换Ethernet到ZigBee数据转换ZigBee可以设置为主或从,模式为终端节点或中继节点,使用这个模块可以灵活组织通讯网络,拓展通讯距离,节约布线。
ZIgBee参数如下:1. 技术参数名称技术数据传输距离 100到2000米网络拓扑星形,树形,网状网网络ID范围0-255网络地址0-65535每包最大数据256 bytes数据接口TTL level, RS232 and RS485串口信号TXD, RXD, GND串口波特率1200 ~ 115200 bps调制方式DSSS 直序扩频频率范围 2.405GHz~ 2.480GHz无线信道16接收灵敏度-94 dbm发射功率-27dBm~25dBm天线连接外置SMA天线或PCB天线防止冲突GTS, CSMA - CA and CSMA - CA输入电压AC/DC12~ 24V, Standard is 24VDC2.参数设置:A.Ethernet参数设置:使用SHJ-TCP232-SETUP软件配置网络参数。
打开软件点击Search in LAN双击找到的S6887修改参数点击Setup via NETB.ZigBee参数按住CONFIG开关3秒钟当打开电源时,模块今进入配置模式。
所有的LED同时闪烁表示进入ZIGBEE配置模式,配置接口可以是是RS232或RS485.默认参数值:串口参数默认设置波特率38400校验None数据位8停止位 13. 模块地址、节点类型模块地址设置:MAC_ADDR选项 ID 范 围 配 置 说 明 备 注 MAC_ADDR 0000—FFFE 中心节点地址0000。
波士顿波士顿RS232 485到以太网转换器说明书

RS232/485 TO ETHUser ManualFeatures (4)1.Get Start (5)1.1.Application Diagram (5)1.2.Hardware Design (5)1.2.1.Hardware Dimensions (5)1.2.2.LED (6)2.Product Functions (7)2.1.Basic Functions (8)2.1.1.Static IP/DHCP (8)2.1.2.Reset to default settings (8)2.2.Socket functions (9)2.2.1.TCP Client (9)2.2.2.TCP Server (9)2.2.3.UDP Client (10)2.2.4.UDP Server (11)2.2.5.HTTP Client (11)2.2.6.WebSocket (12)2.3.Serial port (13)2.3.1.Serial port basic parameters (13)2.3.2.VCOM Application (13)2.3.3.Flow Control (13)2.3.4.Serial package methods (13)2.3.5.Baud rate synchronization (13)2.4.Features (14)2.4.1.Identity packet function (14)2.4.2.Heartbeat packet function (14)2.4.3.Non-persistent connection (14)2.4.4.Modbus gateway (14)work printing (15)2.4.6.Editable Web Server (15)3.Parameter Setting (16)3.1.Setup software (16)3.2.Web Server (17)3.3.AT command (17)3.3.1.Serial AT command (17)work AT command (17)4.Contact Us (19)5.Disclaimer (20)6.Update History (21)⚫10/100Mbps Ethernet interface and support Auto-MDI/MDIX.⚫Support TCP Server, TCP Client, UDP Client, UDP Server, HTTP Client.⚫Support configuring through Web Server⚫Support RS232 and RS485 and they can work independently.⚫Support RTS/CTS hardware flow control and Xon/Xoff software flow control.⚫Support USR-VCOM.⚫Support Modbus Gateway.⚫Support serial port baud rate 600bps~230.4K bps; support None, Odd, Even, Mark, Space parity way.⚫Support Static IP or DHCP.⚫Support Websocket function.⚫Support Reload button to reset to default settings by hardware way.⚫Support Keep-alive.⚫Support timeout restart function and timeout reconnect function1.GET STARTProduct link: https:///wiki/RS232/485_TO_ETHSetup software: https:///wiki/RS232/485_TO_ETH_Software Demo Code: https:///wiki/File:PC_Socket_Demo.zip1.1.APPLICATION DIAGRAMFigure 1 Application Diagram1.2.HARDWARE DESIGN1.2.1.HARDWARE DIMENSIONSFigure 2 Hardware Dimensions1.2.2.LEDTable 1 LED2. PRODUCT FUNCTIONSThis chapter introduces the functions of USR-TCP232-RS232/485 TO ETH as the following diagram shown, you can get an overall knowledge of it.WebsocketSerial Port DeviceNetworkSerial PortMobus GatewaySerial Port PackagingSocket ASocket BTCPS/TCPC/UDPS/UDPC/HTTPD ClientTCPC/UDPCUSR CLOUDKeep-AliveIdentity PacketSerial Heartbeat Packet Network Heartbeat PacketSerial Port PackagingWebserver Network data TransmissionModbusTCP Gateway AT Command ModeSerial AT Command Parameter Query/SetFigure 3 Product Functions diagram2.1.1.STATIC IP/DHCPThere are two ways for module to get IP address: Static IP and DHCP.Static IP: Default setting of module is Static IP and default IP is 192.168.0.7. When user configures module in Static IP mode, user need set IP, subnet mask and gateway and must pay attention to the relation among IP, subnet mask and gateway.DHCP: Module in DHCP mode can dynamically get IP, Gateway, and DNS server address from Gateway Host. When user connects RS232/485 TO ETH directly to PC, module can’t be set in DHCP mode. Because common computer does not have the ability to assign IP addresses.2.1.2.RESET TO DEFAULT SETTINGSHardware: Power off the RS232/485 TO ETH and press Reload button, then power on the RS232/485 TO ETH and keep pressing Reload button over 5 seconds can reset to default settings.Software: User can also reset to default settings through setup software for RS232/485 TO ETH.AT command: User can send AT+RELD to reset to default settings.RS232/485 TO ETH supports dual sockets mode. Socket A supports TCP Server, TCP Client, UDP Server, UDP Client and HTTP Client. Socket B supports TCP Client and UDP Client.2.2.1.TCP CLIENTFigure 4 TCP ClientTCP Client provides Client connections for TCP network services. TCP Client device will connect to server to realize data transmission between the serial port device and server. According to the TCP protocol, TCP Client has connection/disconnection status differences to ensure reliable data transmission.TCP Client mode supports Keep-Alive function: After establishing connection, RS232/485 TO ETH will send Keep-Alive package in every 15 second to check TCP connection and RS232/485 TO ETH will disconnect and reconnect to server if any connection exception occurs. TCP Client mode also supports baud rate synchronization, USR Cloud and Modbus gateway.RS232/485 TO ETH works in TCP Client mode needs connect to TCP Server and needs set the parameter: Remote IP/Port. RS232/485 TO ETH works in TCP Client won’t accept other connection request except target server and will access server with random local port if configuring local port to 0.2.2.2.TCP SERVERFigure 5 TCP ServerRS232/485 TO ETH works in TCP Server mode will listen network connections and build network connections, commonly be used for communication with TCP clients on a LAN. According to the TCP protocol, TCP Server has connection/disconnection status differences to ensure reliable data transmission.RS232/485 TO ETH works in TCP Server mode will listen local port which user set and build connection after receiving connection request. Serial data will be sent to all TCP Client devices connected to RS232/485 TO ETH in TCP Server mode simultaneously.RS232/485 TO ETH works in TCP Server mode supports 8 client connections at most.RS232/485 TO ETH also supports Keep-Alive function, baud rate synchronization and Modbus gateway.2.2.3.UDP CLIENTFigure 6 UDP ClientUDP transport protocol provides simple and unreliable communication services. No connection connected/disconnected. User only needs to configure Remote IP/Port then can realize data transmission.In UDP Client mode, RS232/485 TO ETH will only communicate with Remote IP/Port. If data don’t from Remote IP/Port, it won’t be receiv ed by RS232/485 TO ETH.In UDP Client mode, if user configure Remote IP to 255.255.255.255, RS232/485 TO ETH can achieve UDP broadcast to all network segment and receive broadcast data. User can also configure Remote IP to xxx.xxx.xxx.255 to realize UDP broadcast in same network segment.2.2.4.UDP SERVERFigure 7 UDP ServerIn UDP Server mode, RS232/485 TO ETH will change Remote IP every time after receiving UDP data from a new IP/Port and will send data to latest communication IP/Port.2.2.5.HTTP CLIENTFigure 8 HTTP ClientFigure 9 HTTP ClientSerial DeviceRS232/485TO ETHHTTP ServerHTTP/1.1 200 OKData: Wed, 24 Jun 2015 04:08:35GMTServer.Apache/2.0.63(Win32)PHP/5.2.4 X-Powered-By: PHP/5.2.14Cache-Control: max-age=31104000Expires: Fri, 18 Aug 2017 03:25:47GMT Content-Length: 3Connection: close Content-Type:text/htmlABCGET/1.php?data=ABC HTTP/1.1Host: :80 User-Agent:Mozilla/4.0 Connection: closedata=ABCABCIn HTTP Client mode, RS232/485 TO ETH can achieve data transmission between serial port device and HTTP server. User just needs to configure RS232/485 TO ETH in HTTP Client and configure the HTTP header, URL and some other related parameters, then can achieve data transmission between serial port device and HTTP server and don’t need care about the HTTP format of data.2.2.6.WEBSOCKETFigure 10 WebSocketWebSocket function can achieve real-time interaction between RS232 interface and Web Server and display user data on Web Server.2.3.SERIAL PORT2.3.1.SERIAL PORT BASIC PARAMETERS2.3.2.VCOM APPLICATIONFigure 11 Serial port basic parametersUser can download VCOM software from: Figure 14 VCOM applicationhttps:///wiki/RS232/485_TO_ETH_Software.Through this software user can set up connection between RS232/485 TO ETH and virtual serial to solve the problem that traditional equipment PC software used in serial port communication way.2.3.3.FLOW CONTROLRS232/485 TO ETH supports hardware flow control way ( RTS/CTS, only take effect in RS232 mode ) and software flow control way Xon/Xoff.2.3.4.SERIAL PACKAGE METHODSFor network speed is faster than serial. Module will put serial data in buffer before sending it to network. The data will be sent to network side as data package. There are 2 ways to end the package and send package to network side - Time Trigger Mode and Length Trigger Mode.⚫RS232/485 TO ETH serial package time: Default is 4 bytes sending time, range from 0 to 255. ⚫RS232/485 TO ETH serial package length: Default is 1460 bytes, range from 0 to 1460.2.3.5.BAUD RATE SYNCHRONIZATIONWhen module works with USR devices or software, serial parameters will change dynamically according to network protocol. User can modify serial parameters by sending data conformed to specific protocol via network. It is temporary, after restarting DTU, the parameters will back to original parameters.2.4.FEATURES2.4.1.IDENTITY PACKET FUNCTIONFigure 12 Identity Packet application diagramIdentity packet is used for identifying the device when RS232/485 TO ETH works as TCP client/UDP client. There are two methods to send identity packet.⚫Identity packet will be sent after connection is established.⚫Identity packet will be added on the front of every data package.Identity packet can be MAC address or user editable identity packet. User editable identity packet should less than 40 bytes.2.4.2.HEARTBEAT PACKET FUNCTIONHeartbeat packet: RS232/485 TO ETH will output heartbeat packet to serial side or network side periodic. User can configure the heartbeat packet data and sending interval. Serial heartbeat packet can be used for polling Modbus data. Network heartbeat packet can be used for showing connection status and keeping the connection (only take effect in TCP/UDP Client mode).2.4.3.NON-PERSISTENT CONNECTIONRS232/485 TO ETH support non-persistent connection function in TCP Client mode. When RS232/485 TO ETH adopts this function, RS232/485 TO ETH will connect to server and send data after receiving data from serial port side and will disconnect to server after sending all the data to server and no data from serial port side over 3s.2.4.4.MODBUS GATEWAYModbus gateway includes: Modbus transparent transmission, Modbus RTU<=>Modbus TCP protocol conversion, Modbus polling and serial port query.Modbus RTU<=>Modbus TCP: Set RS232/485 TO ETH in TCP Server or TCP Client mode, then user can set RS232/485 TO ETH with ModbusRTU<=>Modbus TCP function. Data transmission diagram as follow:Figure 13 Modbus RTU<=>Modbus TCPModbus polling: RS232/485 TO ETH support Modbus polling function.Figure 14 Modbus pollingWORK PRINTINGThe network printing function is similar to the printer server. Through the existing printing driver, it can be modified slightly and realize the network printing function by the original serial printer.2.4.6.EDITABLE WEB SERVERRS232/485 TO ETH supports modifying the Web Server based on template according to needs, then using related tool to upgrade. If user has this demand can contact to our salespersons for Web Server source and tool.3.PARAMETER SETTINGThere are three ways to configure RS232/485 TO ETH. They are setup software, Web Server and AT command.3.1.SETUP SOFTWAREUser can download setup software fromhttps:///wiki/RS232/485_TO_ETH_SoftwareWhen user want to configure the RS232/485 TO ETH by setup software, user can run setup software, search RS232/485 TO ETH in same LAN and configure the RS232/485 TO ETH as follow:Figure 15 Setup softwareAfter researching RS232/485 TO ETH and clicking RS232/485 TO ETH to configure, user need log in with user name and password. Default user name and password both are admin. If user keep the default parameters, it is not necessary to log in.3.2.WEB SERVERUser can connect PC to RS232/485 TO ETH through LAN port and enter Web Server to configure. Web Server default parameters as follow:Table 2 Web server default parametersParameter Default settingsWeb server IP address192.168.0.7User name adminPassword adminAfter firstly connecting PC to RS232/485 TO ETH, user can open browser and enter default IP 192.168.0.7 into address bar, then log in user name and password, user will enter Web Server. Web Server screenshot as follow:Figure 16 Web Server3.3.AT COMMANDWe have specific user manual for AT commands.3.3.1.SERIAL AT COMMANDIn work mode, user can enter AT command mode and send AT commands to module to configure the module.WORK AT COMMANDNetwork AT command is to send a search keyword by broadcast, then set the parameters in a single broadcast way(If user want to use network AT command, module and PC which send thenetwork AT command must in same network segment). If user enter network AT command mode but don’t send any command over 30 seconds, module will exit network AT command mode. User can enter network AT command mode as follow way:Figure 17 Network AT CommandEmail:(order/shipment) *******************(tech support) *********************(complaint) ***********************(apply for distributor) *************************Skype:(order/shipment) sales@waveshare(tech support) service@waveshareWhatsapp: 86-131********Phone: 86-755-82807524Fax: 86-755-83042572Address: Waveshare Electronics 10F, International Science & Technology Building, Fuhong Rd, Futian District, Shenzhen, ChinaWebsite: This document provides the information of USR-TCP232-RS232/485 TO ETH products, it hasn’t been granted any intellectual property license by forbidding speak or other ways either explicitly or implicitly. Except the duty declared in sales terms and conditio ns, we don’t take any other responsibilities. We don’t warrant the products sales and use explicitly or implicitly, including particular purpose merchant-ability and marketability, the tort liability of any other patent right, copyright, intellectual property right. We may modify specification and description at any time without prior notice.6.⚫2019-05-06 V1.0.0 Established.5/22/19 /wiki21/ 21。
以太网口的plc 做485通讯

以太网口的plc 做485通讯以太网口的PLC做485通讯近年来,随着工业自动化的发展,PLC(可编程逻辑控制器)已经成为许多工业企业中必不可少的设备。
PLC的作用主要是实现工业生产过程的自动化控制和监控。
而以太网口的PLC利用了网络技术,可以方便地实现与其他设备的通信,其中包括了485通讯。
485通讯是一种常见的串行通信协议,多用于工控领域。
它具有传输速率快、干扰抗性强的特点,适用于长距离、高噪声环境下的数据传输。
通过将以太网口与485通讯结合,PLC可以实现与各种外部设备的数据交换和控制操作。
以太网口的PLC通过内置的以太网接口,可以连接到局域网或互联网中。
以太网作为一种标准的网络协议,具有较高的数据传输速率和稳定性。
而通过以太网接口,PLC可以连接到各种设备,如电脑、触摸屏、服务器等。
通过串行通信协议485,PLC可以与各种传感器、执行机构等外部设备进行数据传输和控制。
以太网口的PLC在工业生产中起到了重要的作用。
它可以实现对设备、生产线的远程监控和控制,大大提高了生产效率和质量。
通过PLC控制,可以根据需求灵活调整生产参数,实现自动化控制。
而通过以太网接口和485通讯,PLC可以与多个设备进行数据交互,实现生产流程的自动化管理。
在以太网口的PLC中,485通讯的实现需要特定的硬件接口和软件配置。
首先,PLC需要具备485通讯的硬件接口,通常是通过RS485串行口进行连接。
其次,PLC需要进行相应的软件配置,设置串行通信参数和通讯协议。
通过这样的配置,PLC才能与其他设备正常进行数据交换。
以太网口的PLC在各个行业中都有广泛的应用。
例如在制造业中,通过以太网口的PLC可以实现生产线设备的控制和监控。
通过与各种传感器和执行机构的数据交互,可以实时获取生产数据,并及时调整工艺参数,保证产品的质量和效率。
在物流行业中,以太网口的PLC可以实现仓储设备的自动化控制和管理。
通过与条码扫描仪、电动叉车等设备的数据交互,可以实现仓库的智能管理和物流的快速运输。
以太网转485

以太网转4851.以太网转485的应用RS485通信技术在工程上用得很多,其主要优点如下:∙布线简单:只需要2根线,现在一般采用网线的屏蔽线接口。
∙通信距离远:由于采用了差模通信方式,比RS232的通信距离要远。
∙可以支持多机联网通信:相比于RS232只能一对一的连接,RS485可以在线上挂载多个终端,采用查询——应答的方式实现多机通信。
但是RS485现在经常需要转为以太网,也就是转化为TCP/IP,分析这些应用背后的原因主要有:∙以太网可以接入internet这样就可以实现远距离通信,在全球范围内实现监控,这是RS485所无法做到的。
∙当需要多台RS485设备连接到计算机的时候,传统的方式是使用多串口卡。
也就是使用在计算机上扩展串口来实现多个RS485串口。
使用以太网转485之后,可以把RS485的接口留到现场,而监控计算机这端只保留一根网线即可,使用较为方便。
2. 以太网转485的解决方案实现以太网转485(即485转网口)主要一个硬件转换器和一个软件驱动。
硬件转换器分为两种:串口服务器(串口联网服务器、串口通信服务器)、串口联网模块。
RS485串口服务器是带外壳的,可以将现有的485设备连接到以太网。
适合已有的RS485串口设备的网络化改造。
RS485串口联网模块是不带外壳的,可以理解为内嵌方式的RS485转以太网模块,使用模块解决方案,可以将模块集成到用户设备的内部,实现串口服务器和设备的一体化。
在价格上模块方案比串口服务器方案价格要低。
两种硬件如下图所示:串口服务器的硬件实现了RS485接口转化为TCP/IP接口(网络接口),那么配合计算机端的虚拟串口驱动使用就可以再次将TCP/IP连接虚拟地转化为串口。
虚拟串口驱动可以在计算机内的驱动层虚拟出类似COM5、COM6等虚拟串口号,并且将远端的串口服务器和这些虚拟串口绑定。
这样用户串口程序打开虚拟串口的时候就可以通远端的串口服务器通信,即和串口设备通信。
- 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
- 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
- 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。
以太网转485
RS485通信技术在工程上用得很多,其主要优点如下:
∙布线简单:只需要2根线,现在一般采用网线的屏蔽线接口。
∙通信距离远:由于采用了差模通信方式,比RS232的通信距离要远。
∙可以支持多机联网通信:相比于RS232只能一对一的连接,RS485可以在线上挂载多个终端,采用查询——应答的方式实现多机通信。
但是RS485现在经常需要转为以太网,也就是转化为TCP/IP,分析这些应用背后的原因主要有:
∙以太网可以接入internet这样就可以实现远距离通信,在全球范围内实现监控,这是RS485所无法做到的。
∙当需要多台RS485设备连接到计算机的时候,传统的方式是使用多串口卡。
也就是使用在计算机上扩展串口来实现多个RS485串口。
使用以太网转485之后,可以把RS485的接口留到现场,而监控计算机这端只保留一根网线即可,使用较为方便。
以太网转485的解决方案
实现以太网转485(即485转网口)主要一个硬件转换器和一个软件驱动。
硬件转换器分为两种:串口服务器(串口联网服务器、串口通信服务器)、串口联网模块。
是带外壳的,可以将现有的485设备连接到以太网。
适合已有的RS485串口设备的网络化改造。
是不带外壳的,可以理解为内嵌方式的RS485转以太网模块,使用模块解决方案,可以将模块集成到用户设备的内部,实现串口服务器和设备的一体化。
在价格上模块方案比串口服务器方案价格要低。
两种硬件如下图所示:
串口服务器的硬件实现了RS485接口转化为TCP/IP接口(网络接口),那么配合计算机端的虚拟串口驱动使用就可以再次将TCP/IP连接虚拟地转化为串口。
虚拟串口驱动可以在计算机内的驱动层虚拟出类似COM5、COM6等虚拟串口号,并且将远端的串口服务器和这些虚拟串口绑定。
这样用户串口程序打开虚拟串口的时候就可以通远端的串口服务器通信,即和串口设备通信。
使用该RS485转以太网解决方案的硬件和软件系统之后,用户的485设备相当于实现网络化的扩展,原有的硬件和软件程序都无需修改。
以太网转485的关键技术
RS485要想无缝的升级为以太网,里面包含了很多关键技术,需要将以太网技术和RS485通信协议无缝的结合起来进行过渡。
其中包括:9位技术、分帧技术、主从机机制等。
9位技术:在485方式下,用户可以发送9位的数据。
而且有时利用第9位来表示是数据帧还是地址帧。
由于在网络通信时,以太网都是8bit的数据,没有9bit可以放置的空间。
所以如何将485的9位传输过来就成了问题。
据了解上海卓岚的串口服务器才用了称之为realcom的协议,可以将RS485的9位数据格式转化为以太网的8位数据。
分帧技术:分帧是串口转以太网出现的一个关键技术,即当串口服务器接收到串口设备的数据的时候,何时将数据打包转发到以太网,如果每个字节都打为一个包则显然效率太低,那么多少个字节打包合适。
这里需要用户设定一个称之为最长数据包长度和最长数据包间隔的参数。