HMI Text field decoded as hex value
Is there an elegant way to convert a HMI text field content to an hex value ? It already work well and transparently for integer and float values.
For example, an user type '99', and I get 0x99 as an hex value, not 99 as a decimal value (that would translate as 0x63).
I tough using STRING_TO_BUFF function block but it feel to too cumbersome to me. I would rather prefer transferring some weird decimal value to my C++ program and restore it internally as the true hex original value.
Comments
Hi fblanchard,
I like your idea and tried a few options, but did not find the right setting.
I'll aks my colleagues, but most of them are still in easter vacations, so it might take a few days for a feedback.
Keep you informed.
cu
Frank