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

M172 HMI message pop-up

HVAC and Pumping Forum

Support Forum for HVAC and pumping machines, Modicon M17x and EcoStruxure Machine Expert HVAC software for chillers, AHU, CRAC units for datacenters or process chillers applications - from design, implementation to troubleshooting and more, by Schneider Electric.

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
  • Industrial Automation
  • HVAC and Pumping Forum
  • M172 HMI message pop-up
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
FedericoM
Commander FedericoM Commander
66
Bastian_Schmitz
Admiral Bastian_Schmitz Admiral
47
LeTomas
Lt. Commander LeTomas Lt. Commander
14
View All
Related Products
product field
Schneider Electric
EcoStruxure™ Machine Expert - HVAC

Invite a Colleague

Found this content useful? Share it with a Colleague!

Invite a Colleague Invite
Back to HVAC and Pumping Forum
otrotabi
Lt. Commander otrotabi
Lt. Commander

Posted: ‎2023-02-14 08:32 AM

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

Posted: ‎2023-02-14 08:32 AM

M172 HMI message pop-up

I am trying to make alarms visible on a "pop-up" screen in M172 HMI. I do it by using a "Message" instead of a regular page.  An example code is available here .

 

I define a couple of status variables to do this and use them in a GlobalOnTimer procedure. ActiveAlarm is ON whenever at least one alarm is active, and AlarmIgnore is used to tell the PLC to stop sending alarms for some time:

 

//ActiveAlarm : at least one alarm is active


uiret:=Video_GetParam(0,Addr_ActiveAlarm,0,?ActiveAlarm,tyBool); // See if alarms are active

//AlarmIgnore : tell the PLC not to cycle alarms
uiret:=Video_GetParam(0,Addr_AlarmIgnore,0,?IgnoreAlarm,tyBool); // See if alarms are acknowledged

//Alarm Pop Up screen

IF ActiveAlarm THEN
	IF NOT AcknowledgeAlarm THEN 
		msg_id_opened:=1; //Make sure what page number is loaded
		uiret:=Video_SendEvent(kWM_MSG,msg_id_opened);  
	END_IF;
ELSE	
	IF HMI_usiPosition = 1 THEN
		msg_id_opened:=0; 
		uiret:=Video_SendEvent(kWM_KEY,kKEY_VK_F3); //Close pop up
		//Define global virtual key VK_F3 as close
	END_IF;	
	AcknowledgeAlarm := FALSE;
END_IF;	

 

There´s a couple of minor corrections needed but the code works both in simulation and on a physical target (TM172PDG18R), as long as I connect to the target and "Download all" the project.

 

However, if I need to correct the HMI code or screens, I can connect to the PLC but when I finish the process of downloading the new HMI code, PLC hangs and I get either WDT3 or HMI can not be loaded error when the PLC starts. 

 

So, the problem lies on the GlobalOnTimer procedure. If I remove the Video_SendEvent function and open the screen with a button instead, there are no issues.

 

Any comments on how to improve this will be welcome.

 

 

 

Labels
  • Labels:
  • HVAC
  • Tags:
  • Ecostruxure HVAC
  • english
  • TM172
Reply

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

  • All forum topics
  • Previous Topic
  • Next Topic
Replies 3
Bastian_Schmitz
Admiral Bastian_Schmitz Admiral
Admiral

Posted: ‎2023-02-14 08:37 AM . Last Modified: ‎2023-02-14 08:38 AM

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

Posted: ‎2023-02-14 08:37 AM . Last Modified: ‎2023-02-14 08:38 AM

sysHMI_Message.PNG

 

Hi,

So far I remember exactly for this purpose is the Target function sysHMI_Message in Programming integrated. 

 

 

Attachments
Reply

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

otrotabi
Lt. Commander otrotabi
Lt. Commander

Posted: ‎2023-02-14 09:26 AM

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

Posted: ‎2023-02-14 09:26 AM

Thanks Bastian for the tip.

 

Do you remember if there´s anyway to close the popup from programming ? I tried setting the input to a not valid value but it does not close it. Or do I need to write an OnTimer procedure in the message screen ?

 

hmipop.jpg

Reply

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

FedericoM
Commander FedericoM Commander
Commander

Posted: ‎2023-02-17 02:13 PM

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

Posted: ‎2023-02-17 02:13 PM

Hi,

 

the limit of sysHmi_Message() is that it works only on local display and not on the remote TM17xDGRP.

The reason of the watchdog I think is that the code tries to open infinite time the popup.

 

I haven't tested it, but try to modify the code more or less in this way:

GLOBAL TIMER SCRIPT: 

//ActiveAlarm : at least one alarm is active

 

uiret:=Video_GetParam(0,Addr_ActiveAlarm,0,?ActiveAlarm,tyBool); // See if alarms are active

 

//AlarmIgnore : tell the PLC not to cycle alarms

uiret:=Video_GetParam(0,Addr_AlarmIgnore,0,?IgnoreAlarm,tyBool); // See if alarms are acknowledged

 

//Alarm Pop Up screen

 

IF ActiveAlarm THEN

        IF NOT AcknowledgeAlarm AND NOT(xMsg1Open) THEN

                 msg_id_opened:=1; //Make sure what page number is loaded

                 xMsg1Open:=TRUE;

                 uiret:=Video_SendEvent(kWM_MSG,msg_id_opened); 

        END_IF;

ELSE   

        AcknowledgeAlarm := FALSE;

END_IF;

 

ONTIMER SCRIPT of the Message: 

IF NOT(ActiveAlarm) THEN

        xMsg1Open:=FALSE;

         uiret:=Video_SendEvent(kWM_KEY,kKEY_VK_F3); //Close pop up

END_IF;      

 

Close button of the Message must call the same script linked to OnTimer

Reply

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

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