MrPLC Member
  • Content count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About rijow55814

  • Rank
    Hi, I am New!

Profile Information

  • Country United States
  1. How to combine 2 different WORD to create a single FLOAT

    Re-write from DB to global MEMORY your word like DBx.DBW1>>MW10 and DBx.DBW2>>MW12, then create real format for global memory MD10 (it take's 2 words)   Have a DWORD value. Load the high word value into the DWORD. Shift the DWORD left by 16-bits. Mask in the low word into the DWORD. User DWORD_TO_REAL conversion to convert it to the real value. MyDword := HighWord; SHL(IN := MyDword, N := 16); MyDword = MyDword AND LowWord; MyReal := DWORD_TO_REAL(MyDword);