Hi! Let's suppose I have three Digital Input and I want to read them not as single bit but for example as Decimal Formatted Byte, because i need to read a decimal numeric code represented by those bits. Is there any way to do it?
READ $DIN as BYTE
-
IlFincoITA -
August 18, 2017 at 12:22 PM -
Thread is marked as Resolved.
-
-
you have two options
the first is, since these are only 3 bits, then you have only 8 cases, you can programm it in if..then
the second, which is the more correct, map these 3 bits as an $FMI (flexible multi input). they will then be read as an integer (only 0 or positive from 0 to 7, no negative)