# Custom programmable value control

**URL:** <https://forum.inductiveautomation.com/t/custom-programmable-value-control/40839>\
**Category:** General Discussion\
**Tags:** ignition80\
**Created:** [November 20, 2020, 1:40pm UTC](https://forum.inductiveautomation.com/t/custom-programmable-value-control/40839 "2020-11-20T13:40:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![r.popeszku](https://avatars.discourse-cdn.com/v4/letter/r/51bf81/32.png) [@r.popeszku](https://forum.inductiveautomation.com/u/r.popeszku)\
**Post date:** [November 20, 2020, 1:40pm UTC](https://forum.inductiveautomation.com/t/custom-programmable-value-control/40839/1 "2020-11-20T13:40:17Z")

</div>

I am trying to come up with a custom control that will allow a user to easily program a large value that can range from -100,000 to 200,000 using a touch screen. I have tried several combinations using built in controls but cant seem to come up with anything spectacular. I am not experienced at creating controls from scratch. The closest thing to want is using a slider and an LED display (see attached screenshot) but it doesn’t work that well because I have to scale the numbers on the slider to value/1000 so the numbers don’t take too much space.  
Any ideas would be appreciated. ![Programmable Control](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/b/bb12fbc5c75c723a96338fb400f89f0fa830103a.jpeg)

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [November 20, 2020, 1:46pm UTC](https://forum.inductiveautomation.com/t/custom-programmable-value-control/40839/2 "2020-11-20T13:46:12Z")

</div>

If that’s how you want it displayed, then can you have a second slider to set the lower half of the number?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 20, 2020, 1:47pm UTC](https://forum.inductiveautomation.com/t/custom-programmable-value-control/40839/3 "2020-11-20T13:47:03Z")

</div>

Consider adding zoom in/out buttons on either side of your slider so the user can get more and more precise.

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [November 20, 2020, 3:24pm UTC](https://forum.inductiveautomation.com/t/custom-programmable-value-control/40839/4 "2020-11-20T15:24:45Z")

</div>

The way that I handle that is I don’t display the full range. I bind the lower and upper limits of the slider to the selected value +/- “x”. That way you can have a wide range with more precision.

**EDIT**  
You can add a property change script to enforce the maximum and minimum limits since they are dynamic with the property bindings

---

<div class="post-metadata">

**Author:** ![r.popeszku](https://avatars.discourse-cdn.com/v4/letter/r/51bf81/32.png) [@r.popeszku](https://forum.inductiveautomation.com/u/r.popeszku)\
**Post date:** [November 24, 2020, 3:30pm UTC](https://forum.inductiveautomation.com/t/custom-programmable-value-control/40839/5 "2020-11-24T15:30:03Z")

</div>

Thanks for the ideas so far. The zoom and limit is better but I was hoping someone had ideas that didn’t involve using the slider at all.

---

<div class="post-metadata">

**Author:** ![rbabcock](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/rbabcock/32/13425_2.png) [@rbabcock](https://forum.inductiveautomation.com/u/rbabcock)\
**Post date:** [November 24, 2020, 3:44pm UTC](https://forum.inductiveautomation.com/t/custom-programmable-value-control/40839/6 "2020-11-24T15:44:03Z")

</div>

Hmm, what about increment arrows for each digit? It might be a little bit more involved to enforce the limits, but the usage would be dead-simple and much more accurate than a slider. I might have a touch on the display give the user a popup window so they’re not always visible.
