Panasonic KW1M Eco-Power METER User Manual page 48

Table of Contents

Advertisement

Data item
Name
(MEWTOCOL)
00B0H
Instantaneous
(DT00176)
00B1H
electric power
(DT00177)
note1) Even if it commands to write (06H.10H) to non-existent data address, slave response with
acknowledgement. However, it doesn't write.
note2) Even if it commands to write the value out of the setting range, slave response with
acknowledgement. However, it doesn't write.
note3) The maximum number of reading slaves is 26 (57-bite), the maximum number of writing slaves
is 23 (55-bite).
◇Data: Data depends on the function code.
A request message from the master side is composed of data item, number of data and setting data.
A response message from the slave side is composed of number of bytes, data and exception code in
negative acknowledgement.
◇Error check: 16-bit data to detect communication errors. Refer to the next.
◇Acknowledgement response
When command is to write 1 point, same massage of command is responded.
When command is to write several points, part of command message (6-bite) is responded.
◆Error check
After calculating CRC-16 (Cyclic Redundancy Check) from slave address to the end of data, the
calculated 16-bit data is appended to the end of message in sequence from low order to high order.
<How to calculate CRC>
In CRC system, the information is divided by the polynomial series. The remainder is added to the end
of the information and transmitted. The generation of polynomial series is as follows.
(Generation of polynomial series: X
1
Initialize the CRC-16 data (assumed as X) (FFFFH).
Calculate exclusive OR (XOR) with the 1st data and X. This is assumed as X.
2
3
Shift X one bit to the right. This is assumed as X.
When a carry is generated as a result of the shift, XOR is calculated by X of
4
value (A001H). This is assumed as X. If a carry is not generated, go to step
Repeat steps
5
6
XOR is calculated with the next data and X. This is assumed as X.
Repeat steps
7
8
Repeat steps
9
Set X as CRC-16 to the end of message in sequence from low order to high order.
◆Message example
① Reading electricity rate (0036H) of address 1
・Command
Slave
3.5 idle
address
characters
(01H)
・Response message from slave in normal status (When Rate=1000(10.00) [03E8H])
Slave
3.5 idle
address
characters
(01H)
Unit
0.01kW
16
15
+ X
and
until shifting 8 times.
3
4
to
.
3
5
3
to
5
up to the last data.
Function
code
(03H)
1
1
Function
code
(03H)
1
1
Range: Hexadecimal
Kind of date
0H to F423FH (0 to 999999)
Unsigned 32bit
2
+ X
+ 1)
Data item
Number of
data
(0036H)
(0001H)
2
Number of
Number of
response byte
data
(02H)
(03E8H)
1
40
KW1M Eco-POWER METER
(Range: Decimal)
5
.
Error check
CRC-16
(6404H)
2
2
Error check
CRC-16
(B8FAH)
2
2
MODBUS
Function code
03H
and the fixed
3
3.5 idle
characters
←character
number
3.5 idle
characters
←character
number

Advertisement

Table of Contents
loading

This manual is also suitable for:

Akw1111Akw1110

Table of Contents