Page 2
Added 16-bit and 32-bit frozen analog inputs and Time and Date object to the Class 0 point list. Added 3-min power demand interval. June 2008 PM172P/E, F/W versions 13.1.19 and later, 13.71.12 or higher. Added programmable starting current. Added instrument transformer correction.
Table of Contents 1 GENERAL ......................8 2 MODBUS PROTOCOL IMPLEMENTATION............9 Transmission Modes..................9 Address Field ....................9 Function Field ....................9 Exception Responses..................9 Modbus Register Addresses ................9 Data Formats ....................10 2.6.1 16-bit Scaled Integer Format ................10 2.6.2 32-bit Long Integer Format................
Page 6
Maximum Harmonic Demands ................50 TOU Maximum Demand Register #1 ..............50 TOU Maximum Demand Register #2 ..............50 TOU Maximum Demand Register #3 ..............51 TOU Maximum Demand Register #4 ..............51 TOU Maximum Demand Register #5 ..............51 TOU Maximum Demand Register #6 ..............
Page 7
File Transfer Registers ................. 71 File Allocation Status Registers ................71 File Transfer Control/Status Registers ..............71 Event Log File Transfer Registers ................73 Data Log File Transfer Registers................73 Waveform Header Transfer Registers ..............75 Waveform Series Transfer Block ................
1 General This document specifies a subset of the Modbus serial communications protocol used to transfer data between a master computer station and the PM172. The document provides the complete information necessary to develop third-party communications software capable of communication with the Series PM172 instruments. Additional information concerning communications operation, configuring the communications parameters, and communications connections is found in "Series PM172 Powermeters, Installation and Operation Manual".
2 Modbus Protocol Implementation For detailed information about Modbus protocol, Modbus message framing and error checking, refer to the "Modicon Modbus Protocol Reference Guide". It can be downloaded from the www.modbus.org Website. The following paragraphs outline some issues concerning the implementation of the Modbus protocol in the PM172.
To map the PM172 register address to the range of the Modbus holding registers, add a value of 40001 to the PM172 register address. When a register address exceeds 9999, use a 6-digit addressing scheme by adding 400001 to the PM172 register address. 2.6 Data Formats The PM172 uses three data formats to pass data between a master application and the instrument: 16-bit short integer, 32-bit long integer and 32-bit modulo-10000 formats.
If the raw data reading is 250 then the current reading in engineering units will be as follows: Amps reading = 250 × (400.00 - 0)/(9999 - 0) + 0 = 10.00A 3. Power readings a) Assume device settings (direct wiring): Wiring 4LL3; PT = 1; CT primary current = 200A; Voltage scale = 828V.
2. Signed 32-bit Values If you read signed kW of -789kW from registers 14336-14337, then the register readings will be: (14336) = 64747 (unsigned) (14337) = 65535 (unsigned) or -1(signed value). To take the high order register as a signed value, compare it with 32767. If the value is less or equal to 32767, use it as is.
When password protection is enabled, the user password you set in your instrument should be written into the device authorization register (2575) before another write request is issued. If the correct password is not supplied while password protection is enabled, the instrument will respond to all write requests with the exception code 01 (illegal operation).
Profile Data Log File Data log file #8 can be configured for a daily profile log of the energy usage and maximum demand registers. A profile log file is organized as a multi-section file that has a separate section for each energy and maximum demand register. A file record stores the summary data (total of all tariffs) and all tariff data for each configured Summary/TOU register.
register that moves the pointer to the oldest file record. If you do not change the file position, then you will continue reading the file from the record following the one you have read the last time you accessed the file. You need not explicitly move the file position to the following record if you want to continue reading a file in a sequence after you have uploaded the current record.
2. Read the V1 channel header data through the corresponding waveform header transfer block. The record data is moved to the port’s communication buffer, and then the file pointer automatically moves to the next record. 3. Read the V1 channel sample series through the waveform series transfer block. 4.
Page 17
If the server does not close a connection, it will be closed in 20 seconds if there is no activity on the socket. In the event a connection attempt was unsuccessful, the notification client retries two more times before announcing a connection failure. The server’s IP address, port number and starting Modbus register address are programmable in the meter.
3.2 16-bit Scaled Analog Registers and Energy Counters - Basic Register Set Address Point ID Description Type Notes Low and High Scales Units 256-308 +0 0x1100 V1/V12 Voltage 0-Vmax UINT16 +1 0x1101 V2/V23 Voltage 0-Vmax UINT16 +2 0x1102 V3/V31 Voltage 0-Vmax UINT16 +3 0x1103...
Page 20
Address Point ID Description Type Notes Low and High Scales Units +39 0x1112 V1/V12 Voltage THD 0-999.9 0.1% UINT16 3-sec value +40 0x1113 V2/V23 Voltage THD 0-999.9 0.1% UINT16 3-sec value +41 0x1114 V3/V31 Voltage THD 0-999.9 0.1% UINT16 3-sec value +42 0x1115 I1 Current THD 0-999.9...
3.3 16-bit Scaled Analog Registers, Binary Registers and Counters Address Point ID Description Type Notes Low and High Scales Units 6656 0x0000 None UINT16 6696-6697 Special Inputs +0 0x0100 Voltage disturbance 0-100 UINT16 +1 0x0101 Phase rotation order 0=error, 1=positive (ABC), UINT16 2=negative (CBA) 6776 0x0300...
Address Point ID Description Type Notes Low and High Scales Units +26 0x0C1A I3 K-Factor 1.0-999.9 UINT16 4-cycle value +27 0x0C1B I1 Current TDD 0-100.0 0.1% UINT16 4-cycle value +28 0x0C1C I2 Current TDD 0-100.0 0.1% UINT16 4-cycle value +29 0x0C1D I3 Current TDD 0-100.0 0.1%...
Address Point ID Description Type Notes Low and High Scales Units +15 0x108F Not used INT16 7336-7368 1-Second Phase Values +0 0x1100 V1/V12 Voltage 0-Vmax UINT16 +1 0x1101 V2/V23 Voltage 0-Vmax UINT16 +2 0x1102 V3/V31 Voltage 0-Vmax UINT16 +3 0x1103 I1 Current 0-Imax UINT16...
Address Point ID Description Type Notes Low and High Scales Units +7 0x1407 Total kW export 0-Pmax UINT32 +8 0x1408 Total kvar import 0-Pmax UINT32 +9 0x1409 Total kvar export 0-Pmax UINT32 +10 0x140A 3-phase average L-N/L-L voltage 0-Vmax UINT32 +11 0x140B 3-phase average L-L voltage 0-Vmax...
Address Point ID Description Type Notes Low and High Scales Units +14 0x290E kVA L3 0-Pmax UINT16 +15 0x290F Power factor L1 -1.000-1.000 0.001 INT16 +16 0x2910 Power factor L2 -1.000-1.000 0.001 INT16 +17 0x2911 Power factor L3 -1.000-1.000 0.001 INT16 8336-8343 Harmonic Total Values...
Address Point ID Description Type Notes Low and High Scales Units 8736-8765 Maximum 1-Cycle Phase Values +0 0x3400 V1/V12 Voltage 0-Vmax UINT16 +1 0x3401 V2/V23 Voltage 0-Vmax UINT16 +2 0x3402 V3/V31 Voltage 0-Vmax UINT16 +3 0x3403 I1 Current 0-Imax UINT16 +4 0x3404 I2 Current 0-Imax...
Address Point ID Description Type Notes Low and High Scales Units +12 0x370C Not used UINT16 +13 0x370D Not used UINT16 +14 0x370E Not used UINT16 +15 0x370F Maximum kW export sliding window demand 0-Pmax UINT16 +16 0x3710 Maximum kvar export sliding window demand 0-Pmax UINT16 7200-7211...
Address Point ID Description Type Notes Low and High Scales Units 9656-9663 TOU Maximum Demand Register #7 +0 0x5300 0-Pmax UINT16 Tariff #1 maximum demand +1 0x5301 0-Pmax UINT16 Tariff #2 maximum demand … +7 0x5307 0-Pmax UINT16 Tariff #8 maximum demand 9676-9683 TOU Maximum Demand Register #8 +0 0x5380...
Address Point ID Description Type Notes Low and High Scales Units 11616 0x7C00 Setpoint Status (bitmap) 0x0000-0xFFFF UINT16 NOTES: Energy and Power demand readings are only available in the meters with suffixes E and EH. Voltage and Voltage Harmonics Readings: When the 4LN3, 3LN3 or 3BLN3 wiring mode is selected, the voltages will be line-to-neutral;...
Address Point ID Description Type Notes Options/Range Units +50,51 0x0C19 I2 K-Factor 10-9999 ×0.1 UINT32 4-cycle value +52,53 0x0C1A I3 K-Factor 10-9999 ×0.1 UINT32 4-cycle value +54,55 0x0C1B I1 Current TDD 0-1000 ×0.1% UINT32 4-cycle value +56,57 0x0C1C I2 Current TDD 0-1000 ×0.1% UINT32...
Address Point ID Description Type Notes Options/Range Units +28,29 0x108E I3 Current angle -1800-1800 ×0.1º INT32 +30,31 0x108F Not used INT32 13952-14017 1-Second Phase Values +0,1 0x1100 V1/V12 Voltage 0-Vmax UINT32 +2,3 0x1101 V2/V23 Voltage 0-Vmax UINT32 +4,5 0x1102 V3/V31 Voltage 0-Vmax UINT32 +6,7 0x1103...
Address Point ID Description Type Notes Options/Range Units +12,13 0x1406 Total kW import 0-Pmax UINT32 +14,15 0x1407 Total kW export 0-Pmax UINT32 +16,17 0x1408 Total kvar import 0-Pmax UINT32 +18,19 0x1409 Total kvar export 0-Pmax UINT32 +20,21 0x140A 3-phase average L-N/L-L voltage 0-Vmax UINT32 +22,23 0x140B...
Address Point ID Description Type Notes Options/Range Units +16,17 0x2908 kW L3 -Pmax-Pmax INT32 +18,19 0x2909 kvar L1 -Pmax-Pmax INT32 +20,21 0x290A kvar L2 -Pmax-Pmax INT32 +22,23 0x290B kvar L3 -Pmax-Pmax INT32 +24,25 0x290C kVA L1 0-Pmax UINT32 +26,27 0x290D kVA L2 0-Pmax UINT32...
Address Point ID Description Type Notes Options/Range Units +4,5 0x2D02 Total kVA 0-Pmax UINT32 +6,7 0x2D03 Total PF 0-1000 ×0.001 UINT32 Absolute value 17664-17669 Minimum 1-Cycle Auxiliary Values +0,1 0x2E00 Not used UINT32 +2,3 0x2E01 In Current 0-Imax UINT32 +4,5 0x2E02 Frequency 0-Fmax ×0.01Hz...
Address Point ID Description Type Notes Options/Range Units +12,13 0x3706 Not used UINT32 +14,15 0x3707 Not used UINT32 +16,17 0x3708 Not used UINT32 +18,19 0x3709 Maximum kW import sliding window demand 0-Pmax UINT32 +20,21 0x370A Maximum kvar import sliding window demand 0-Pmax UINT32 +22,23 0x370B...
Address Point ID Description Type Notes Options/Range Units 21288-21303 TOU Maximum Demand Register #6 +0,1 0x4A80 0-Pmax UINT32 Tariff #1 maximum demand +2,3 0x4A81 0-Pmax UINT32 Tariff #2 maximum demand … +14,15 0x4A87 0-Pmax UINT32 Tariff #8 maximum demand 22400-22415 TOU Maximum Demand Register #7 +0,1 0x5300 0-Pmax...
Address Point ID Description Type Notes Options/Range Units +0,1 0x6A00 -1800-1800 ×0.1º INT32 H01 Harmonic angle +2,3 0x6A01 -1800-1800 ×0.1º INT32 H02 Harmonic angle +78,79 0x6A27 -1800-1800 ×0.1º INT32 H40 Harmonic angle Generic TOU Season Energy Registers ID’s Point references only 0x7000 0-999,999,999 1 kWh...
Address Point ID Description Type Notes Options/Range/Format Units +22,23 Timestamp UINT32 +24-71 0x2C06- Not used INT32 0x2C11 +72,73 0x2C12 Min. V1/V12 Voltage THD 0-9999 ×0.1% UINT32 4-cycle value +74,75 Timestamp UINT32 +76,77 0x2C13 Min. V2/V23 Voltage THD 0-9999 ×0.1% UINT32 4-cycle value +78,79 Timestamp...
Address Point ID Description Type Notes Options/Range/Format Units +8,9 0x3502 Max. Total kVA 0-Pmax UINT32 +10,11 Timestamp UINT32 +12,13 0x3503 Max. Total PF -1000-1000 ×0.001 INT32 +14,15 Timestamp UINT32 37376-37387 Maximum Auxiliary Values +0,1 0x3600 Not used UINT32 +2,3 UINT32 +4,5 0x3601 Max.
Address Point ID Description Type Notes Options/Range/Format Units +48,49 0x3737 Not used UINT32 +50,51 Timestamp UINT32 +52,53 0x370D Not used UINT32 +54,55 Timestamp UINT32 +56,57 0x370E Not used UINT32 +58,59 Timestamp UINT32 +60,61 0x370F Maximum kW export sliding window demand 0-Pmax UINT32 +62,63...
3.6 Device Control and Status Registers Address Point ID Description Options/Range Units Type Notes Device Restart Register 2560 Warm restart of the device 0 when read, UINT16 0xFFFF when written = restart the device Device Authorization Registers 2575 When write: 4-digit password. When read: 0 = access 0-9999 (write) INT16 permitted, -1 = authorization required.
UINT16 2563 Firmware build number 1-99 UINT16 2564 Reserved UINT16 2565 Firmware version number 1300-1399,1500-1599(PM172P/E), UINT16 Two higher decimal digits = major 1400-1499,1600-1699 (PM172EH) version number, two lower decimal digits = minor version number 2566,2567 Instrument options UINT32 3484 Current serial port number...
Address Point ID Description Options/Range Units Type Notes Nonvolatile register that keeps the status of the that the designated diagnostics internal device diagnostics. failed at least once since the alarm bits were reset. When written: Bits preset to 0 clear corresponding alarms;...
46080-46111 +0,1 Device serial number 0-999999 UINT32 +2,3 Device model ID 17210=PM172P, 17220=PM172E, UINT32 17230=PM172EH +4-11 Device model name “PM172P”, “PM172E”, “PM172EH” CHAR16 Null-terminated string +12-13 Device options (bitmap) UINT32 +14-19 Reserved UINT16 Device firmware version number 1300-1399,1500-1599(PM172P/E), UINT16 Two higher decimal digits = major...
Address Point ID Description Options/Range Units Type Notes 2=hardware (CTS) RTS mode 0=not used, UINT16 N/A for COM2 (read as 65535) 1=RTS is permanently asserted 2=RTS is asserted during the transmission ASCII compatibility mode 0=disabled, 1=enabled UINT16 2344-2351 COM1 Setup 2352-2359 COM2 Setup Device Options Setup...
Address Point ID Description Options/Range Units Type Notes the clock at the nearest whole minute. Country code ITU calling number UINT16 DST start hour UINT16 DST end hour UINT16 Clock Indication and Setup 4352-4358 Seconds 0-59 UINT16 Minutes 0-59 UINT16 Hour 0-23 UINT16...
Address Point ID Description Options/Range Units Type Notes 1792-1807 Data log #1 Setup 1808-1823 Data log #2 Setup 1824-1839 Data log #3 Setup 1840-1855 Data log #4 Setup 1856-1871 Data log #5 Setup 1872-1887 Data log #6 Setup 1888-1903 Data log #7 Setup 1904-1919 Data log #8 Setup Pulse Counters Setup...
Address Point ID Description Options/Range Units Type Notes +4,5 Network default gateway 0x00000000-0xFFFFFFFF UINT32 Network byte order +6,7 Use DHCP 0 = NO, 1 = YES UINT32 +8,9 TCP service port 502 = Modbus/TCP, UINT32 20000 = DNP3.0/TCP +10-127 Reserved Password Setup 46704-46707 +0,1...
Address Point ID Description Options/Range Units Type Notes Number of mapped points of the Analog Input object 0 to 43 (default 43) UINT16 Number of mapped points of the Binary Input object 0 to 32 (default 21) UINT16 Number of mapped points of the Binary Counter 0 to 16 (default 0) UINT16 object...
Address Point ID Description Options/Range Units Type Notes DNP Class 0 Points Group 1 51702-51704 DNP Class 0 Points Group 2 51705-51707 … 51795-51797 DNP Class 0 Points Group 32 51798-51893 Reserved Waveform Recorder Setup 53878-53949 Sampling rate, samples per cycle 32 (Waveform log #1), UINT16 Ignored when written...
Address Point ID Description Options/Range Units Type Notes 55694-55701 Daily profile #16: Season 4, Day type 4 Reserved 55702-55711 TOU Calendar Setup 55712-56031 +0-9 Calendar entry record Daily profile 0-3 = Season 1, Day types 0-3 UINT16 4-7 = Season 2, Day types 0-3 8-11 = Season 3, Day types 0-3 12-15 = Season 4, Day types 0-3 Week of month...
Address Point ID Description Options/Range Units Type Notes +4,5 Full scale value (20/1 mA) INT32 62368-62373 AI1 Setup 62374-62379 AI2 Setup Analog Outputs Setup 62560-62571 Output parameter ID UINT16 Not used UINT16 +2,3 Zero scale value (0/4 mA) See Section 3.4 INT32 +4,5 Full scale value (20/1 mA)
3.8 Analog and Digital I/O Configuration Address Point ID Description Options/Range Units Type Notes I/O Slots Configuration Info 63008-63055 I/O type UINT16 Number of I/Os on the slot UINT16 First I/O number on the slot UINT16 Last I/O number on the slot UINT16 63008-63011 DI Slot Configuration...
3.9 File Transfer Registers Address Point ID Description Options/Range Units Type Notes File Allocation Status Registers 3500,3501 File allocation map (bitmap) UINT32 Bits set to 1 indicate that the memory is allocated to the designated files 3502,3503 Reserved UINT32 3504,3505 Daily profile log sections map (bitmap) UINT32 Bits set to 1 indicate that the...
Page 72
Address Point ID Description Options/Range Units Type Notes Number of the new records never read before 0 to 65535 UINT16 Sequence number of the last record in a file + 1 0 to 65535 (increments modulo UINT16 Will return zero if the file is empty (modulo 65536) 65536 with each new record) Sequence number of the first (oldest) record in a file...
Address Point ID Description Options/Range Units Type Notes 28840-28847 Daily Profile Log, Max. Demand Reg.#6 control UINT16 28848-28855 Daily Profile Log, Max. Demand Reg.#7 control UINT16 28856-28823 Daily Profile Log, Max. Demand Reg.#8 control UINT16 28824-28927 Reserved UINT16 Event Log File Transfer Registers 29440-29559 Event Record Structure Record status (bitmap)
Page 74
Address Point ID Description Options/Range Units Type Notes +16,17 Parameter #6 value INT32 32-bit non-scaled register +18,19 Parameter #7 value INT32 32-bit non-scaled register +20,21 Parameter #8 value INT32 32-bit non-scaled register +22,23 Parameter #9 value INT32 32-bit non-scaled register +24,25 Parameter #10 value INT32...
Address Point ID Description Options/Range Units Type Notes Waveform Header Transfer Registers 29696-32895 Waveform Header Structure Record status (bitmap) UINT16 Record sequence number in a file 0 to 65535 (increments modulo UINT16 65536) +2,3 Record time, sec UINT32 Indicates the time for the last sample point in the record Record time, fractional seconds, ms 0-999...
3.10 Billing/TOU Daily Profile Data Log File Record Point Label Point Description Range Type Notes Units Channel/ Field No. Section Energy Register #1 1 REG1 0x1780 Summary (total) energy reading 0-999,999,999 1 kWh UINT32 2 TRF1 0x7000 Tariff #1 energy reading 0-999,999,999 1 kWh UINT32...
Page 78
File Record Point Label Point Description Range Type Notes Units Channel/ Field No. Section 6 TRF5 MD 0x7104 Tariff #5 max. demand reading 0-Pmax UINT32 7 TRF6 MD 0x7105 Tariff #6 max. demand reading 0-Pmax UINT32 8 TRF7 MD 0x7106 Tariff #7 max.
4 Data Scales and Units Code Condition Value/Range Notes Data Scales Vmax Voltage scale × PT Ratio, V Imax Current scale (2A/10A) × CT Ratio = CT Primary current × 2, A 1, 3 Pmax Wiring 4LN3, 3LN3, 3BLN3 Vmax × Imax × 3, W Wiring 4LL3, 3LL3, 3BLL3, Vmax ×...
5 Data Formats Format Code Value Description Notes Timestamp Local time in a UNIX-style format. Represents the number of seconds since midnight (00:00:00), January 1, 1970. The time is valid after January 1, 2000. Wiring Mode 3OP2 - 3-wire open delta using 2 CTs (2 element) 4LN3 - 4-wire WYE using 3 PTs (3 element), line-to- neutral voltage readings 3DIR2 - 3-wire direct connection using 2 CTs (2 element)
Format Code Value Description Notes Summary/TOU Energy Register Source ID 0x0000 None 0x0700-0x0701 Pulse input DI1-DI2 0x1700 kWh import 0x1701 kWh export 0x1704 kvarh import 0x1705 kvarh export 0x1708 kVAh total Setpoint Trigger Parameters ID 0x0000 None (condition is not active) Voltage Disturbance 0x0100 Voltage disturbance...
Page 82
Format Code Value Description Notes 0x0B03 Year 0x0B04 Month 0x0B05 Day of month 0x0B06 Hour 0x0B07 Minutes 0x0B08 Seconds 1-Cycle Phase Values 0x0C03 High I1 current 0x0C04 High I2 current 0x0C05 High I3 current 0x8C03 Low I1 current 0x8C04 Low I2 current 0x8C05 Low I3 current 1-Cycle Values on any Phase...
Format Code Value Description Notes 0x1610 High accumulated kvar import demand 0x1611 High accumulated kVA demand 0x1612 High predicted kW import demand 0x1613 High predicted kvar import demand 0x1614 High predicted kVA demand 0x1616 High block kW export demand 0x1617 High block kvar export demand 0x1618 High sliding window kW export demand...
Format Code Value Description Notes 0x0000-0x59FF Trigger parameter ID 0x6400-0xFFFF Trigger parameter ID Setpoint Action Events 0x5A00-0x5A0F Setpoint #1-#16 Communications Events 0x5B00-0x5BFF Data point ID (low byte, see F21) Front Panel Operations 0x5C00-0x5CFF Data point ID (low byte, see F21) Self-Check Diagnostics Events 0x5D00-0x5DFF Data point ID (low byte, see F21)
Format Code Value Description Notes 16-bit Analog Change Event Without Time 16-bit Analog Change Event With Time DNP Class 0 Objects 0x1E01 Analog Input 30:01 0x1E02 Analog Input 30:02 0x1E03 Analog Input 30:03 0x1E04 Analog Input 30:04 0x1F01 Frozen Analog Input 31:01 0x1F02 Frozen Analog Input 31:02 0x1F03...
Page 88
Format Code Value Description Notes 00100000B ±1 mA 01010000B 0-20 mA 01010001B 4-20 mA 01010010B 0-1 mA 01010011B ±1 mA 01100000B 0-20 mA 01100001B 4-20 mA 01100010B 0-1 mA 01100011B Empty slot 1111 ×××× B NOTES: Voltage Waveforms When the 4LN3, 4LL3, 3LN3, 3LL3, 3BLN3 or 3BLL3 wiring mode is selected, the voltage waveforms will be line-to-neutral; for any other wiring mode, they will be line-to-line.
Need help?
Do you have a question about the PM172P and is the answer not in the manual?
Questions and answers