mb2hal receive 2 register value and convert to float32

  • bkt
  • bkt's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
30 Jul 2022 06:55 - 30 Jul 2022 17:30 #248660 by bkt
he at all .... for test pourpuse need to read 2 register big endian type float 32 ... for obtain a real float value .... but I know mb2hal read only float16 single register ... there is a way to read bigendian type or convert 2 register float16 into 1 value real float32??

any suggest is appreciate
bkt
Last edit: 30 Jul 2022 17:30 by bkt.

Please Log in or Create an account to join the conversation.

More
30 Jul 2022 08:54 #248664 by JPL
Replied by JPL on topic mb2hal bigendian
Did you saw this thread: forum.linuxcnc.org/38-general-linuxcnc-q...2hal-send-float-data
This is basically what I'm doing to send the DRO pos to an external HMI (pro-face). Not really neat but usable for up to say 4 or 5 decimals. The conversion back is handled by the HMI.

Please Log in or Create an account to join the conversation.

  • bkt
  • bkt's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
30 Jul 2022 12:33 #248667 by bkt
Replied by bkt on topic mb2hal bigendian
basically my problem is inverse .... need to receive 2 register bigendian for recreate float32 instead float16 .....

Please Log in or Create an account to join the conversation.

Time to create page: 0.093 seconds
Powered by Kunena Forum