Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Notifications
Login / Register
Community
Community
Notifications
close
  • Forums
  • Knowledge Center
  • Events & Webinars
  • Ideas
  • Blogs
Help
Help
  • Explore Community
  • Get Started
  • Ask the Community
  • How-To & Best Practices
  • Contact Support
Login / Register
Sustainability
Sustainability

Join our "Ask Me About" community webinar on May 20th at 9 AM CET and 5 PM CET to explore cybersecurity and monitoring for Data Center and edge IT. Learn about market trends, cutting-edge technologies, and best practices from industry experts.
Register and secure your Critical IT infrastructure

PM2230 kWh parameter reset way question.

Metering & Power Quality

Schneider Electric support forum about Power Meters (ION, PowerTag, PowerLogic) and Power Quality from design, implementation to troubleshooting and more.

cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Home
  • Schneider Electric Community
  • EcoStruxure Power & Grid
  • Metering & Power Quality
  • PM2230 kWh parameter reset way question.
Options
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Bookmark
  • Subscribe
  • Mute
  • Printer Friendly Page
Invite a Co-worker
Send a co-worker an invite to the portal.Just enter their email address and we'll connect them to register. After joining, they will belong to the same company.
You have entered an invalid email address. Please re-enter the email address.
This co-worker has already been invited to the Exchange portal. Please invite another co-worker.
Please enter email address
Send Invite Cancel
Invitation Sent
Your invitation was sent.Thanks for sharing Exchange with your co-worker.
Send New Invite Close
Top Experts
User Count
Charles_Murison
Picard Charles_Murison Picard
477
Ramasamy_N
Captain Ramasamy_N Captain
113
Robert_Lee
Admiral Robert_Lee Admiral
92
Mehran_Mehrnia
Captain Mehran_Mehrnia Captain
85
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to Metering & Power Quality
skkim_isama_net
Lieutenant | EcoXpert Master skkim_isama_net Lieutenant | EcoXpert Master
Lieutenant | EcoXpert Master

Posted: ‎2016-10-28 01:37 AM

0 Likes
11
4949
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-10-28 01:37 AM

PM2230 kWh parameter reset way question.

HELLO H/W Team!!

My user wanna reset kwh using their HMI S/W

I'm search the modbus map but i thinks it can't impossible.


modbus map provide only kwh reset address.
Do you have good idea?

Attachments
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
Replies 11
Robert_Lee
Admiral Robert_Lee Admiral
Admiral

Posted: ‎2016-10-28 09:01 AM

0 Likes
7
4806
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-10-28 09:01 AM

I assume the customer is trying to reset the accumulated kWh registers on a PM2000 series device.  If so, you could either:

1.  Issue a "Reset All Accumulated Energies" command (2021).  This will reset all accumulated energy registers to zero (kWh, kVARh, kVAh, etc.)

2.  Issue a "Reset All Energies" command (2020).  This will reset all energy registers (accumulated and interval) to zero.

3.  Finally, you could set the kWh register to zero using the "Preset Accumulated Energy" command (2006).  This will allow you to program the kWh register to any value you wish.  You may have to read the existing energy values you do not wish to change and place those value into the appropriate command register locations or it might allow you to put in NAN into those registers and it will not change the other registers.

See the Commands tab of the spreadsheet you have.  In any of these options, they will need to first grab the semaphore (register 5680) and use the Protected Command register interface (registers 5000-5124) to issue the command and read registers 5125 onward to check the results.

Reply
skkim_isama_net
Lieutenant | EcoXpert Master skkim_isama_net Lieutenant | EcoXpert Master
Lieutenant | EcoXpert Master

Posted: ‎2016-11-11 05:56 AM

0 Likes
6
4806
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-11-11 05:56 AM

DEAR Mr. Robert Lee.

Actually I can't solve this question.

So that I wanna learn more detail .

No1 . Modbus 45680 read

No2. Read address 45680 ->Write value "2020"

Attachments
Reply
Robert_Lee
Admiral Robert_Lee Admiral
Admiral

Posted: ‎2016-11-15 01:33 PM

0 Likes
5
4806
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-11-15 01:33 PM

The order of operation should be:

1.  Read the semaphore register (5680).  If the contents of the register is non-zero, make note of that value (i.e. Semaphore value).  If the value is zero, then something else already has the semaphore (either the front panel or some other software) and you will have to wait for the timeout to occur (a few minutes) or for the holder of the semaphore to release it (more on that later).

2.  Assuming you got a non-zero semaphore value.  You will next, write you command into the Protected Command register interface (registers 5000 thru 5124).

Using a Modbus Preset Multiple Register command (0x10), you would write the following values into these registers:

5000 => 2020

5001 => Semaphore Value

3.  Assuming you got an actual valid Preset Multiple Register command response, you now need to verify that the command actually worked.  This is done by reading the Command Status (5125) and Command Result register (5126).

The Command Status should contain the Command # you had done in 5000 (otherwise hasn't even attempted it yet), and if the Command Result register reads 0 (zero), then everything worked OK.  If it is non-zero, then something about the command didn't work properly.

4.  Lastly, you will need to release the semaphore so that something else can do something.  This is accomplished by writing the semaphore value back into the semaphore register (5680) using a Preset Multiple Register Command (0x10).

Reply
skkim_isama_net
Lieutenant | EcoXpert Master skkim_isama_net Lieutenant | EcoXpert Master
Lieutenant | EcoXpert Master

Posted: ‎2016-11-17 11:34 PM

0 Likes
0
4806
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-11-17 11:34 PM

Mr. Robert Lee

Thank you Reply to .

Unfortuntly I can't solve problem.

please check the attach pdf file and warmly give the good advice

Attachments
Reply
skkim_isama_net
Lieutenant | EcoXpert Master skkim_isama_net Lieutenant | EcoXpert Master
Lieutenant | EcoXpert Master

Posted: ‎2016-11-17 11:39 PM

0 Likes
3
4806
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-11-17 11:39 PM

Dear Mr. Robert Lee.

Thank you for your cooperation.

Mr. Robert Lee I can’t solve the my customer question.

So I needs your help.

Please tell me where step will be incorrect

Thank you

Best Regards

Attachments
Reply
Robert_Lee
Admiral Robert_Lee Admiral
Admiral

Posted: ‎2016-11-18 10:18 AM

0 Likes
2
4806
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-11-18 10:18 AM

Here is a step by step explanation with an actual packet trace of ION Setup successfully sending a Reset All Energies command to a PM2230 (Modbus RTU).

 

; Step 1: Request the semaphore by Reading register 5680, 1 register

 

TX: 16 03 16 2F 00 01 B2 AC

 

; PM2230 responds with non-zero semaphore (0xB157), proceed to Step 2.

 

RX: 16 03 02 B1 57 F9 E9

 

; Step 2: Send Command to reset all energies (0x07E4 = 2020) plus semaphore (0xB157) to registers 5000 to 5001.

 

TX: 16 10 13 87 00 02 04 07 E4 B1 57 59 40

 

; PM2230 responds with non-exception write response indicating successful 2 registers are written

 

RX: 16 10 13 87 00 02 F6 42

 

; Step 3: Confirm command is written properly by Reading registers 5125 thru 5127

 

TX: 16 03 14 04 00 03 42 DD

 

; PM2230 responds but register 5125 does not match original command value of 2020 (0x07E4)

 

RX: 16 03 06 00 00 00 00 00 00 CA 85

 

; Repeeat Step 3 again…

 

TX: 16 03 14 04 00 03 42 DD

 

; PM2230 responds with register 5125 contains command value of 2020 (0x07E4), register 5126 has value of 0. Go to Step 4.

 

RX: 16 03 06 07 E4 00 00 00 00 BB 24

 

; Step 4: Release semaphore by writing semaphore value back into register 5680

 

TX: 16 10 16 2F 00 01 02 B1 57 08 50

 

; PM2230 responds with non-exception write response indicating successful 1 register is written

 

RX: 16 10 16 2F 00 01 37 6F

 

Reply
skkim_isama_net
Lieutenant | EcoXpert Master skkim_isama_net Lieutenant | EcoXpert Master
Lieutenant | EcoXpert Master

Posted: ‎2016-11-20 10:33 PM

0 Likes
1
4806
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-11-20 10:33 PM

Mr. Robert Lee.

Thank you for your cooperation!!

Most of all I wanna feed back attach the question file which made from my customer.


My customer really hard to solve this problem. 

Please focus on the my question.


best regard

Attachments
Reply
Robert_Lee
Admiral Robert_Lee Admiral
Admiral

Posted: ‎2016-11-21 08:59 AM

0 Likes
0
4806
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2016-11-21 08:59 AM

Register 5680 is used as a semaphore.  It is meant to be read ONCE and when it returns a non-zero value, you should *NOT* be reading it yet again (and expecting a non-zero value yet again).  You need to record the value in register 5680 if it is non-zero and use it for the remainder of any actions you want to perform (as long as those actions are done within a reasonable amount of time).

As far as your questions go:

1.  This would be a question for the firmware team in Bangalore but it could take a few seconds after power up before the device allows the semaphore register to properly be used.

2.  A value of 3010 in register 5126 indicates an "Invalid Semaphore" indicating that the customer is *NOT* reading the value out of register 5680 properly and inserting it into register 5001.

You can see how this is performed in the above trace by the highlighted in yellow values where ION Setup reads the register in 5680 (returning a value of 0xB157) and then it subsequently places that exact same value into register 5001 (writing 0x07E4 and 0xB157 into registers 5000 and 5001).

3.  I can't say exactly where there error is without knowing precisely what packets they are sending.  If the customer can provide a packet trace of the actual Modbus RTU communications, I can point out where they are doing the incorrect procedure.

Reply
Marcos_Augusto
Ensign Marcos_Augusto Ensign
Ensign

Posted: ‎2017-01-18 04:54 AM

0 Likes
2
4806
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2017-01-18 04:54 AM

     Hi, Kim. Just adding some information.

     I was dealing with this procedure also, it is not so simple.

     Mr. Lee has described the step by step very well. It worked to me. I guess your problem is you are using Kepware OPC server. The server keeps reading the register 5680 and this force it to zero. You CAN NOT keep reading it. You need to read it ONCE and get his value. If it is zero, you need to wait about 3 minutes and try to read ONCE again.

Believe me, it works.

I spent some hours to succeed on doing the kWh modbus reset operation.

I know a little about Kepware OPC server and I don't think it will be able to do the whole operation. You better use some modbus client that allows you to control the modbus transactions.

     BR

Reply
skkim_isama_net
Lieutenant | EcoXpert Master skkim_isama_net Lieutenant | EcoXpert Master
Lieutenant | EcoXpert Master

Posted: ‎2017-01-18 06:39 PM

0 Likes
1
4806
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2017-01-18 06:39 PM

Thank you Mr. Marcos

I will check your advice.

Reply
Marcos_Augusto
Ensign Marcos_Augusto Ensign
Ensign

Posted: ‎2017-01-19 04:03 AM

0 Likes
0
4806
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

Link copied. Please paste this link to share this article on your social media post.

‎2017-01-19 04:03 AM

Moreover, you must use modbus function 16 to write the value back to the 5680. It will not work using function 06.

Reply
To The Top!

Forums

  • APC UPS Data Center Backup Solutions
  • EcoStruxure IT
  • EcoStruxure Geo SCADA Expert
  • Metering & Power Quality
  • Schneider Electric Wiser

Knowledge Center

Events & webinars

Ideas

Blogs

Get Started

  • Ask the Community
  • Community Guidelines
  • Community User Guide
  • How-To & Best Practice
  • Experts Leaderboard
  • Contact Support
Brand-Logo
Subscribing is a smart move!
You can subscribe to this board after you log in or create your free account.
Forum-Icon

Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.

Register today for FREE

Register Now

Already have an account? Login

Terms & Conditions Privacy Notice Change your Cookie Settings © 2025 Schneider Electric

This is a heading

With achievable small steps, users progress and continually feel satisfaction in task accomplishment.

Usetiful Onboarding Checklist remembers the progress of every user, allowing them to take bite-sized journeys and continue where they left.

of