Forums : TCP card - Regular expression for Hex to Binary
This page last changed on Jan 14, 2015 by costa.
i'm trying to setup a system with a Elexol Ether IO72 card, a very flexible and nice piece of hardware because it has 9 port, each one with 8 bits for a total of 72 programmable I/O bits which, with an additional A/D converter, can also accept analog signals.
Just to make clear, if i send the command a to get the status of port A what i get back is "41 1f" where
analogue example can be made with any number at 8 digit binary
Now the questions.... how can i convert the hex to decimal and read a specific bit inside the 8 digit binary number in order to get the status of that specific bit??
Is it possible to create a regular expression??
Thanks for any help you would like to give.
|Document generated by Confluence on Jun 05, 2016 09:39|