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

Add multiple I/Os to Can2Go SSL using Advantys OTB Modicon

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
  • Add multiple I/Os to Can2Go SSL using Advantys OTB Modicon
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
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
sesa194123_brid
Lt. Commander sesa194123_brid Lt. Commander
Lt. Commander

Posted: ‎2014-12-03 07:02 PM

1 Like
1
1011
  • 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.

‎2014-12-03 07:02 PM

Add multiple I/Os to Can2Go SSL using Advantys OTB Modicon

  • Overview

Since MPM has limited build-in IOs,  and the TE2 is also limited in terms of I/Os, we will explore the possibilities of using Advantys OTB (Optimized Terminal Block) as the extension IO Module for Can2go/SSL controllers.

The Advantys supports several communication protocols (Modbus RTU, Modbus TCP and CANOpen ) with different Network Modules, however in this article, we will focus on Modbus TCP integration and we'll look at others later.

        5363

  • Devices Used
    • SSL UN Controller
    • OTB 1E0DM9LP
    • 24 V DC Power supply

 

  • Key Setup Steps
    • Setup the IP address of OTB (using DHCP)

               5364

                    *  for fix IP assignment, please refer to <<Advantys OTB User Manual.pdf>> for more details

    • Write a Lua script to read the DIs of OTB and control the DOs

               create a AV1 and AV2 object

               AV1 --- use to store the DIs value

               AV2 --- use to control the DOs.

            Lua script

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

if init == nil then

  var("DI_status", "ME.AV1")

  var("DO_control", "ME.AV2")

  ipAddr = "192.168.1.100"

  port = 502

  --Advantys OTB DI use holding resiger with address 0

  DI_modbus_reg_addr = 0

  --Advantys OTB DO control use holding register with address 100

  DO_modbus_reg_addr = 100

  init = true

end

--Read DIs

--output: 

--   bit 1: DI1

--   bit 2: DI2

--   bit 3: DI3

--   bit N: DIN   (n = 1 .. 12)

function read_ios()

  code, value_table = modbus_tcp.hr_read(1, DI_modbus_reg_addr, 1)

  if code == 0 then

    --please note that the holder register in UN are using big-end

    --so we need to adapt it here

    raw_data= value_table[1]

    value = bit.rshift(raw_data,8) + bit.lshift(bit.band(raw_data,0xff),8)

  

    DI_status = value

    print( "DIs Status", DI_status);

  else

    print("read status failed, error code :" ,code)

    return 0

  end

end


--Write DOs

function write_ios()

  if DO_control == -1 then

    return

  end

  if DO_control < 0 or DO_control > 256 then

    print("illegal control value")

  end

  if DO_control ~= -1 then

    --please note that the holder register in UN are using big-end

    --so we need to adapt it here

    raw_value = bit.lshift(DO_control,8)

    print(raw_value)

    code, value_table = modbus_tcp.hr_write(1, 100, raw_value)

    if code == 0 then

      DO_control = -1

    else

      print("write control command failed, error code: " , code)

    end

  end

end

----main logic

modbus_tcp.close()

modbus_tcp.open(1, ipAddr , port)

read_ios()

write_ios()

modbus_tcp.close()

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

  • Test

         Give a first DI a 24V input, the AV1 value shall be 1  (could also monitor the stats in the Status indicator in OTB module)

         Set the AV2 to  1, the first DO will be activated.  (could also monitor the stats in the Status indicator in OTB module)

Attachments
Advantys_Modbus_Ctrl.lua.zip
Tags (5)
  • Tags:
  • adding
  • advantys
  • can2go
  • ios
  • ssl
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
Reply 1
LaurentCoene
Captain LaurentCoene Captain
Captain

Posted: ‎2014-12-10 02:39 PM

2 Likes
0
871
  • 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.

‎2014-12-10 02:39 PM

Another script from the SBS team on how to use this I/O extender:

https://documentation.smartstruxurelite.com/pages/viewpage.action?pageId=13828358

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