- Posts: 1111
- Thank you received: 114
mb2hal receive 2 register value and convert to float32
4 years 3 months ago - 4 years 3 months ago #248660
by bkt
mb2hal receive 2 register value and convert to float32 was created 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
any suggest is appreciate
bkt
Last edit: 4 years 3 months ago by bkt.
Please Log in or Create an account to join the conversation.
4 years 3 months ago #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.
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.
4 years 3 months ago #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.099 seconds