U.S. Converters USC520 Скачать руководство пользователя страница 36

                             USC520 / USC540 User Manual                          www.usconverters.com

 

 

 

U.S. Converters LLC                                     36 / 52                            Copyrights © U.S. 
Converters                             

Basic Parameter:

 

Name 

Byte 

Example 

Explanation 

ucSequenceN

um 

xx 

Write the read values 

ucCRC 

xx 

Write the read values 

ucVersion 

xx 

Write the read values 

ucFlags 

80 

IP address type:   

0 in 8

th

 bit: DHCP;1 in 8

th

 bit: Static IP 

usLocationUR

LPort 

20 19 

Write the read values 

usHTTPServer

Port 

50 00 

HTTP server port 

ucUserFlag 

 

Write the read values 

ulStaticIP 

38 00 A8 C0 

Static IP 

ulGatewayIP 

01 00 A8 C0 

Gateway 

ulSubnetMask 

00 FF FF FF 

Subnet Mask 

ucModName 

16 

55 53 52 2D 54 43 50 

32 33 32 2D 45 00 00 

00 00 

USC520/USC540  name 

username 

61 64 6D 69 6E 00 

username 

password 

61 64 6D 69 6E 00 

password 

ucNetSendTim

 

Write the read values 

uiId 

2  01 00 

Device ID 

ucIdType 

1  0 

Device ID type (0~3) 

0:no use 

1:send id when connect 

2:send id when send data 

3:both 

ucUserMAC 

6    FF FF FF FF FF FF 

MAC 

ucReserved 

 

Unused 

 

Example: 

FF 56 05 AC CF 23 66 66 67 61 64 6D 69 6E 00 61 64 6D 69 6E 00 61 66 03 80 20 19 50 00 02 07 00 A8 C0 

01 00 A8 C0 00 FF FF FF 55 53 52 2D 54 43 50 32 33 32 2D 45 34 35 00 00 61 64 6D 69 6E 00 61 64 6D 69 

6E 00 02 01 00 00 AC CF 23 66 66 67 00 48 54 54 50 2F 31 2E 1C 

 

Содержание USC520

Страница 1: ...S Converters LLC 1 52 Copyrights U S Converters User Manual for USC520 Serial Ethernet Converter RS232 RS485 RS422 Industrial Panel Mount 2 Ports File Version V1 0 4 USC540 Serial Ethernet Converter...

Страница 2: ...t 13 3 2 Socket B Communication 14 3 4 Modbus Gateway 16 3 4 1 Transmit modbus protocol in transparent mode 16 3 4 2 Modbus RTU to Modbus TCP 17 3 4 3 Modbus Active Query Function 18 3 4 4 Modbus Poll...

Страница 3: ...etting Protocol 33 4 1 Network Setting Protocol 33 4 1 1 Set Parameter Process 33 4 1 2 Setting Command Content 34 4 1 3 Commands Return Content 38 4 2 Serial Setting Protocol 39 4 2 1 AT Command 39 4...

Страница 4: ...verters 1 1 Default Parameters User name admin Password admin IP address 192 168 0 7 Mask 255 255 255 0 Gateway 192 168 0 1 Work Mode of Port 1 TCP Server Local Port of Port 1 23 Work Mode of port 2 T...

Страница 5: ...host Polling 8 Two serial port each port can work as RS232 or RS485 or RS422 and work individually 9 Distinguish which serial port connect to device via port number 10 Support virtual serial port and...

Страница 6: ...n web page and serial side 23 Power supply in two mode DC adapter or 5 08 2 terminal pin 24 Communication indicator light of two serial port RX TX 25 UPD broadcast function can receive send data to al...

Страница 7: ...on Power Indicate power On when power is supplied Work Indicate working status It blinks when N520 N540 works well If it is on or off for a period N520 N540 works improperly you should power cycle to...

Страница 8: ...Converters LLC 8 52 Copyrights U S Converters For RS232 port DIP switches are down such as the below picture For RS485 port DIP switches are up such as the below picture For RS422 port DIP switches o...

Страница 9: ...ights U S Converters 2 6 DB9 Pin Definition For RS232 port pin definition is as below For RS485 port pin 3 works as B Pin 7 works as A For RS422 port Pin Definition 2 RX pin of receives data 3 TX 5 GN...

Страница 10: ...Converters LLC 10 52 Copyrights U S Converters 3 Product Function The following is function diagram of USC520 USC540 USC520 USC540 Function Diagram Each serial port corresponds to two sockets socket...

Страница 11: ...s serial parameter as baud rate accordingly This function should be combined with USR VCOM 5 Under the same LAN USC520 USC540 must be in the same network segment then can communicate If not USC520 US...

Страница 12: ...n the following 5 Support Modbus TCP function 6 Under TCP Server mode USC520 USC540 listens to local port actively and will not monitor connected IP and port When the 9th client is connected the oldes...

Страница 13: ...ol so user just do programming for serial and not need to worry about HTTP When USC520 USC540 sends data to HTTP server via serial port it only needs to send the header of requested data All the retur...

Страница 14: ...UDP client Set USC520 USC540 as double socket communication mode the data of serial port will be transparently transmitted to socket A and socket B at one time When data comes from socket A and socke...

Страница 15: ...USC520 USC540 User Manual www usconverters com U S Converters LLC 15 52 Copyrights U S Converters...

Страница 16: ...nt mode USC520 USC540 supports the transmission of modbus protocol in transparent mode 3 3 2 Modbus RTU to Modbus TCP USC520 USC540 support Modbus RTU to Modbus TCP settings as below 1 Open USR TCP232...

Страница 17: ...LLC 17 52 Copyrights U S Converters 4 Check and verify Modbus RTU to Modbus TCP through modbus Poll and Modbus Slave 5 Setting modbus software is as below 6 Click OK once configuration finished update...

Страница 18: ...rs 3 3 3 Modbus Active Query Function Modbus active query function can be realized through the serial heartbeat packet function of USC520 USC540 1 Open serial heartbeat packet function via web page qu...

Страница 19: ...USC520 USC540 User Manual www usconverters com U S Converters LLC 19 52 Copyrights U S Converters 3 Return result for query command is as drawing...

Страница 20: ...us polling function under TCP server mode Set USC520 USC540 as Modbus Poll support multiple host polling to check parameter 1 Multiple host polling is realized through virtual com Set parameter of USC...

Страница 21: ...choose the serial port which connected with USC520 USC540 Run modbus Poll software and make port forwarding with this serial port The value of modbus poll will also be changed when you revise the valu...

Страница 22: ...se the serial port which connected with USC520 USC540 Run modbus polling softare to select network mode and connect with USC520 USC540 The value of modbus poll will also be changed when you revise the...

Страница 23: ...require IP address from host within network which takes about 5 15 seconds Then you can search N520 s IP address It is convenient for setting different IP address in different environment Note Don t s...

Страница 24: ...24 52 Copyrights U S Converters 3 4 3 Self Defined Heartbeat Function USC520 USC540 supports heartbeat function Heartbeat is divided into network heartbeat and serial port heartbeat Set Network heart...

Страница 25: ...istration Package Function USC520 USC540 supports self defined registration package function and also supports to send self defined registration package after connection establishment meanwhile it sup...

Страница 26: ...USC520 USC540 User Manual www usconverters com U S Converters LLC 26 52 Copyrights U S Converters Test result...

Страница 27: ...meter and click Open 3 Click send ASCII data COM can receive data Click Send in TEST Software webpage can receive data Web to serial needs user s webpage programming ability Design webpage request own...

Страница 28: ...function sMessage msg 3 Send data function function send 3 4 6 Network Printing Function Network printing function is similar to printer server it can be realized by the previous serial printer throug...

Страница 29: ...onverters com U S Converters LLC 29 52 Copyrights U S Converters Set Printer Driver Click next and input the USC520 USC540 IP address then keep clicking next til finished Serial port connects to the p...

Страница 30: ...if the interval time of receiving data is over than 10ms or data length is more than 512 If the value of packaging time or packaging length is 0 the packaging rule is effective for non zero one Set p...

Страница 31: ...can work normally Just need keep n T under baud rate 9600 3 4 9 Synchronous baud rate RFC2217 For encryption during data transmission devices change data bytes baud rate parity and so on USC520 USC540...

Страница 32: ...from network and revise serial parameter accordingly 3 4 10 KeepAlive When USC520 USC540 s network is abnormal it can judge the status in time and disconnect And connect to server once network recover...

Страница 33: ...TS Hardware flow control function It is disabled by default Don t enable it if device doesn t support Hardware flow control This function is only run under RS232 port XoN XoFF USC520 USC540 support so...

Страница 34: ...eter to be configured Send setting command USC520 USC540 returns correct setting Host PC send save setting command USC520 USC540 returns correct Restart command USE N520 returns correct setting 4 1 2...

Страница 35: ...ommand examples Search command example Search command is set to FF 01 01 02 Sum check 02 01 01 Reset command example FF 13 02 d8 b0 4c 00 04 c9 61 64 6d 69 6e 00 61 64 6d 69 6e 00 c8 Sum check C8 13 0...

Страница 36: ...01 00 A8 C0 Gateway ulSubnetMask 4 00 FF FF FF Subnet Mask ucModName 16 55 53 52 2D 54 43 50 32 33 32 2D 45 00 00 00 00 USC520 USC540 name username 6 61 64 6D 69 6E 00 username password 6 61 64 6D 69...

Страница 37: ...E 30 2E 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 IP address send in ASCII Example 192 168 0 1 ulTelnetIPAddr 4 00 00 00 00 Not adopted ucFlags 1 02 Enable MODBUSTCP 0x010 bit2 Enabl...

Страница 38: ...ion low in front 12 34 encrypted version 19 34 Application_title 55 53 52 2D 54 43 50 32 33 32 2D 35 30 30 00 00 Device name 35 checksum F0 checksum Example Return results of search command 36 bytes F...

Страница 39: ...01 CMD K User name password fault returns FF 01 CMD P Others faults return FF 01 CMD E 4 2 Serial Setting Protocol 4 2 1 AT Command AT Command List Table 1 AT Command List Command Instruction blank Bl...

Страница 40: ...erial port 1 parameter SOCK Set query port 0 network SOCKETA parameter SOCK1 Set query port 1 network SOCKETA parameter SOCKB Set query port 0 network SOCKETB parameter SOCKB1 Set query port 1 network...

Страница 41: ...Query AT E CR CR LF OK on off CR LF Set AT E on off CR CR LF OK CR LF Parameter on Open echo function and input AT command Echo on off Close echo function Echo off 2 AT ENTM Function Enter transparen...

Страница 42: ...version C C Custom version AA BB CC DD ID DD stands for customer s version ID stands for customer s ID number 5 AT MAC Function Query MAC Format Query AT MAC CR CR LF OK mac CR LF Parameter mac MAC Ad...

Страница 43: ...words of USC520 USC540 inside LAN Format Query AT SEARCH CR CR LF OK port keywords CR LF Set AT SEARCH CR CR LF OK port keywords CR LF Parameter port serching port of USC520 USC540 default 48899 keyw...

Страница 44: ...pin are the same uartnum 0 11 AT UART1 Function Set query UART0 interface parameter 12 AT SOCKMN M socket number A H N corresponding serial port number 1 8 Omit MN numbers for single serial port and s...

Страница 45: ...OK mode address mask gateway CR LF Set AT WANN mode address mask gateway CR CR LF OK CR LF Parameter mode network IP mode static static IP DHCP dynamic IP address mask gateway parameter is omitted ad...

Страница 46: ...nothing to do with this testing Download the USR TCP232 M4 E45 Setup software Search device and all USC520 USC540 devices within LAN It includes IP name MAC and version Software Configuration Search 1...

Страница 47: ...com U S Converters LLC 47 52 Copyrights U S Converters Software Configuration Password 2 Basic parameter configuration Click Full Show and all basic parameter is revealed Set the parameter as needs an...

Страница 48: ...USC520 USC540 User Manual www usconverters com U S Converters LLC 48 52 Copyrights U S Converters Software Configuration Full Show...

Страница 49: ...4 1 8 6 Device ID Device ID type sending ID type User name Authentication Code for revising parameter to avoid other users within same LAN revising it Password same as user name Device Name USC520 US...

Страница 50: ...Hardware XON XOFF None for no flow control Hardware for hardware flow control XON XOFF for software hardware flow Work Mode TCP Server TCP Client HTTPD Client UDP Client UDP Server Destination IP Por...

Страница 51: ...pack length relate to serial unpacking mechanism Similar RFC2217 Please refer to Chapter 3 5 10 Similar RFC2217 4 Firmware Upgrade If USC520 USC540 need to upgrade with new firmware please contact US...

Страница 52: ...USC520 USC540 User Manual www usconverters com U S Converters LLC 52 52 Copyrights U S Converters Firmware Upgrade...

Отзывы: