# Binary Input Tag In Vision

**URL:** <https://forum.inductiveautomation.com/t/binary-input-tag-in-vision/91161>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [May 30, 2024, 6:45pm UTC](https://forum.inductiveautomation.com/t/binary-input-tag-in-vision/91161 "2024-05-30T18:45:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Bricker](https://avatars.discourse-cdn.com/v4/letter/j/e56c9b/32.png) [@Jason\_Bricker](https://forum.inductiveautomation.com/u/Jason_Bricker)\
**Post date:** [May 30, 2024, 6:45pm UTC](https://forum.inductiveautomation.com/t/binary-input-tag-in-vision/91161/1 "2024-05-30T18:45:32Z")

</div>

I want to create an input field that is a binary number. We are typing in a binary number that goes to an 16 bit integer. Any suggestions beside ripping out the SLC500?

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [May 30, 2024, 6:54pm UTC](https://forum.inductiveautomation.com/t/binary-input-tag-in-vision/91161/2 "2024-05-30T18:54:49Z")

</div>

I feel that there may be a better way to accomplish the end result of what you are trying to do. What does this binary number control? Why do you have to enter it as a binary number?

If you are set on doing it this way then you can use a formatted text field with a reg ex pattern of `[0,1]{0,16}` to limit the input to a maximum of 16 1's or 0's. Use that in conjunction with a derived tag that uses `toBinary/fromBinary` in its read/write expressions that is pointed at the integer in the PLC that you want to interact with.
