title: Twincat 3: How to convert 4 HEX array to Float?
body: <p>we are receiving (via UDP datagram) a float value codified by 4 bytes hex array. </p>
  
  <p>We need to convert from 4 hex bytes to a float.</p>
  
  <pre><code>udp_data[0] = 'BE';
  udp_data[1] = '7A';
  udp_data[2] = 'E0';
  udp_data[3] = 'F4';
  </code></pre>
  
  <p>In the given example, the correct equivalence, after transformation, udp_data is equivalent to -0.24499:</p>
  
  <p>What is the optimal conversion in Twincat 3 PLC? maybe some library? We need to perform 52 transformation at once of this type.</p>
  
  <p>I attached an example with an example taken from an online calculator:</p>
  
  <p><img src="https://i.imgur.com/0oznjX0.png" alt=""></p>
  
  <p>Thanks!!</p>