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

TM171 date on screen

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
  • TM171 date on screen
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: ‎2022-07-22 11:15 AM

0 Likes
4
1243
  • 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: ‎2022-07-22 11:15 AM

TM171 date on screen

I would not like to invent gunpowder again if I can help it ...

 

Is there a standard way to show a date on screen with TM171 ? Anything that would look similar to the way we change RTC showing Hour and date afterwards ?

 

https://www.youtube.com/watch?v=UFCYDB3BnvU&list=PLFqT6GhMpgpKziZxGdSaJPEEB1Q5i8Xo5&index=22

Labels
  • Labels:
  • HVAC
  • Tags:
  • ecostruxure
  • english
  • hvac
  • TM171
Reply

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

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

Posted: ‎2022-07-24 10:59 PM

0 Likes
3
1192
  • 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: ‎2022-07-24 10:59 PM

Hi,

If you want to show a time value based on Hours:Minutes you can define this as Format for Status or EEPROM Var.

time2.PNG

IF you choose HH::mm as format the value will be automatically converted.

As example a screenshot of the simulation. 

The value 180 will be shown as 03:00.

180 minutes = 3 hours

 

time1.PNG

  • Tags:
  • english
  • ESME HVAC
  • TM171O
Reply

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

otrotabi
Lt. Commander otrotabi
Lt. Commander

Posted: ‎2022-07-25 11:23 AM

In response to Bastian_Schmitz
0 Likes
2
1170
  • 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: ‎2022-07-25 11:23 AM

Thanks for your answer.

 

I came up with this program:

 

PROGRAM PRG_SHOWDATE

VAR
	usiret : USINT;
	ShowFlag : TON;
	ShowContent : TON;
	usiDisplay : USINT;
END_VAR

IF NOT ShowDate THEN
	RETURN;
END_IF;
	
ShowFlag(PT:= 1500);
ShowContent(PT:= 3000);

Case usiDisplay OF
	0: 	ShowDate := TRUE;
		ShowFlag(IN := TRUE);//Show flag
		ShowContent(IN := FALSE); 
		IF  ShowFlag.Q THEN
			usiDisplay := 10;
		END_IF;	
		sysLocalLeds[7] := 1;
		usiret:=OverwriteLocalDisplay(3,'TIME',0,0,0,1);

	10:	ShowContent(IN := TRUE);
		ShowFlag(IN := FALSE); 
		IF ShowContent.Q THEN 
			usiDisplay := 20;
		END_IF;	
		usiret:=OverwriteLocalDisplay(3,'',TO_DINT(sysClock.hours * 100 + sysClock.minutes),2,0,0);

	20: ShowFlag(IN := TRUE);//Show flag
		ShowContent(IN := FALSE); 
		IF ShowFlag.Q THEN
			ShowFlag(IN := FALSE); 
			usiDisplay := 30;
		END_IF;	
		sysLocalLeds[7] := 0;
		usiret:=OverwriteLocalDisplay(3,'DATE',0,0,0,1);

	30:	ShowContent(IN := TRUE);
		ShowFlag(IN := FALSE); 
		IF ShowContent.Q THEN 
			usiDisplay := 40;
		END_IF;	
		usiret:=OverwriteLocalDisplay(3,'',TO_DINT(sysClock.daymonth * 100 + sysClock.month),2,0,0);

	40: ShowFlag(IN := TRUE);//Show flag
		ShowContent(IN := FALSE); 
		IF ShowFlag.Q THEN
			ShowFlag(IN := FALSE); 
			usiDisplay := 50;
		END_IF;
 		usiret:=OverwriteLocalDisplay(3,'YEAR',0,0,0,1);

	50:	ShowContent(IN := TRUE);
		ShowFlag(IN := FALSE); 
		IF ShowContent.Q THEN 
			usiDisplay := 99;
		END_IF;	
		usiret:=OverwriteLocalDisplay(3,'',TO_DINT(sysClock.year) + 2000,0,0,0);

	99:	ShowContent(IN := FALSE); 
		usiDisplay := 0;	
		ShowDate := FALSE;	
END_CASE;

 

ShowDate is a BOOL defined as Global variable and set somewhere else. It behaves pretty similar to what is shown when setting the time.  The colon symbol (:) is replaced by a dot but otherwise it should be pretty readable.

 

I tried to encapsulate this inside a Function Block but it looks like you can´t access the local display from within a function block, which sounds reasonable but I would like your comments on this subject please.

 

  • Tags:
  • english
Reply

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

Bastian_Schmitz
Admiral Bastian_Schmitz Admiral
Admiral

Posted: ‎2022-07-25 11:30 AM

In response to otrotabi
0 Likes
1
1166
  • 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: ‎2022-07-25 11:30 AM

To acces a system variabel from an FB you need to declare these variabel as VAR_EXTERNAL in the FB. You can do this via drag and drop of the sysvariable to the declaration in table form.

  • Tags:
  • english
Reply

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

otrotabi
Lt. Commander otrotabi
Lt. Commander

Posted: ‎2022-07-25 01:26 PM

In response to Bastian_Schmitz
0 Likes
0
1158
  • 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: ‎2022-07-25 01:26 PM

Ok.But OverwriteLocalDisplay is not a system variable but a Function, so actually I can not drag and drop it on the variables section or instantiate it.

 

I thought maybe you meant the function output variable which is USINT type, but declaring that as external does not seem to change anything.

 

This function block will not complain, runs the timers, and sets usiret = 0 which indicates  command executed. Inñess this will actually run inside a real PLC (so far only on simulator).

 

 

 

FUNCTION_BLOCK DateDisplay

VAR
	ShowFlag : TON;
	ShowContent : TON;
	usiDisplay : USINT := 0;
END_VAR

VAR_INPUT
	DateInput : TypeDataTime;
	flagtime : UDINT := 0;
	ContentTime : UDINT;
END_VAR

VAR_EXTERNAL
	usiret : USINT;
END_VAR

ShowFlag(PT:= FlagTime);
ShowContent(PT:= ContentTime);

Case usiDisplay OF
	0: 	ShowFlag(IN := TRUE);//Show flag
		ShowContent(IN := FALSE); 
		IF  ShowFlag.Q THEN
			usiDisplay := 10;
		END_IF;	
		usiret:=OverwriteLocalDisplay(3,'HOUR',0,0,0,1);
	10:	ShowContent(IN := TRUE);
		ShowFlag(IN := FALSE); 
		IF ShowContent.Q THEN 
			usiDisplay := 20;
		END_IF;	
		usiret:=OverwriteLocalDisplay(3,'',SHL(DateInput.hours,2) + DateInput.minutes,0,0,0);
	20: ShowFlag(IN := TRUE);//Show flag
		ShowContent(IN := FALSE); 
		IF ShowFlag.Q THEN
			ShowFlag(IN := FALSE); 
			usiDisplay := 30;
		END_IF;	
		usiret:=OverwriteLocalDisplay(3,'DATE',0,0,0,1);
	30:	ShowContent(IN := TRUE);
		ShowFlag(IN := FALSE); 
		IF ShowContent.Q THEN 
			usiDisplay := 40;
		END_IF;	
		usiret:=OverwriteLocalDisplay(3,'',SHL(DateInput.daymonth,2) + DateInput.month,0,0,0);
	40: ShowFlag(IN := TRUE);//Show flag
		ShowContent(IN := FALSE); 
		IF ShowFlag.Q THEN
			ShowFlag(IN := FALSE); 
			usiDisplay := 50;
		END_IF;	
		usiret:=OverwriteLocalDisplay(3,'YEAR',0,0,0,1);
	50:	ShowContent(IN := TRUE);
		ShowFlag(IN := FALSE); 
		IF ShowContent.Q THEN 
			usiDisplay := 99;
		END_IF;	
		usiret:=OverwriteLocalDisplay(3,'',DateInput.year + 2000,0,0,0);

	99:	ShowContent(IN := FALSE); 
		usiDisplay := 0;	
		ShowingDate := FALSE;	
END_CASE;	

 

 

  • Tags:
  • english
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