PZEM-004T AC Voltage Current Test Module Open Closed CT 100A Multifunctional NEW
AC communication module
Overview
This document describes the specification of the PZEM-004T AC communication module, the module is mainly used for measuring AC voltage, current, active power, frequency, power factor and active energy, the module is without display function, the data is read through the TTL interface.
PZEM-004T-100A: Measuring Range 100A (external transformer)
<1000W, it display one decimal, such as: 999.9W
≥1000W, it display only integer, such as: 1000W
<10kWh, the display unit is Wh(1kWh=1000Wh), such as: 9999Wh
≥10kWh, the display unit is kWh, such as: 9999.99kWh
Active power threshold can be set, when the measured active power exceeds the threshold, it can alarm
RS485 interface。
Physical layer use UART to RS485 communication interface
Baud rate is 9600, 8 data bits, 1 stop bit, no parity
The application layer use the Modbus-RTU protocol to communicate. At present, it only supports function codes such as 0x03 (Read Holding Register), 0x04 (Read Input Register), 0x06 (Write Single Register), 0x41 (Calibration), 0x42 (Reset energy).etc.
0x41 function code is only for internal use (address can be only 0xF8), used for factory calibration and return to factory maintenance occasions, after the function code to increase 16-bit password, the default password is 0x3721
The address range of the slave is 0x01 ~ 0xF7. The address 0x00 is used as the broadcast address, the slave does not need to reply the master. The address 0xF8 is used as the general address, this address can be only used in single-slave environment and can be used for calibration etc.operation.
The command format of the master reads the measurement result is(total of 8 bytes):
Slave Address + 0x04 + Register Address High Byte + Register Address Low Byte + Number of Registers High Byte + Number of Registers Low Byte + CRC Check High Byte + CRC Check Low Byte.
The command format of the reply from the slave is divided into two kinds:
Correct Reply: Slave Address + 0x04 + Number of Bytes + Register 1 Data High Byte + Register 1 Data Low Byte + ... + CRC Check High Byte + CRC Check Low Byte
Error Reply: Slave address + 0x84 + Abnormal code + CRC check high byte + CRC check low byte
Abnormal code analyzed as following (the same below)
Register address |
Description |
Resolution |
0x0000 |
Voltage value |
1LSB correspond to 0.1V |
0x0001 |
Current value low 16 bits |
1LSB correspond to 0.001A |
0x0002 |
Current value high 16 bits |
|
0x0003 |
Power value low 16 bits |
1LSB correspond to 0.1W |
0x0004 |
Power value high 16 bits |
|
0x0005 |
Energy value low 16 bits |
1LSB correspond to 1Wh |
0x0006 |
Energy value high 16 bits |
|
0x0007 |
Frequency value |
1LSB correspond to 0.1Hz |
0x0008 |
Power factor value |
1LSB correspond to 0.01 |
0x0009 |
Alarm status |
0xFFFF is alarm,0x0000is not alarm |
For example, the master sends the following command (CRC check code is replaced by 0xHH and 0xLL, the same below)
0x01 + 0x04 + 0x00 + 0x00 + 0x00 + 0x0A + 0xHH + 0xLL
Indicates that the master needs to read 10 registers with slave address 0x01 and the start address of the register is 0x0000
The correct reply from the slave is as following:
0x01 + 0x04 + 0x14 + 0x08 + 0x98 + 0x03 + 0xE8+0x00 + 0x00 +0x08 + 0x98+ 0x00 + 0x00 + 0x00 + 0x00 + 0x00 + 0x00 + 0x01 + 0xF4 + 0x00 + 0x64 + 0x00 + 0x00 + 0xHH + 0xLL
The above data shows
At present,it only supports reading and modifying slave address and power alarm threshold
The register is arranged as the following table
Register address |
Description |
Resolution |
0x0001 |
Power alarm threshold |
1LSB correspond to 1W |
0x0002 |
Modbus-RTU address |
The range is 0x0001~0x00F7 |
The command format of the master to read the slave parameters and read the measurement results are same(descrybed in details in Section 2.3), only need to change the function code from 0x04 to 0x03.
The command format of the master to modify the slave parameters is (total of 8 bytes):
Slave Address + 0x06 + Register Address High Byte + Register Address Low Byte + Register Value High Byte + Register Value Low Byte + CRC Check High Byte + CRC Check Low Byte.
The command format of the reply from the slave is divided into two kinds:
Correct Response: Slave Address + 0x06 + Number of Bytes + Register Address Low Byte + Register Value High Byte + Register Value Low Byte + CRC Check High Byte + CRC Check Low Byte.
Error Reply: Slave address + 0x86 + Abnormal code + CRC check high byte + CRC check low byte.
For example, the master sets the slave's power alarm threshold:
0x01 + 0x06 + 0x00 + 0x01 + 0x08 + 0xFC + 0xHH + 0xLL
Indicates that the master needs to set the 0x0001 register (power alarm threshold) to 0x08FC (2300W).
Set up correctly, the slave return to the data which is sent from the master.
For example, the master sets the address of the slave
0x01 + 0x06 + 0x00 + 0x02 + 0x00 + 0x05 + 0xHH + 0xLL
Indicates that the master needs to set the 0x0002 register (Modbus-RTU address) to 0x0005
Set up correctly, the slave return to the data which is sent from the master.
The command format of the master to reset the slave's energy is (total 4 bytes):
Slave address + 0x42 + CRC check high byte + CRC check low byte.
Correct reply: slave address + 0x42 + CRC check high byte + CRC check low byte.
Error Reply: Slave address + 0xC2 + Abnormal code + CRC check high byte + CRC check low byte
The command format of the master to calibrate the slave is (total 6 bytes):
0xF8 + 0x41 + 0x37 + 0x21 + CRC check high byte + CRC check low byte.
Correct reply: 0xF8 + 0x41 + 0x37 + 0x21 + CRC check high byte + CRC check low byte.
Error Reply: 0xF8 + 0xC1 + Abnormal code + CRC check high byte + CRC check low byte.
It should be noted that the calibration takes 3 to 4 seconds, after the master sends the command, if the calibration is successful, it will take 3 ~ 4 seconds to receive the response from the slave.
CRC check use 16bits format, occupy two bytes, the generator polynomial is X16 + X15 + X2 +1, the polynomial value used for calculation is 0xA001.
The value of the CRC check is a frame data divide all results of checking all the bytes except the CRC check value.
Picture 3.1 PZEM-004T-10A Functional block diagram
1,We will arrange shipping for you within 24 Hours after payment cleared except the holidays.
2,We only ship to the confirmed address provided by PayPal. Before you pay, please make sure your address in PayPal matches the address you would like us to ship to. If not, please let us know before we sent you the package, or we will not be responsible for any loss. hope you could understand.
3,we will ship out the order in 1-2 business days after payment cleared .Since it is international shipping ,delivery time is about 15--28 business days to arrive to most countries.
4,We ship items to Worldwide. Thank you!
We accept PayPal payment ONLY.
If you do not have Paypal account, please registered with (http://www.paypal.com) Payment must be received within 5 days after auctions ended. Please do not bid if you are not intending to buy. Unpaid dispute will be filed to ebay for the non payable bidders.
We are not responsible for custom duty or import tax.
We will leave POSITIVE FEEDBACK after receiving the payment. Please contact us if your are not satisfied with the item after receive it.
We could offer refund, and refund request is available only requests within a week after parcel received & returning the item as the same condition as received.
We offer 100% refund if the item is broken before arrival, all you need to do is sending us the clear pictures to show it is broken. Defective situation must be noticed within 7 days after delivery.
All emails will be answered within 1 business day. If you do not receive our reply, please kindly re-sent your email,and we will reply to you as soon as possible.
All items sold by us are being described to the best of our abilities, as accurate as possible, and with utmost conscientiousness on our part.However, to avoid any potential oversights, I respectfully request your assistance in helping us to make this a mutually satisfactory transaction by Thoroughly reviewing item description and photos, and asking all questions Prior To Bidding.
Please Note that size and color representation are subject to manufacturing variance and may not be exact. Also note that monitor settings may vary from computer to computer and may distort actual colors. Please read these terms thoroughly before placing your bid.
We will automatically leave a positive feedback to everyone who has complete the transaction and leave us positive feedback.
Please do not forget to give us Five Stars on all of the Detailed Seller Ratings. Thanks!
In the unlikely event you are not satisfied with the transaction, please contact us before you sumbit your evaluation. We believe that everything could be solved by communication.
1.in order to provide you the best service*****,please treat the transaction fairly.*feedback is simply what we pursue.
2.Please Do contact us first to get a better solution before you would leave a *neutral or *negative feedback
3.We strive for 5-star service by stating upfront our policies, our shipping rate& our shipping frequency. if you were pleased with this transaction, please respond with all 5 stars! if you are not pleased, simply let me know via e-mial rather than leave low score, and I'll work to make it that way
4.Please email me through 'MY MESSAGES' or "Ask Seller Questions" if you have any question about our listing or your purchase