Jump to content

Timer Delay not restarting when "reenergized"


Recommended Posts

Hello

I'm using samba SM35-J-TA22, with visiologic 9.8.90 build 0

I don't speak english very well, if you don't understand something, I could try to explain better.

 

I created a display that shows two timers delay, preset to 5 second each. And a subroutine with the timers blocks that runs only while the display is on the screen.

The first TD starts decreasing, and when its finished, the second TD starts.
My problem here is, when I leave the display before the first timer ends, and I go back, the timer continues where it left off. I put a flag that should restart, but it's not working.

And the second TD, appears "00:00" but when starts, it changes to "00:04", like only the element display needs to be refreshed.

image.png.a2b33742a5402cdacb8d8e1b2dcd3081.png

Link to comment
Share on other sites

Hi Vinicius

If you want the timers to continue to run when you leave the display, you must put them in a subroutine that is being called all of the time.

On rung 10 you are using a positive transition contact of MB 35 to start timer 2.  This may explain why you are stopping at 4 seconds

Regards

Denis

 

Link to comment
Share on other sites

2 hours ago, sgull said:

Hi Vinicius

If you want the timers to continue to run when you leave the display, you must put them in a subroutine that is being called all of the time.

On rung 10 you are using a positive transition contact of MB 35 to start timer 2.  This may explain why you are stopping at 4 seconds

Regards

Denis

 

Hi Denis,

Actually, I don't want the firt timer to continue to run after when I leave the display.

What happens with the timer 2, is that, when it ends, and in the display is showing "00:00", right? So when I leave the screen and go back after, still is showing "00:00". But when it starts, it changes to 00:04, 00:03, 00:02....

But if you, or somebody could help me to solve just the problem with the first timer, will be enough.

Thanks for your time, already.

Link to comment
Share on other sites

  • MVP 2023
1 hour ago, Vinicius said:

What happens with the timer 2, is that, when it ends, and in the display is showing "00:00", right? So when I leave the screen and go back after, still is showing "00:00". But when it starts, it changes to 00:04, 00:03, 00:02....

This is normal operation. The Preset gets loaded into the Current when the timer start is initiated or if the timer is reset. If you want the timer current to show 00:04 when you go to the screen, do a timer reset at screen load.

Link to comment
Share on other sites

18 hours ago, Flex727 said:

This is normal operation. The Preset gets loaded into the Current when the timer start is initiated or if the timer is reset. If you want the timer current to show 00:04 when you go to the screen, do a timer reset at screen load.

Thanks for your help. It works.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...