# Changing screens based on PLC tag

**URL:** <https://forum.inductiveautomation.com/t/changing-screens-based-on-plc-tag/6037>\
**Category:** Ignition\
**Created:** [March 15, 2013, 3:09pm UTC](https://forum.inductiveautomation.com/t/changing-screens-based-on-plc-tag/6037 "2013-03-15T15:09:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcorkern](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@rcorkern](https://forum.inductiveautomation.com/u/rcorkern)\
**Post date:** [March 15, 2013, 3:09pm UTC](https://forum.inductiveautomation.com/t/changing-screens-based-on-plc-tag/6037/1 "2013-03-15T15:09:54Z")

</div>

We have a touchscreen being installed in a panel that may not be accessiable by the operators and would like the ability to change screens in the client based on a PLC tag (toggle switch on front of panel - ie; position1=mainscreen, position2=outputs, position3=alerts, etc…). How would I go about this?

We would also like to have a ‘screen saver’ page in the project that will kick on after a timeout; maybe 30 seconds or so…would this be done via a client script?  
Thanks in advance!

---

<div class="post-metadata">

**Author:** ![AlThePal](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/althepal/32/3603_2.png) [@AlThePal](https://forum.inductiveautomation.com/u/AlThePal)\
**Post date:** [March 18, 2013, 10:37am UTC](https://forum.inductiveautomation.com/t/changing-screens-based-on-plc-tag/6037/2 "2013-03-18T10:37:03Z")

</div>

1. Read the PLC switch position into an integer SQLTag (here called ‘test1’), then create a Client Tag Change Event Script similar to the following:

2. Create a Client integer tag called ‘inactivity’.

3. Create a Client Timer Event Script set to run every second like the following:

Now when a user changes the switch the correct screen will display for 30 seconds before the screensaver page will be displayed. This does mean that is the user wants to display page 1 when the control is already at page 1, they will have to move it to another page and back to page 1 before it will display. A way round this would be to add another button to ‘wake up’ the display.

---

<div class="post-metadata">

**Author:** ![rcorkern](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@rcorkern](https://forum.inductiveautomation.com/u/rcorkern)\
**Post date:** [March 19, 2013, 1:32pm UTC](https://forum.inductiveautomation.com/t/changing-screens-based-on-plc-tag/6037/3 "2013-03-19T13:32:03Z")

</div>

Worked like a charm, thank you sir
