48 / 69
2
Port settings parameter command
Port parameter:
Name
bytes
example
Explanation
ulBaudRate
4
00 C2 01 00
Baud Rate
ucDataSize
1
08
COM data bits (0X05/0x06/0x07/0x08)
ucParity
1
01
COM parity
1: no, 2: odd, 3: even, 4: mark, 5: space
ucStopBits
1
01
COM stop bit (0x01/0x02)
ucFlowControl
1
01
COM flow control ( 0x01; no, 0x03:HW)
ulTelnetTimeout
4
00 00 00 00
Network reconnection time
usTelnetLocalPort
2
17 00
Local Port
usTelnetRemotePort
2
17 00
Remote Port
uiTelnetURL
30
31 39 32 2E 31 36 38
2E 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)
Enable 2217: 0x08(bit3)
Enable USR cloud: 0x010(bit4)
ucWorkMode
1
03
Working mode:
0: UDP, 1: TCP Client, 2: UDP Server,
3: TCP Server, 4: HTTPD Client
uiPackLen
4
C8 00 00 00
COM pack length
ucPackTime
1
0A
COM pack time
ucTimeCount
1
91
Write the read values
TCP server type
1
1
Write the read values
ucReserved
4
Casual value
saved
Example:
FF 52 06 AC CF 23 66 66 67 61 64 6D 69 6E 00 61 64 6D 69 6E 00 00 C2 01 00 08 01 01 01 00 00 00 00
17 00 17 00 31 39 32 2E 31 36 38 2E 30 2E 32 30 31 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 08 03 C8 00 00 00 0A 95 11 00 00 00 00 42
Содержание USR-N520
Страница 1: ...1 69 User Manual File Version V1 0 4 ...
Страница 17: ...17 69 UDP Client Software Configuration UDP Client Testing Screenshot ...
Страница 27: ...27 69 2 Set modbus slave software refer to the following ...
Страница 28: ...28 69 3 Return result for query command is as drawing ...
Страница 33: ...33 69 Drawing 26 Self Defined Heartbeat Function ...
Страница 35: ...35 69 2 Testing result ...
Страница 37: ...37 69 Web to Serial COM Send Receive Data ...
Страница 40: ...40 69 2 Set Printer Driver ...
Страница 59: ...59 69 Software Configuration Full Show ...
Страница 69: ...69 69 ...