# Problem OPC Tag and year

**URL:** <https://forum.inductiveautomation.com/t/problem-opc-tag-and-year/10374>\
**Category:** Ignition\
**Created:** [August 20, 2015, 12:47pm UTC](https://forum.inductiveautomation.com/t/problem-opc-tag-and-year/10374 "2015-08-20T12:47:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrea.montresor](https://avatars.discourse-cdn.com/v4/letter/a/5f9b8f/32.png) [@andrea.montresor](https://forum.inductiveautomation.com/u/andrea.montresor)\
**Post date:** [August 20, 2015, 12:47pm UTC](https://forum.inductiveautomation.com/t/problem-opc-tag-and-year/10374/1 "2015-08-20T12:47:18Z")

</div>

Hello,  
I tried to put in an OPC Tag the value 2015. This is a BYTE and address (working correctly) is:  
[DEVICE\_1]DB210, B26.

The data type is int2. When I try to enter 2015, I get 223.  
This tag represents a year, as 2015.

Why? Do you have any solution?

Thanks

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 20, 2015, 12:54pm UTC](https://forum.inductiveautomation.com/t/problem-opc-tag-and-year/10374/2 "2015-08-20T12:54:03Z")

</div>

A byte can only be between 0 and 255.

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [August 20, 2015, 7:27pm UTC](https://forum.inductiveautomation.com/t/problem-opc-tag-and-year/10374/3 "2015-08-20T19:27:01Z")

</div>

To expand on what Kevin is saying-- and explain why you’re seeing 223:

`
  2015 : 0111 1101 1111
   223 : 1101 1111`

Since, a byte is only 8-bits long, you are getting the lower end.

---

<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:** [August 21, 2015, 11:56am UTC](https://forum.inductiveautomation.com/t/problem-opc-tag-and-year/10374/4 "2015-08-21T11:56:34Z")

</div>

You want a 16-bit integer type. This is often referred to as a SHORT (if signed, with a range of -32768 to 32767) or a WORD (if unsigned, with a range of 0 to 65535).
