Modbus Rtu Protocol - MPR60S
Modbus Rtu Protocol - MPR60S
Starting and finishing of T times, which are as much as 3.5 characters time, are time periods of data lines which
must be constant for evaluating by devices at the line if the message starts or finishes.
Address area, which is between 1 and 247, shows the serial address of device at the line.
Data area contains the data which is sent to device from slave to master or from master to slave.
CRC is a determination methode of error which is used at the MODBUS RTU Protocol and it has 2 bytes
01 Device address
03 Function
00 MSB address
00 LSB address
00 Register numbers MSB
01 Register numbers LSB
84 CRC MSB
0A CRC LSB
Single register writing command (06) is used to set the transformer ratios or clear any of min., max. or demand
values. Current transformer ratio can be entered between 1 and 5000 and voltage transformer ratio can be
entered between 1 and 4000. Only 0 (zero) value can be entered to the demand values.
For setting the CT ratio as 100;
01 Device address
06 Function
01 MSB address
00 LSB address
00 Data MSB
64 Data LSB
89 CRC MSB
DD CRC LSB
Multiple register writing command (10H) is used to change more than one register value. For setting the CT ratio
as 100 and voltage transformer ratio as 2;
RESPONSE
01 Device address 01 Device address
10 Function 10 Function
01 MSB address 01 Register address (high)
00 LSB address 00 Register address (low)
00 Register number MSB 00 Number of registers (high)
02 Register number LSB 02 Number of registers (low)
04 Byte number 40 CRC (high)
00 Data MSB 34 CRC (low)
64 Data LSB
00 Data MSB
C8 Data LSB
BE CRC MSB
76 CRC LSB
Parameters are transmitted as 16 bit hexadecimal.
For example:
230,6 V voltage value of the device is received as 2306 (0902H) and real value is obtained by multiplying
to its multiplier (x0,1) and VT ratio
1,907A current value is received as 1907 (0773H) and it is multiplyed by 0,001 and CT ratio
-0,78 P.F. value is received as FCF4H. (16 bit signed integer)
Energy values are sent as 2 words in 16 bit register table.
Energy value = (High x 10.000) + Low
Example : Low High
06237819 kWh = 1E8BH 026FH
10
3.2 Features of connection cable:
- Screened
- 24 AWG or more thickness
- DC resistance : =<100 ohm/km
- Characteristic impedance : 100 ohm for 100kHz
- Capacitor between two conductors : =< 60 pF/m
- Capacitor between one conductor and earth : =< 120 pF/m
3.3 I/O Relay Status Register.
I/O Relay Status register is used to observe the status of device outputs
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 Relay2 Relay1 (Only for MPR60S/MPR60S-21/41)
15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
0 0 0 0 0 0 0 0 0 0 0 0 Input2 Input1 Relay2 Relay1 (Only for MPR60S-10/20/40)
When Relay 1 is switched on, 0 (zero) bit of I/O Relay Status Register is read as 1 and when Relay 1 is not
switched on it is read as 0.
When Relay 2 is switched on, 1st bit of I/O Relay Status Register is read as 1 and when Relay 2 is not switched
on it is read as 0.
If Relay Functions (Setup register:011AH/012DH) is set to 1 then Relay 1/2 functions as Digital Output 1/2.
For switch ON Relay 1 Example : 01 06 00 4C 00 01 CRC
For switch ON Relay 2 Example : 01 06 00 4C 00 02 CRC
For switch ON both relays Example : 01 06 00 4C 00 03 CRC
For switch OFF both relays Example : 01 06 00 4C 00 00 CRC
...
...
...
00 Data 28 MSB
00 Data 28 LSB
71 CRC MSB
B0 CRC LSB
Warning : Data logs must be deleted individually for each file.
For deleting the data logs at the File 0, below request must be sent.
Request : 01 06 04 01 00 00 D9 3A
Response : 01 06 04 01 00 00 D9 3A
}
record numbers
* Please refer to page 12 for energy log table.
Log format Type Range 3.6 File Record Information Table
1 Index Hi 0..999
Index Lo Word
It shows the number of records, open file and total number of
Day Hi 1..31 recordings of the files which have data logs.
2 Word
Month Lo 1..12
Year Hi 00.99 ADDRESS DESCRIPTION DIMENSION
3 Word
Hour Lo 00..23
0400H File which is recorded now. (0-14) word
Minute Hi 00..59
4 Word 0401H Record numbers at File 0 word
Second Lo 00..59
0402H Record numbers at File 1 word
Data 01 Hi
0..65535
...
...
...
5 Word
Data 01 Lo
0410H Record numbers at energy file word
Data 02 Hi
6 Word 0..65535 0411H Total record numbers word
Data 02 Lo
...
...
Data 28 Hi
31 Word 0..65535 11
Data 28 Lo
32 CRC Word CRC16
3.7 Energy Log
}
}
constant invalid function code constant function code constant function code
01 Error code 02 Error code 03 Error code
82 CRC (high) C3 CRC (high) 01 CRC (high)
30 CRC (low) A1 CRC (low) 31 CRC (low)
Device takes 64 samples in each period. For 50 Hz, it takes 3200 samples in one second and for 60 Hz, it takes 3840 samples
in one second.
12
3.10 Data Register Map (16 bit)
ADDRESS DESCRIPTION DIMENSION MULTIPLIER RANGE UNIT
(16 bit)
0000H Voltage LN1 Word Data x VT x 0.1 0 .. Vmax V
0001H Voltage LN2 Word Data x VT x 0.1 0 .. Vmax V
0002H Voltage LN3 Word Data x VT x 0.1 0 .. Vmax V
0003H Current LN1 Word Data x CT x 0.001 0 .. Imax A
0004H Current LN2 Word Data x CT x 0.001 0 .. Imax A
0005H Current LN3 Word Data x CT x 0.001 0 .. Imax A
0006H Total Current Word Data x CT x 0.001 0 .. Imax A
0007H Active Power L1 Signed Int Data x VT x CT 0 .. ±Pmax W
0008H Active Power L2 Signed Int Data x VT x CT 0 .. ±Pmax W
0009H Active Power L3 Signed Int Data x VT x CT 0 .. ±Pmax W
000AH Reactive Power L1 Signed Int Data x VT x CT 0 .. ±Qmax VAr
000BH Reactive Power L2 Signed Int Data x VT x CT 0 .. ±Qmax VAr
000CH Reactive Power L3 Signed Int Data x VT x CT 0 .. ±Qmax VAr
000DH Apparent Power L1 Word Data x VT x CT 0 .. Smax VA
000EH Apparent Power L2 Word Data x VT x CT 0 .. Smax VA
000FH Apparent Power L3 Word Data x VT x CT 0 .. Smax VA
0010H Power Factor L1 Signed Int Data x 0.001 -1.000 .. 1.000 -
0011H Power Factor L2 Signed Int Data x 0.001 -1.000 .. 1.000 -
0012H Power Factor L3 Signed Int Data x 0.001 -1.000 .. 1.000 -
0013H Cos L1 Signed Int Data x 0.001 -1.000 .. 1.000 -
0014H Cos L2 Signed Int Data x 0.001 -1.000 .. 1.000 -
0015H Cos L3 Signed Int Data x 0.001 -1.000 .. 1.000 -
0016H Voltage L12 Word Data x VT x 0.1 0 .. Vmax V
0017H Voltage L23 Word Data x VT x 0.1 0 .. Vmax V
0018H Voltage L31 Word Data x VT x 0.1 0 .. Vmax V
0019H Voltage LN Word Data x VT x 0.1 0 .. Vmax V
001AH Voltage LL Word Data x VT x 0.1 0 .. Vmax V
001BH Frequency Word Data x 0.01 45.00 .. 65.00 Hz
001CH Total Active Power Signed Int Data x VT x CT 0 .. ±Pt max W
001DH Total Reactive Power Signed Int Data x VT x CT 0 .. ±Qt max VAr
001EH Total Apparent Power Word Data x VT x CT 0 .. St max VA
001FH THD V1 Word Data x 0.1 0 .. 900 %
0020H THD V2 Word Data x 0.1 0 .. 900 %
0021H THD V3 Word Data x 0.1 0 .. 900 %
0022H THD V3P Word Data x 0.1 0 .. 900 %
0023H THD I1 Word Data x 0.1 0 .. 900 %
0024H THD I2 Word Data x 0.1 0 .. 900 %
0025H THD I3 Word Data x 0.1 0 .. 900 %
0026H THD I3P Word Data x 0.1 0 .. 900 %
0027H *Voltage High LN1 Word Data x VT x 0.1 0 .. Vmax V
0028H *Voltage High LN2 Word Data x VT x 0.1 0 .. Vmax V
0029H *Voltage High LN3 Word Data x VT x 0.1 0 .. Vmax V
002AH *Voltage Low LN1 Word Data x VT x 0.1 0 .. Vmax V
002BH *Voltage Low LN2 Word Data x VT x 0.1 0 .. Vmax V
002CH *Voltage Low LN3 Word Data x VT x 0.1 0 .. Vmax V
002DH *Demand Current High L1 Word Data x CT x 0.001 0 .. Imax A
002EH *Demand Current High L2 Word Data x CT x 0.001 0 .. Imax A
002FH *Demand Current High L3 Word Data x CT x 0.001 0 .. Imax A
0030H *Demand Current Low L1 Word Data x CT x 0.001 0 .. Imax A
0031H *Demand Current Low L2 Word Data x CT x 0.001 0 .. Imax A
0032H *Demand Current Low L3 Word Data x CT x 0.001 0 .. Imax A
0033H *Demand Current L1 Word Data x CT x 0.001 0 .. Imax A
0034H *Demand Current L2 Word Data x CT x 0.001 0 .. Imax A
0035H *Demand Current L3 Word Data x CT x 0.001 0 .. Imax A
0036H *Demand Total Current High Word Data x CT x 0.001 0 .. Imax A
0037H *Demand Total Current Low Word Data x CT x 0.001 0 .. Imax A
0038H *Demand Total Current Word Data x CT x 0.001 0 .. Imax A
0039H *Demand Total Active Power Signed Int Data x VT x CT 0 .. Pt max W
003AH *Demand Total Reactive Power Signed Int Data x VT x CT 0 .. Qt max VAr
003BH *Demand Total Apparent Power Word Data x VT x CT 0 .. St max VA
003CH *Import Active Energy Lo Word (Data + - -
003DH *Import Active Energy Hi Word Data x 10000) 99999999 kWh/MWh
003EH *Export Active Energy Lo Word (Data + - -
003FH *Export Active Energy Hi Word Data x 10000) 99999999 kWh/MWh
0040H *Inductive Reactive Energy Lo Word (Data + - -
0041H *Inductive Reactive Energy Hi Word Data x 10000) 99999999 kVArh/MVArh
0042H *Capacitive Reactive Energy Lo Word (Data + - -
0043H *Capacitive Reactive Energy Hi Word Data x 10000) 99999999 kVArh/MVArh
0044H Hour Word Data 0 .. 23 h
0045H Minute Word Data 0 .. 59 m
0046H Second Word Data 0 .. 59 s
0047H Day Word Data 0 .. 31 day
0048H Month Word Data 0 .. 12 month
0049H Year Word Data 00 .. 99 year
004AH Current Transformer Ratio Word Data 1 .. 5000 -
004BH Voltage Transformer Ratio Word Data x 0.1 1.0 .. 4000.0 -
IO Relay Status (only MPR60S/60S-21/41) Data & 0x0003 b0:Relay1,b1:Relay2
004CH IO Relay and Control Status Binary b0:Relay1,b1:Relay2 -
Data & 0x000F
(only MPR60S-10/20/40) b2:Input1, b3:Input2
004DH Total Power Factor Signed Int Data x 0.001 -1.000 .. 1.000 -
004EH Neutral Current Word Data x CT x 0.001 0..IN max. A
004FH *Demand Total Active Power High Signed Int Data x VT x CT 0 .. +Pt max W
0050H *Demand Total Reactive Power High Signed Int Data x VT x CT 0 .. +Qt max VAr
0051H *Demand Total Apparent Power High Word Data x VT x CT 0 .. St max VA
0052H *Demand Total Active Power Low Signed Int Data x VT x CT 0 .. +Pt max W
0053H *Demand Total Reactive Power Low Signed Int Data x VT x CT 0 .. +Qt max VAr
0054H *Demand Total Apparent Power Low Word Data x VT x CT 0 .. St max VA
13
3.11 Data Register Map (32 bit)
(Following values are multiplied by Voltage and Current Transformer Ratios)
ADDRESS DESCRIPTION DIMENSION MULTIPLIER RANGE UNIT
(32 bit)
...
...
15
3.13 Setup Register Map (16bit) (for MPR60S-10)
DIMENSION
ADDRESS DESCRIPTION (16bit) MULTIPLIER UNIT
...
...
16
3.14 Setup Register Map (16 bit) (for MPR60S-20)
DIMENSION
ADDRESS DESCRIPTION (16bit) MULTIPLIER UNIT
...
...
17
3.15 Setup Register Map (16 bit) (for MPR60S-21)
DIMENSION
ADDRESS DESCRIPTION (16bit) MULTIPLIER UNIT
...
Data
...
18
3.16 Setup Register Map (16 bit) (for MPR60S-40)
DIMENSION
ADDRESS DESCRIPTION (16bit) MULTIPLIER UNIT
...
...
19
3.17 Setup Register Map (16 bit) (for MPR60S-41)
DIMENSION
ADDRESS DESCRIPTION (16bit) MULTIPLIER UNIT
...
...
20