ASCII to Double in Wonderware Intouch

Vaitheeswaran

Member
Join Date
May 2019
Location
Madurai
Posts
20
Hello,

I need to convert my ASCII data into double datatype. I am storing ASCII data in tag "Msg5 = ?Æ$04+³î'é?õÊ$11lMe" and i need to convert the data into double datatype in Intouch Wonderware using Script. Please tell me some solutions for this.

Thanks and Regards,
Vaitheeswaran Elango.
[email protected]
 
I can't see how that ASCII string could even represent a double? Where is this string coming from? For that example, what is the Double value you'd be expecting to get out?

If it was indeed a string that looked like an integer, i.e. "1124", then you have the function StringtoIntg.
 
Hello Sabba,

I get these data from GPS, I stored the data in the tag Msg5. The double value which i am expecting will be in this format"0.17200247081521292". If you can't convert the ASCII into Double value, suggest ideas for converting ASCII into Hex into Double. Using StringAscii() we could convert only one character but i need to convert whole data.

Thanks and Regards,
Vaitheeswaran Elango.
 

Similar Topics

I have an L24ER-QB1B with a 1769-ASCII card in slot number 4. I'm looking to send data to this zebra printer after every completed sequence. I'm a...
Replies
2
Views
403
Hi to everybody. I need to read the first 12 characters of the message that a barcode reader sends to the ascii card (1734-rs232 ascii) and I...
Replies
8
Views
685
I am trying to import addresses and symbols from a PanelBuilder32 application into the RSLogix 5 Address/Symbol database - however each time I...
Replies
5
Views
503
Good day! I am working on a project at our campus to integrate fleet vehicle chargers with load management so we don't overwhelm our service. The...
Replies
37
Views
3,698
I have been using Real Time Automation for a long time. Does anyone have another recommendation for ASCII serial to Ethernet//IP? We have a scale...
Replies
5
Views
977
Back
Top Bottom