cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
136
Views
0
Helpful
1
Replies

UCCE -ICM Custom function to convert string/value from ASCII to HEX

smeegada1
Spotlight
Spotlight

We are required to convert a string/value in PV for some of use cases in ICM and looking for any direction/leads.

1) ASCII to HEX

2) HEX to ASCII

Any help is appreciated.

1 Reply 1

Someone is parsing UUI.
I've used this in the past with great success to get me from HEX to ASCII (https://bitbucket.org/juxe/icm-hex-to-ascii/src/master/) There is a limitation to it only being 19 chars, so keep that in mind. Even if UUI is able to support much longer strings try to keep it as short as possible I've seen some weird events when you try to send a lot of data. As for ASCII to HEX do this in CVP please, it will be much easier otherwise look at the HEX example and just re-write it.

david