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

Improved SysLocalLeds for TM172

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
  • Improved SysLocalLeds for TM172
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

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-01-17 12:09 PM

0 Likes
3
986
  • 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-01-17 12:09 PM

Improved SysLocalLeds for TM172

I´ve developed what I hear name as "improved SysLocalLed" control for a TM172.

 

I think this is usefull for :

 

  • Blind PLCs - It is not possible to see an alarm on screen
  • Alarm led blinking
  • Remote location PLCs or PLC inside a shut or closed electric board

It is developed mimicking Emerson´s Coresense controller which tells you which is the curren alarm with a series of led blinking numbers, for example 1 blink means oil failure, 2 blinks means another failure, etc.

 

This is the code:

 

FUNCTION_BLOCK SysLedsCntrl

 

VAR
TimeLedOn : TON; (* Flash duration timer (msec) *)
TimeLedOff : TON;
TimeCycleOn : TON; (* Cycle ON timer (sec) *)
TimeCycleOff : TON; (* Cycle OFF timer *)
OutputOn : USINT := 15; (* If usiLedBeeps = 15 output is ON *)
OutputOff : USINT := 0; (* If usiLedBeeps = 0 output is OFF *)
Count : R_TRIG;
END_VAR

 

VAR_INPUT

i_xEn : BOOL; (* Enable Output *)
i_usiLedBeeps : USINT; (* 0: OFF 1: 1 beep 2 : 2 beeps .... 15: ON *)
i_usiMaxBeeps : USINT; (* Maximum number of beeps for this instance *)
i_udiFlashDuration : UDINT; (* Flash duration in msec *)
i_udiFlashCycle : UDINT; (* Flash cycle in seconds *)
END_VAR

 

VAR_OUTPUT
q_xOutput : BOOL;
q_uiAlarmId : UINT; (* Bit 0 : Inconsistent time flash and cycle Bit 1: usiLedBeeps > 15 *)
q_usiCountBeeps : USINT;
END_VAR

 

 

/*****************************************************************************************

Improved SysLocalLeds control
Maybe it could also work with an alarm led output
Based on how Emerson handles alarm outputs without a display

uiAlarmId
Bit 0 : Inconsistent time flash and cycle
Bit 1: usiLedBeeps > 15 OR usiLedBeeps > usiMaxBeeps


*****************************************************************************************/
q_uiAlarmId := 0;


IF (i_usiLedBeeps > i_usiMaxBeeps) THEN
q_xOutput := FALSE;
q_uiAlarmId := 4;
RETURN;
END_IF;

IF ((i_udiFlashDuration * i_usiMaxBeeps * 2) >= (i_udiFlashCycle * 1000)) THEN
q_xOutput := FALSE;
q_uiAlarmId := 4;
RETURN;
END_IF;


CASE i_usiLedBeeps OF
16 :
q_xOutput := TRUE;
0 :
q_xOutput := FALSE;
ELSE
TimeCycleOn(IN:= NOT TimeCycleOff.Q,PT := i_udiFlashCycle * 1000); //Create a squarewave timer(1)
TimeCycleOff(IN:= TimeCycleOn.Q,PT := i_udiFlashCycle * 1000); //Create a squarewave timer(1)

IF TimeCycleOn.Q THEN //While the cycle time is ON we turn ON and OFF the output usiLeedBeeps times
TimeLedOn(IN:= (NOT TimeLedOff.Q AND TimeCycleON.Q),PT := i_udiFlashDuration); //Create a squarewave timer(2)
TimeLedOff(IN:= TimeLedOn.Q,PT := i_udiFlashDuration); //Create a squarewave timer(2)
Count(clk := TimeLedOn.Q);

//Beep counting. Fo debugging only
IF Count.q THEN
q_usiCountBeeps := q_usiCountBeeps + 1;
END_IF;

//Output to alarm or sysled
IF q_usiCountBeeps > i_usiLedBeeps THEN
q_xOutput := FALSE;
ELSE
q_xOutput := TimeLedOn.Q;
END_IF;
ELSE
q_usiCountBeeps := 0;
q_xOutput := FALSE;
END_IF;
END_CASE;

 

and something like this to test it:

 

 

test.png

 

So my questions are :

 

  1. Are there any drawbacks for using such a program ?
  2. Is it ok to use a relay output for driving an external alarm ligth ? Or I may end killing the relay if there are too many blinks ?

Look forward to hearing your comments.

 

Labels
  • Labels:
  • HVAC
  • Tags:
  • english
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
Ismet_S
Ensign Ismet_S Ensign
Ensign

Posted: ‎2022-01-17 01:39 PM

0 Likes
0
983
  • 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-01-17 01:39 PM

I think it’s good to take into account the relay latency and Electrical durability of100 000 cycles, 3A at 250Vac

  • 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-01-18 05:58 AM

0 Likes
1
970
  • 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-01-18 05:58 AM

To use a Relay output to control a LED in a high frequency would not be a good Idea regarding to lifetime of the relay, like explained from the colleague.

But you could use instead the Analog Outputs AO3/4 (On 28/42IO or AO1/2 on 18 IO) if they are unused to control two low power LEDs.

If you connect the LED to AO3 or AO4 and the ground of the LED to GND

 

 

  • 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-01-18 07:11 AM

In response to Bastian_Schmitz
0 Likes
0
963
  • 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-01-18 07:11 AM

Thanks for both answers. Yes, so I thought regarding the relay output. But from hardware guide page 99 it looks like you should connect the other pin of the led signal to 24V output from the PLC. Is that ok ?

 

Regarding the program .... I do not know enough about hwo PLCs keep track of timers. If anyone does have a spare minute to take a look at the code, I would like to know if there´s any issue regarding an eventual WDT overflow... I guess not, but I don´t not enough yet to be sure.

 

Regards

  • 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