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

Read a iEM pulse meter attached to a smartlink through Can2Go SSL

Gateways and Energy Servers

Schneider Electric support forum to share knowledge about product selection, installation and troubleshooting for EcoStruxure Panel Server, PowerTag, Com'X, Link150…

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
  • Gateways and Energy Servers
  • Read a iEM pulse meter attached to a smartlink through Can2Go SSL
Options
  • Subscribe to RSS Feed
  • 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
Romain_Polette
Spock Romain_Polette Spock
96
Randi_Dolan
Commander Randi_Dolan Commander
46
Guillaume_Evrard
Commander Guillaume_Evrard Commander
41
Thierry_Baudard
Commander Thierry_Baudard Commander
30
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to Gateways and Energy Servers
LaurentCoene
Captain LaurentCoene Captain
Captain

Posted: ‎2014-06-19 06:58 AM

1 Like
1
648
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content

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

‎2014-06-19 06:58 AM

Read a iEM pulse meter attached to a smartlink through Can2Go SSL

Second time I'm getting this question this month so here it is: today, the iEM2010 or iEM2000T do not have any standard driver in the Can2Go box when connected through a smartlink.

The only drivers available are the Reflex, the ACT24 contactor and the iOF+SD24 breaker. In addition, you need to know that these drivers are "read-only". In other words in 2.11, you cannot control those devices with the current drivers (this will change soon in a firmware upgrade though).

So how do you deal with other devices? In this article, we'll describe how to read the basic pulse meters.

First you need to connect the meters. Note that you can connect two meters to one smartlink channel (noted as i1 and i2). You cannot use the standard smartlink cable, so in order to connect your meter, take a standard cable and cut it in half.

Your cable will look like this:

3983

Connecting this to the meter can be done like this:

3984

The other piece of the cable obviously goes in the smartlink.

Make sure you define a modbus id for the smartlink through the dials on the right on the smartlink:

3985

The baud rate and parity will be automatically detected so you don't have to worry about it.

Then you need to make sure to enable modbus on your Can2Go box. Once logged in, select the box in the tree structure and go to Modbus Configuration:

3986

ok, great! Now we just have to write our driver. Click the "Add Object" icon in the explorer tab (first icon).

3987

and add a Lua script.

The scripting is real easy:

-- -----------------------------------------------------------------------------------------

modbusId = 9

channel = 3

-- -----------------------------------------------------------------------------------------

if pg7_init == nil then

    pg7_init = true

    last_time = scl.sysclock()

    modbus.close() -- First, close it (just in case it was left open).

    modbus.open(

        12,      -- CAN2GO Modbus ID

        "RTU",   -- ASCII or RTU

        9600,    -- BAUD RATE

        8,       -- Data Bytes

        "EVEN",  -- Parity mode

        1)       -- Stop bits

end

this_time = scl.sysclock()

if this_time - last_time >= 300 then -- Only read every 300 seconds! (5 mins)

    -- Read Meter (iEM2000T through SmartLink)   

    result, values = modbus.hr_read(  -- read values for current and voltage and store in table

        modbusId,                               -- Slave modbus ID,

        14200 + (channel-1)*40,           -- Register starting address,

        32)                                         -- Holding registers to retrieve

    if result == 0 then    -- 0 = success

        i2 = values[12] * 0x10000 + values[11]

        print("Number of Pulse (i2): " .. i2)

  

        i2PulseWeight = values[32]

        print("Pulse Weight (i2): " .. i2PulseWeight)

        i2Energy = i2 * i2PulseWeight

        print("Total cummulated energy: " .. i2Energy .. " kWh ")

  

        scl.nodes["ME"]["AV11_Present_Value"].value = i2Energy

  

        last_time = this_time

    end

end

In the following example, we connected our meter to i2 on the channel 3 of our smartlink which has modbus id 9.

Note that the energy value is cumulated so if you want the interval data, you will need to add an extra value to store the previous value and provide the difference at each interval.

Finally if you want to connect to i1, use values 9 and 10 of the table and the pulse weight is at value 31.

Here is the full list of registers if you wanted something else:

3988

As you can see in this example, I'm putting the value of my cumulated energy in AV11 (that you will have to create through the Add Object button again). Doing that will allow you to create a trend to store and display the energy (again, you probably should use the interval value instead).

If you need further information about Smartlink, you can use the great user manual at the following address. Look for the DOCA0004EN.pdf document on the page.

Tags (6)
  • Tags:
  • acti9
  • can2go
  • lite
  • smartlink
  • smartstruxure
  • ssl
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
Reply 1
aaadria
Lt. Commander aaadria
Lt. Commander

Posted: ‎2014-06-19 08:50 AM

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

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

‎2014-06-19 08:50 AM

Reply
Preview Exit Preview

never-displayed

You must be signed in to add attachments

never-displayed

 
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