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

scene store script like in the old PICED C-Bus programming software

SpaceLogic C-Bus Forum

Schneider Electric forum about the C-Bus platform to get support and share knowledge including Network Automation Controller (NAC), Application Controller (AC) at selection, installation and troubleshooting sides.

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 C-Bus Forum
  • scene store script like in the old PICED C-Bus programming software
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
sesa96364
sesa96364 Schneider Alumni (Retired)
9
KCWong
Lieutenant JG KCWong Lieutenant JG
3
DarrenMullighan
Ensign DarrenMullighan Ensign
1
laurence_crowhu
Ensign laurence_crowhu
1
View All

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to SpaceLogic C-Bus Forum
Coppo
Lt. Commander Coppo Lt. Commander
Lt. Commander

Posted: ‎2020-09-28 07:12 PM

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

‎2020-09-28 07:12 PM

scene store script like in the old PICED C-Bus programming software

for replicating the "scenestore button" from old touchscreens / 5500PACA that used PICED C-Bus programming software.


===================================================================

configuring the "trigger object" 

configure the "visual object - triggering button" with  standard on/off properties,  the lua script will reset the trigger object's status and also act as an visual indication that the “lua code” operated...
...for example...  when the the lua code runs it will set the "triggering object/button" to "off" state.


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

1/ create a visualisation page for the specific scene you wish to store.

2/ add slider or dimmer object for each GA you wish to store in the scene.
   This will allow the enduser to do easier scene editing.

3/ add an extra visual object on the page that can be used as "scene store" button.

4/ create a event based lua script using the code below,
    some of the code will convert itself to comments when pasted into the NAC/SHAC script window.

"--" characters turn text into comments  FYI.

code is using local nertwork "0", application "56", Group address "1",  to 'run the lua code'.   
---------------------------------------------

--event based lua script for scenestore function
if GetCBusState(0, 56, 1) == true --create a "scene store" page and use a on/off button with this example GA=1 and label the button as "store Scene 1"
then
StoreScene("Scene 1") -- Enter the name of the scene you wish to store in " "....ie Scene 1
SetCBusState(0, 56, 1, false) -- Reset the button / GA used to triggger the Scene store function...ie GA=1
end

Tags (4)
  • Tags:
  • 5500nac
  • 5500shac
  • english
  • lua script
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
Replies 0
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