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

Date dependent password

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
  • Date dependent password
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-09-29 06:43 AM . Last Modified: ‎2022-09-29 06:45 AM

1 Like
1
899
  • 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-09-29 06:43 AM . Last Modified: ‎2022-09-29 06:45 AM

Date dependent password

I am trying to develop a date dependent password algorithm.

 

The use case is something like: 1. Generate password for a specific date and length of time. 2. Send to user (email, phone, etc). 3. User enters the password and changes a level 2 parameter. 4. Level 2 access is enabled for a certain time.

 

Output should be UINT, ideally less than 9999 so that is easy to input into the TM171 line, as well as the TM172 line which would accept bigger numbers more easily.

 

I have come up with a simple solution but maybe there´s something more developed available.

 

 

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

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

  • All forum topics
  • Previous Topic
  • Next Topic
Reply 1
otrotabi
Lt. Commander otrotabi
Lt. Commander

Posted: ‎2022-09-30 08:30 AM

0 Likes
0
876
  • 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-09-30 08:30 AM

So, I came up with this. Not quite sophisticated but I think it works and it is better than handling the user a permanent password:

 

This first program is executed at boot time and it writes an EEPROM value as a default password:

 

(*************************************************************
Write default level 2 password
If TM171 line is used, PrjCfg_usiDefaultPassword variable
accesibility should be set to Level2

MRQ_Password is an EEPROM variable used as password 
for TM172. If TM172 is being used, in order to access 
password restricted variables in HMI this can be used

1) Define a new global variable named PasswordLevel as USINT

2) In Display/Resources/Expressions define a new expression
with Expression ID (i.e.) PassLevel2 = PasswordLevel = 2

3)Variable or buttom "Visible" property is set to Expr:PassLevel2

***************************************************************)

bret := isSmart412(bret); //TM171 returns TRUE

IF bret THEN 
	bret := SmartSetPsw(28,PrjCfg_usiDefaultPassword);
ELSE
	bret := sysWriteParUSINT(MRQ_PASSWORD,PrjCfg_usiDefaultPassword);
END_IF;

 

While this is somewhere either in timed or background tasks

 

//Set level 2 password
//Do not set PrjCtrl_xSet TO TRUE in simulation
IF PrjCfg_xSetPassword THEN
	retbool := isSmart412(bret); //TM171 returns TRUE
	IF  retbool THEN
		bret := SmartSetPsw(28,(sysclock.daymonth + sysclock.dayweek * 3 + sysclock.hours * 4 + sysclock.year));
	ELSE	
		bret := sysWriteParUSINT(MRQ_PASSWORD,(sysclock.daymonth + sysclock.dayweek * 3 + sysclock.hours * 4 + sysclock.year));
	END_IF;		
	PrjCfg_xSetPassword := FALSE;
END_IF;

(*****************************************************************************************************************
If user enters a password, then a timer starts.
If no key is entered for a fixed time, it automatically sets PW Level = 0
*****************************************************************************************************************)

IF sysPwLevel = 0 THEN
	RETURN;
END_IF;	
	
Timer_Password(PT := TO_UDINT(PrjCfg_usiPasswordTime) * 1000, IN := TRUE);

FOR I1 := 0 TO 3 DO
	IF sysLocalKeys[I1] = TRUE THEN
		Timer_Password(IN := FALSE);
		Timer_Password(IN := TRUE);
	END_IF;
END_FOR;
	
IF Timer_Password.Q = TRUE THEN
	Timer_Password(IN := FALSE);
	sysPWLevel := 0;
END_IF;

 

Password generation algorithm should generate a number between 0 and 255.

 

The user should be asked for the time and the corresponding password would be supplied either by phone or email. 

 

Of course it would not take too much time to test all numbers from 0 to 255 but then the user should know which parameter he should be modifying and it´s meaning. 

  • 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