Sign In Help
Schneider Electric
HelpSign In
Schneider Electric Exchange
  • Home
  • Collaborate
  • Develop
  • Shop
Home Collaborate Develop Shop Log in or Register Help

Invite a Co-worker

Send a co-worker an invite to the Exchange 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
  • Home
  • Collaborate
  • Exchange Community
  • :
  • SCADA & Telemetry Solutions
  • :
  • Geo SCADA Expert Forum
  • :
  • [Imported] Multiple Pick Actions from a single Button click?
Community Menu
  • Forums
    • By Topic
        • EcoStruxure IT
          • EcoStruxure IT forum
        • Industrial Automation
          • Industry Automation and Control Forum
          • Alliance System Integrators Forum
          • Machine Solutions in the Digital Transformation
          • EcoStruxure Automation Expert / IEC 61499 Forum
          • Industrial Edge Computing Forum
          • Level and Pressure Instrumentation Forum
          • Modicon User Group
          • PLC Club Indonesia
          • SEE Automation Club Forum
          • Fabrika ve Makina Otomasyonu Çözümleri
          • Форум по промышленной автоматизации СНГ
        • SCADA & Telemetry Solutions
          • Geo SCADA Expert Forum
          • SCADA and Telemetry Devices Forum
        • Power Distribution IEC
          • Power Distribution and Digital
          • Power Standards & Regulations
          • Paneelbouw & Energie Distributie
        • Power Distribution Softwares
          • EcoStruxure Power Design Forum
          • SEE Electrical Building+ Forum
          • LayoutFAST User Group Forum
        • Wireless Information Network Solutions
          • Instrument Area Network
          • Remote Monitoring
          • Tank Level Monitoring
          • Remote Data Collection
        • Solutions for your Business
          • Solutions for Food & Beverage Forum
          • Solutions for Healthcare Forum
    • By Segment
        • Food & Beverage
          • Solutions for Food & Beverage Forum
        • Healthcare
          • Solutions for Healthcare Forum
      • EcoStruxure IT
        • EcoStruxure IT forum
      • Industrial Automation
        • Industry Automation and Control Forum
        • Alliance System Integrators Forum
        • Machine Solutions in the Digital Transformation
        • EcoStruxure Automation Expert / IEC 61499 Forum
        • Industrial Edge Computing Forum
        • Level and Pressure Instrumentation Forum
        • Modicon User Group
        • PLC Club Indonesia
        • SEE Automation Club Forum
        • Fabrika ve Makina Otomasyonu Çözümleri
        • Форум по промышленной автоматизации СНГ
      • SCADA & Telemetry Solutions
        • Geo SCADA Expert Forum
        • SCADA and Telemetry Devices Forum
      • Power Distribution IEC
        • Power Distribution and Digital
        • Power Standards & Regulations
        • Paneelbouw & Energie Distributie
      • Power Distribution Softwares
        • EcoStruxure Power Design Forum
        • SEE Electrical Building+ Forum
        • LayoutFAST User Group Forum
      • Wireless Information Network Solutions
        • Instrument Area Network
        • Remote Monitoring
        • Tank Level Monitoring
        • Remote Data Collection
      • Solutions for your Business
        • Solutions for Food & Beverage Forum
        • Solutions for Healthcare Forum
      • Food & Beverage
        • Solutions for Food & Beverage Forum
      • Healthcare
        • Solutions for Healthcare Forum
  • Blogs
    • By Topic
        • Industrial Automation
          • Industrial Edge Computing Blog
          • Industry 4.0 Blog
          • Industrie du Futur France
        • SCADA & Telemetry Solutions
          • SCADA and Telemetry Blog
        • Power Distribution IEC
          • Power Events & Webinars
          • Power Foundations Blog
        • Power Distribution NEMA
          • NEMA Power Foundations Blog
        • Power Distribution Softwares
          • EcoStruxure Power Design Blog
          • SEE Electrical Building+ Blog
        • Solutions for your Business
          • Solutions for Food & Beverage Blog
          • Solutions for Healthcare Blog
          • Solutions for Retail Blog
        • Community experts & publishers
          • Publishers Community
    • By Segment
        • Food & Beverage
          • Solutions for Food & Beverage Blog
        • Healthcare
          • Solutions for Healthcare Blog
        • Retail
          • Solutions for Retail Blog
      • Industrial Automation
        • Industrial Edge Computing Blog
        • Industry 4.0 Blog
        • Industrie du Futur France
      • SCADA & Telemetry Solutions
        • SCADA and Telemetry Blog
      • Power Distribution IEC
        • Power Events & Webinars
        • Power Foundations Blog
      • Power Distribution NEMA
        • NEMA Power Foundations Blog
      • Power Distribution Softwares
        • EcoStruxure Power Design Blog
        • SEE Electrical Building+ Blog
      • Solutions for your Business
        • Solutions for Food & Beverage Blog
        • Solutions for Healthcare Blog
        • Solutions for Retail Blog
      • Community experts & publishers
        • Publishers Community
      • Food & Beverage
        • Solutions for Food & Beverage Blog
      • Healthcare
        • Solutions for Healthcare Blog
      • Retail
        • Solutions for Retail Blog
  • Ideas
        • Industrial Automation
          • Modicon Ideas & new features
        • SCADA & Telemetry Solutions
          • Geo SCADA Expert Ideas
          • SCADA and Telemetry Devices Ideas
  • Knowledge Center
    • Building Automation Knowledge Base
    • Industrial Automation Knowledge Base
    • Industrial Automation How-to videos
    • SCADA & Telemetry Solutions Knowledge Base
    • Digital E-books
    • Success Stories Corner
    • Power Talks
  • Events & Webinars
    • Innovation Talks
    • Innovation Summit
    • Let's Exchange Series
    • Technology Partners
  • Support
    • Ask Exchange
    • Leaderboard
    • Our Community Guidelines
    • Community User Guide
    • How-To & Best Practices
    • More
Join Now
How can we help?
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: 
50942members
Join Now
244936posts
Join Now

[Imported] Multiple Pick Actions from a single Button click?

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
Back to Geo SCADA Expert Forum
sbeadle
Sisko sbeadle Sisko
Sisko
‎2019-10-25 03:38 PM
0 Likes
0
333
  • Mark as New
  • Bookmark
  • Subscribe
  • Mute
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • Email to a Friend
  • Report Inappropriate Content
‎2019-10-25 03:38 PM

[Imported] Multiple Pick Actions from a single Button click?

>>Message imported from previous forum - Category:ClearSCADA Software<<
User: florian, originally posted: 2018-10-24 19:38:40 Id:193
This is a re-posting from the obsoleted (October 2018) "Schneider Electric Telemetry & SCADA" forum.

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

**_neilj:_**
**_I have 7 Crystal Reports to Export when the user clicks a button. However, a Button can only have one Pick Action method (which was how the CR Training Course did it), so I'm thinking of using Structured Text logic to call the Export method for each report.Can anyone give an example of the code required to declare each of the Crystal Report objects and call the Export method?_**

**_...or is there an easier way? (i.e. not using a script/logic)_**

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

AWoodland:
Logic is probably best, less to worry about about what happens if your client connection goes down mid way through the process. Some example code:

PROGRAM GenerateReport
METHOD
Report1 AT %M(.Crystal Report 1.Export);
Report2 AT %M(.Crystal Report 2.Export);
END_METHOD

Report1();
Report2();

END_PROGRAM

What you want to do after all 7 are generated might make it somewhat easier to do in scripting...

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

**_neilj:_**
**_Thanks for the pointers Adam.The final code I created, with "Date From" and "Date To" values that all the Crystal Reports will use, is:_**

**_PROGRAM ExportReports_**
**_METHOD_**

**_Report_01 AT %M(.DV01 - Inflow Vol.Export) : DATE, DATE;_**
**_Report_02 AT %M(.DV02 - Total Inflow Vol.Export) : DATE, DATE;_**
**_Report_03 AT %M(.DV03 - Target Discharge Vol.Export) : DATE, DATE;_**
**_Report_04 AT %M(.DV04 - Actual Discharge Vol.Export) : DATE, DATE;_**
**_Report_05 AT %M(.DV05 - Discharge Vol Diff.Export) : DATE, DATE;_**
**_Report_06 AT %M(.DV06 - Discharge Vol Breach.Export) : DATE, DATE;_**

**_END_METHOD_**

**_VAR_**

**_start_date AT %M(...Report Start Date.CurrentValue) : DATE;_**

**_end_date AT %M(...Report End Date.CurrentValue) : DATE;_**

**_END_VAR_**

 

**_Report_01(start_date,end_date);_**
**_Report_02(start_date,end_date);_**
**_Report_03(start_date,end_date);_**
**_Report_04(start_date,end_date);_**
**_Report_05(start_date,end_date);_**
**_Report_06(start_date,end_date);_**

**_END_PROGRAM_**

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

ejme:
Can you generate more than four crystal repots using logic?

I seem to have hit a limitation and can only successfully generate 4 reports in a structured text logic program, is there are reason for this?
Note: I am using ClearSCADA 2015 R2

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

AWoodland:
How long do those four reports take to execute? If they take too long then anything else on the stack (they all get added at the same time) will be canned.

I think the time is 15 mins before they get cancelled

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

trantereng:
Did you get this ST program to work correctly? I am trying something similar - using an aggregate Control method to write a MODBUS register to multiple devices based on a button click.

But I am getting a compile error with my ST program?

Compile error: at line: 8, column: 9; unique expected

The program compiles and runs correctly when I declare and call a single method but not when I have multiple?


PROGRAM AlarmReset

METHOD


(*declare Alarm Reset Command Methods for Comap, PowerStore and Solar Inverters*)


COMAP_RST AT %M(BSS.STAT.Cmd_Alarm_Reset.Control.Control):BYTE;

6_E01_RST AT %M(BSS.6.E01.Cmd_Alarm_Reset.Control.Control):BYTE;

6_E02_RST AT %M(BSS.6.E02.Cmd_Alarm_Reset.Control.Control):BYTE;

1_E01_RST AT %M(SPS.1.E01.Cmd_Alarm_Reset.Control.Control):BYTE;

1_E02_RST AT %M(SPS.1.E02.Cmd_Alarm_Reset.Control.Control):BYTE;

2_E03_RST AT %M(SPS.2.E03.Cmd_Alarm_Reset.Control.Control):BYTE;

2_E04_RST AT %M(SPS.2.E04.Cmd_Alarm_Reset.Control.Control):BYTE;

3_E05_RST AT %M(SPS.3.E05.Cmd_Alarm_Reset.Control.Control):BYTE;

3_E06_RST AT %M(SPS.3.E06.Cmd_Alarm_Reset.Control.Control):BYTE;

4_E07_RST AT %M(SPS.4.E07.Cmd_Alarm_Reset.Control.Control):BYTE;

4_E08_RST AT %M(SPS.4.E08.Cmd_Alarm_Reset.Control.Control):BYTE;

5_E09_RST AT %M(SPS.5.E09.Cmd_Alarm_Reset.Control.Control):BYTE;

5_E10_RST AT %M(SPS.5.E10.Cmd_Alarm_Reset.Control.Control):BYTE;


(*declare Start Command Methods for PowerStore and Solar Inverters*)


6_E01_START AT %M(BSS.6.E01.Cmd_Start.Control.Control):BYTE;

6_E02_START AT %M(BSS.6.E02.Cmd_Start.Control.Control):BYTE;

1_E01_START AT %M(SPS.1.E01.Cmd_Start.Control.Control):BYTE;

1_E02_START AT %M(SPS.1.E02.Cmd_Start.Control.Control):BYTE;

2_E03_START AT %M(SPS.2.E03.Cmd_Start.Control.Control):BYTE;

2_E04_START AT %M(SPS.2.E04.Cmd_Start.Control.Control):BYTE;

3_E05_START AT %M(SPS.3.E05.Cmd_Start.Control.Control):BYTE;

3_E06_START AT %M(SPS.3.E06.Cmd_Start.Control.Control):BYTE;

4_E07_START AT %M(SPS.4.E07.Cmd_Start.Control.Control):BYTE;

4_E08_START AT %M(SPS.4.E08.Cmd_Start.Control.Control):BYTE;

5_E09_START AT %M(SPS.5.E09.Cmd_Start.Control.Control):BYTE;

5_E10_START AT %M(SPS.5.E10.Cmd_Start.Control.Control):BYTE;

 

END_METHOD


(*call Alarm Reset Methods for Comap, PowerStore and Solar Inverters with 500 ms delay between each method call*)

 

COMAP_RST(1);
SLEEP(500);
6_E01_RST(1);
SLEEP(500);
6_E02_RST(1);
SLEEP(500);
1_E01_RST(1);
SLEEP(500);
1_E02_RST(1);
SLEEP(500);
2_E03_RST(1);
SLEEP(500);
2_E04_RST(1);
SLEEP(500);
3_E05_RST(1);
SLEEP(500);
3_E06_RST(1);
SLEEP(500);
4_E07_RST(1);
SLEEP(500);
4_E08_RST(1);
SLEEP(500);
5_E09_RST(1);
SLEEP(500);
5_E10_RST(1);
SLEEP(500);

(*call Start Command Methods for PowerStore and Solar Inverters with 500 ms delay between each method call*)

6_E01_START(1);

 

SLEEP(500);

 

6_E02_START(1);

 

SLEEP(500);

 

1_E01_START(1);

 

SLEEP(500);

 

1_E02_START(1);

 

SLEEP(500);

 

2_E03_START(1);

 

SLEEP(500);

 

2_E04_START(1);

 

SLEEP(500);

 

3_E05_START(1);

 

SLEEP(500);

 

3_E06_START(1);

 

SLEEP(500);

 

4_E07_START(1);

 

SLEEP(500);

 

4_E08_START(1);

 

SLEEP(500);

 

5_E09_START(1);

 

SLEEP(500);

 

5_E10_START(1);

END_PROGRAM

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

AWoodland:
It doesn't like the number as the first character of the method name, change that and it should compile.

The error message is perhaps unhelpful in this case 🙂

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

trantereng:
Ok awesome thanks very much!

 

 

 

 

Labels
  • SCADA
Share
  • All forum topics
  • Previous Topic
  • Next Topic
Related Products
Schneider Electric
EcoStruxure™ Geo SCADA Expert
Top Experts
User Count
sbeadle
Sisko sbeadle Sisko
188
BevanWeiss
Admiral BevanWeiss
51
AdamWoodland
Lt. Commander AdamWoodland Lt. Commander
16
JChamberlain
Lieutenant JChamberlain Lieutenant
16
AndrewScott
Lieutenant AndrewScott
14
See More Top Experts
Find a Service Provider
Find a certified partner to help you address your integration, installation, maintenance and project needs.
View all Providers
Support

Have a question? Please contact us with details, and we will respond.

Contact Us
FAQ

Look through existing questions to find popular answers.

Learn More
About

Want to know more about Exchange and its possibilities?

Learn More

Full access is just steps away!

Join Exchange for FREE and get unlimited access to our global community of experts.

Connect with Peers & Experts

Discuss challenges in energy and automation with 30,000+ experts and peers.

Get Support in Our Knowledge Base

Find answers in 10,000+ support articles to help solve your product and business challenges.

Ask Questions. Give Solutions

Find peer based solutions to your questions. Provide answers for fellow community members!

Register today for FREE

Register Now

Already have an account?Log in

About Us FAQ Terms & Conditions Privacy Notice Change your cookie settings
©2020, Schneider Electric