Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

457
Vistas
How do I convert 1 word (2 bytes) to a float in Node.js?

I'm using Node-RED to read input from a Modbus server more specifically the MOXA ioLogik E2262 and the manual for the controller says if you use Function 4 from the modbus commands to read an analogue signal, the data type returned will be "1 word".

So I assume the Modbus Flex Getter node should be outputting "1 word"/ "2 bytes". I'm trying to read a temperature value so I'd like it to be a float value. Looking at the Modbus response though,I'm getting "65535" and I can't figure out what this is.

Can someone please help me with this ?
Modbus/TCP Address Mappings

Node-RED flow

enter image description here

about 4 years ago · Santiago Gelvez
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda