EcoStruxure Geo SCADA Expert Forum
Schneider Electric support forum about installation, configuration, integration and troubleshooting of EcoStruxure Geo SCADA Expert (ClearSCADA, ViewX, WebX).
Link copied. Please paste this link to share this article on your social media post.
Posted: 2019-11-05 12:26 PM . Last Modified: 2023-05-03 12:37 AM
>>Message imported from previous forum - Category:ClearSCADA Software<<
User: hardin4019, originally posted: 2018-10-22 16:08:51 Id:166
I have a float from a 3rd party that when read in is the Real representation of 32 bits that contain 32 digital input status points coming into ClearSCADA. What is the best way to take that Real and get represented as a Binary number 32 bits long so that I can extract the bits I need and use FBD or ST to get those bits to individual internal digital points?
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: 2019-11-05 12:27 PM
>>Responses imported from previous forum
Reply From User: geoffpatton, posted: 2018-10-23 15:58:57
They are trying to make it difficult on you with a REAL. The only thing I can think of, that will actually work (I had a few hair brained ideas), is to do the math and pick it apart in structured text and write all the bits out to internal points.
Reply From User: hardin4019, posted: 2018-10-23 17:05:43
That is really what I was afraid of. I had originally thought there was a simple way to resolve an integer into binary bits, but have come to the same conclusion that doing the math to resolve the number is the only way. Unfortunately, I only need 4 bits out of the whole thing, and it isn't as easy as I thought!
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.