How can I switch screens after 3 seconds per script?

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
aparecido
Posts: 2
Joined: Tue Jan 28, 2020 1:48 pm

How can I switch screens after 3 seconds per script?

Post by aparecido »

How can I switch screens after 3 seconds per script?

  I could not find any example for this purpose, I am trying to make the HMI show a screen when turned on, after 3 seconds through a script it automatically switches to another screen.
  Could someone infect me with an example?
  Thanks.

User avatar
Jae V
Posts: 118
Joined: Wed Jan 15, 2020 11:00 am

Re: How can I switch screens after 3 seconds per script?

Post by Jae V »

Hello aparecido,

I've attached a quick scripting solution to do this. Take a look at it and let us know if you have any questions about it. Thanks!
Attachments
DelayedStartScreen.zip
Coded in iX developer 2.40 SP4
(40.13 KiB) Downloaded 429 times
Best regards,
Jason
(801) 708-6690
Technical Support
Contact Us



Beijer Electronics AB
http://www.beijerelectronics.us

aparecido
Posts: 2
Joined: Tue Jan 28, 2020 1:48 pm

Re: How can I switch screens after 3 seconds per script?

Post by aparecido »

Hello, thanks for answering me.
Could you please explain what was done?
Thanks a lot.

User avatar
Jae V
Posts: 118
Joined: Wed Jan 15, 2020 11:00 am

Re: How can I switch screens after 3 seconds per script?

Post by Jae V »

Hello ,

Essentially when the first page opens, it starts a timer. Once the timer is more then 3 secs, it will open the second page. Once the second page is opened, it turns off the timer preventing it from looping back to the second page constantly. The timer is in the script module, the trigger to start the timer is in the Screen 1 Script, and the check for if the timer has reached 3 seconds is in the Tag menu script. If you need more clarification after looking through the project and simulating it, please give us a call at 801.708.6690 so we can talk through it more. Thanks!
Best regards,
Jason
(801) 708-6690
Technical Support
Contact Us



Beijer Electronics AB
http://www.beijerelectronics.us

Post Reply