kortenbach
Hi,
 
I have a DWord that contains a 32 bit real value, and I want to move these bits into a variable of type real.
I've really searched for this, but I could not find anything that can do this INSIDE A FUNCTION.
  • OpenPLC does not support pointers or references
  • OpenPLC does not support union structs
  • Move only accepts in- and outputs of the same type
  • DWord_to_real CONVERTS (does not simply move the bits to the output variable
I think it can be done by having two variables on the same %MD address, but I did not try that (yet) beause I want this to be embedded in a function...
 
Best regards
Bert
Reply 0 0
Reply