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

We Value Your Feedback!
Could you please spare a few minutes to share your thoughts on Cloud Connected vs On-Premise Services. Your feedback can help us shape the future of services.
Learn more about the survey or Click here to Launch the survey
Schneider Electric Services Innovation Team!

Importing LUA scripts to SL

SpaceLogic KNX Forum

Schneider Electric SpaceLogic KNX forum to get support and share knowledge including selection, installation and troubleshooting for spaceLYnk, Wiser for KNX, eConfigure KNX, SpaceLogic KNX Hybrid module and other topics.

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 Building
  • Light and Room Control
  • SpaceLogic KNX Forum
  • Importing LUA scripts to SL
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
Thomas_Rohde
Sisko Thomas_Rohde Sisko
123
Erwin-vd-Zwart
Sisko Erwin-vd-Zwart Sisko
54
Heribert_Dölger
Lt. Commander Heribert_Dölger Lt. Commander
30
FZetina
Lt. Commander FZetina Lt. Commander
27
View All
Related Products
product field
SpaceLogic KNX - 4ʺ Touch Unit
product field
KNX Push Button Dynamic Labeling, universal
product field
Wiser for KNX : logic controller

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to SpaceLogic KNX Forum
Jakob_Pedersen
Commander Jakob_Pedersen Commander
Commander

Posted: ‎2017-03-23 09:52 AM . Last Modified: ‎2024-07-14 11:53 PM

1 Like
2
472
  • 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-03-23 09:52 AM

Importing LUA scripts to SL

Hello

Where is the "Import script(s)" function in the SL? From what I can tell, it's only possible to import a backup file (in a certain format) containing scripts. But that rules out the possibility of engineering LUA scripts outside of a spaceLYnk!

To clarify, we already have the script templates tested and ready, what group-addresses each individual script shall be connected to and a fairly quick way to generate all of these LUA script files (VBA application in Excel, search and replace).

We have to use 2 types of LUA script for the rooms we control, spread out across multiple SL's (148), totaling some 1500 scripts. Please don't tell me the only option is to manually engineer all of these scripts, by hand, in each and every one of our SL's!

Creating these scripts manually in each SL -

Tremendous amount of engineering time wasted due to the lack of a very basic function.

Creating these scripts in a somewhat automatic fashion outside a SL and then importing to SL -

Saving a tremendous amount of engineering time!

CC: Thomas Rohde​

PS. Tested on SL with FW 1.2.1.

PPS. Yes I am aware of page 83/chapter 4.12.8 "General scripting description" in the SL manual, listing the available actions for each script, including "Duplicate".

  • Thumbnail of SpaceLogic KNX - 4ʺ Touch Unit
    SpaceLogic KNX - 4ʺ Touch Unit
  • Thumbnail of KNX Push Button Dynamic Labeling, universal
    KNX Push Button Dynamic Labeling, universal
  • Thumbnail of Wiser for KNX : logic controller
    Wiser for KNX : logic controller
View products (3)
Tags (3)
  • Tags:
  • lua_script
  • simplify
  • spacelynk
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
Replies 2
David_Navratil
Lt. Commander David_Navratil Lt. Commander
Lt. Commander

Posted: ‎2017-03-26 11:54 PM

0 Likes
1
401
  • 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-03-26 11:54 PM

Hello Jakob,

Can you send me example of script template? Maybe you can use dynamic group object selection, but I need to see you scripts first.

Thank you.

David

Reply
Jakob_Pedersen
Commander Jakob_Pedersen Commander
Commander

Posted: ‎2017-03-27 06:19 AM

0 Likes
0
401
  • 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-03-27 06:19 AM

Hello David

Example:

"

--Læser signal fra betjeningspanel og videresender det til pir

Manuel_On_Off_Tryk = event.getvalue()                --Henter værdi fra den gruppeadresse, der aktiverede script

if Manuel_On_Off_Tryk == true then                    --Kontrollerer om der er trykket Manuel On

  grp.write('1/0/16', 75)                                        --Sender værdi til pir, hvilket samtidig får den til at gå i manuel

 

elseif Manuel_On_Off_Tryk == false then            --Kontrollerer om der er trykket Manuel Off

  grp.write('1/0/16', 0)                                        --Sender værdi til pir, hvilket samtidig får den til at gå i manuel

end

"

Not sure what dynamic group object selection is?

PS. We could really need a "insert code function" for this community.

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