
●
Command
Communication
Communication parameters
Read Command
Write Command
Communication command
The communication for MP3 is 2-wire or 4-wire Half-Duplex type by RS485. It is possible to
connect up to 31 units by using the prepared protocol for communication with PC.
The communication command of MP3 is R (Read), W (Write)
The communication parameters are for setting the communication conditions. Please refer to
the content below.
Communication protocol
Data structure
The MP3 communication uses ASCII strings, it possible to read and use the defined register.
There are 2 protocols that are selected due to the parameters. The standard protocol is STD,
the starting text is STX (0X02), and the ending text is ETX (0X03)
In the frame, the data are expressed with 10 decimals
Command
R
W
Discription
Read
Write
The R command sets the register number and the code to be read on the frame,
as a command that can read the register value
The W command sets the write data, register number and the code to be written on the
frame as a command that can write the register value
Ex. 1) Set value when reading the present value of code(01)
※ PV read
Send : STX+"01R18"+ETX
•Receive: : STX+"01R0K+00050000000"+ETX
● Frame Format
●
Frame Format
STX Address Command ETXData
0x02 0 ~ 99 Refer to each command 0x03
HI
GO
LO
MP3
DIGITAL MULTI-METER
HI
GO
LO
MP3
DIGITAL MULTI-METER
HI
GO
LO
MP3
DIGITAL MULTI-METER
HI
GO
LO
MP3
DIGITAL MULTI-METER
█ Frame Format
█ Answer Frame Format
•P : Mark +(2BH), -(2DH)
•DP : Dimical point 0 (X.XXX)
1 (XX.XX)
2 (XXX.X)
3 (XXXX.)
•Output status HI, GO, LO : 0 : Output OFF
1 : Output ON
•UERROR 0 : Normal operation
1 : Register does not exist
2 : Max display exceeded
3 : Input range exceeded
•The currently displayed value of
MP3 is 5,000
█ Frame Format
█ Response Frame Format
Parameter Meaning Set value Content Default
PROT
Protocol
selection
STD
SUM
Standard protocol
Standard protocol + Check sum
◯(fixed)
×
BPS Baud Rates
38400
19200
9600
4800
2400
1200
38400 bps
19200 bps
9600 bps
4800 bps
2400 bps
1200 bps
×
×
◯
×
×
×
PRI
Parity
NONE
EVEN
ODD
No parity
Even parity
Odd parity
◯(fixed)
×
×
DLEN
Data length
7
8
7 bits
8 bits
×
◯(fixed)
STOP Stop Bit 1
2
1 bits
2 bits
◯(fixed)
×
ADDR Address 0 ~ 99
Address setting ◯
● STD (standard protocol) frame structure
HEAD OFFICE
HANYOUNGNUX CO.,LTD
28, Gilpa-ro 71beon-gil, Nam-gu, Incheon, Korea
TEL : (82-32)876-4697 FAX : (82-32)876-4696 http://www.hynux.com
MG0101K170613
Digital multi panel meter
MP3(RS485)
Thank you for purchasing HANYOUNG product.
Please check whether the product is the exactly same as you ordered.
Before using the product, please read this instruction manual carefully.
Please keep this manual where you can view at any time
INSTRUCTION MANUAL
Byte 1 2 1 2 1
Frame STX Address R Register ETX
Read
Byte 1 2 1 2 1 1
Frame STX Address R OK P DP
Sign Decimal point
Byte 1 2 1 2 1 1 6 1
Frame STX Address W Register P DP Data ETX
Mark Dimical point
Byte 1 2 1 1 6 1
Frame STX Address W OK Error ETX
Write
Byte 6 1 1 1 1 1
Frame Data HI GO LO Error ETX
Output
status
Output
status
Output
status
Code OK
Mark
Dimical point
Data
Output status
STX
0 1 R O K P DP 10
5104103102101100HI GO LO
ERROR
ETX
02 30 31 52 4F 4B 2B 30 30 30 35 30 30 30 30 30 30 30 03
Code Register
STX
0 1 R 1 8 ETX
02
30 31 52 31 38 03