Ask our Experts
Didn't find what you are looking for? Ask our experts!
Ask Me About Webinar: Data Center Assets - Modeling, Cooling, and CFD Simulation
Join our 30-minute expert session on July 10, 2025 (9:00 AM & 5:00 PM CET), to explore Digital Twins, cooling simulations, and IT infrastructure modeling. Learn how to boost resiliency and plan power capacity effectively. Register now to secure your spot!
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Search in
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-03-04 11:59 AM . Last Modified: 2023-05-03 12:05 AM
Is there a pre-existing function to convert a integer/byte (0-255) into an string containing a single ASCII character? BYTE_TO_STRING is close, but I want the value 65 to return "A", not "65".
Seems like maybe there could be, but I can't find it. I'm looking to display ASCII values stored as INTs in a ScadaPack and read as Modbus into a string variable in Geo SCADA Expert (CS2017
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-03-04 01:18 PM
I suspect unfortunately you might have to write you own Logic Library for this.
Geo SCADA Expert doesn't have the concept of a 'CHAR' data type, it's just a single element STRING.
So if you create a ST Library, and then have a CHAR or CHR function defined within it that took an INT (or BYTE) and returned a single element STRING, then you'd be able to do what you're looking for.
You'd just want your function to have a big CASE block... one condition for every character you want to map.
Or I guess you could do it with an array and then a lookup into the array, this might actually be nicer,
or even a STRING with all the characters, and then use MID to pull out the right value.
Link copied. Please paste this link to share this article on your social media post.
You’ve reached the end of your document
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.