In most input cards of Beckhoff, there are two variables, Limit 1 and limit 2. They have a BIT2 datatype, size of 0.2 bytes, which means they have two bits, as shown in the following figure for Limit 1:
Bit0: Value smaller/equal Limit 1
Bit1: Value bigger/equal Limit 1
so there are some questions: what kind of datatype should I define to link this variable to it, and how can I access both of its bits.
Any help would be appreciated.


