Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

462
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda