mb2hal receive 2 register value and convert to float32
- bkt
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1199
- Thank you received: 103
30 Jul 2022 06:55 - 30 Jul 2022 17:30 #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: 30 Jul 2022 17:30 by bkt.
Please Log in or Create an account to join the conversation.
- JPL
- Offline
- Platinum Member
Less
More
- Posts: 335
- Thank you received: 113
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.
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
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 1199
- Thank you received: 103
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