I was poking through the Stackoverflow PLC Tag when I saw this answer to a question about converting a Real to a DWord and back again.
What caught my eye was the use of the UNION data type and I went D'Oh as this could have more easily solved a data mapping problem I recently had. So I lept to my trusty Machine Edition and wanted to see how I could replicate this code in Structured Text on an Rx3i.
And that's where I hit a wall. It seems that GE doesn't support the the UNION data type (or I am really really stupid - but I am betting on the former).
This made me sit back and think "How compliant is GE with IEC 61131-3 languages?". I also thought "Is UNION a brand specific extension to Structured Text?".
I went googling and couldn't find any obvious answers to my questions. So can anyone help me out here?
What caught my eye was the use of the UNION data type and I went D'Oh as this could have more easily solved a data mapping problem I recently had. So I lept to my trusty Machine Edition and wanted to see how I could replicate this code in Structured Text on an Rx3i.
And that's where I hit a wall. It seems that GE doesn't support the the UNION data type (or I am really really stupid - but I am betting on the former).
This made me sit back and think "How compliant is GE with IEC 61131-3 languages?". I also thought "Is UNION a brand specific extension to Structured Text?".
I went googling and couldn't find any obvious answers to my questions. So can anyone help me out here?