Convert Float to Integer 32
- REEEN
- Offline
- Premium Member
-
Less
More
- Posts: 97
- Thank you received: 1
29 Oct 2014 22:12 #52535
by REEEN
Convert Float to Integer 32 was created by REEEN
Hello, I have Linuxcnc connected to my Servo controller by ethercat.
I need to convert my float Signal to a integer 32 Signal.
Does Somebody kbow how to do that ?
Thank you guys !
Greets Rene
I need to convert my float Signal to a integer 32 Signal.
Does Somebody kbow how to do that ?
Thank you guys !
Greets Rene
Please Log in or Create an account to join the conversation.
- dgarrett
- Offline
- Platinum Member
-
Less
More
- Posts: 567
- Thank you received: 325
29 Oct 2014 22:19 #52538
by dgarrett
Replied by dgarrett on topic Convert Float to Integer 32
Please Log in or Create an account to join the conversation.
- REEEN
- Offline
- Premium Member
-
Less
More
- Posts: 97
- Thank you received: 1
30 Oct 2014 13:57 #52562
by REEEN
Replied by REEEN on topic Convert Float to Integer 32
Thank you !
Is it also possible to do conv_float_s16 ?
I saw that the conv.comp is usable in multiple ways but I don't understand it at all.
Greets!
Is it also possible to do conv_float_s16 ?
I saw that the conv.comp is usable in multiple ways but I don't understand it at all.
Greets!
Please Log in or Create an account to join the conversation.
- andypugh
-
- Offline
- Moderator
-
Less
More
- Posts: 23279
- Thank you received: 4933
30 Oct 2014 19:56 #52578
by andypugh
No. The "conv_*_*" components only convert between HAL pin types.
In fact the problem is a little bit deeper than that, there is no way to pass an S16 value on a HAL pin, nor any way to propogate that S16 pattern to other modules.
(you can have a numerically equal value, but the bit pattern will be S32).
Replied by andypugh on topic Convert Float to Integer 32
Is it also possible to do conv_float_s16 ?
No. The "conv_*_*" components only convert between HAL pin types.
In fact the problem is a little bit deeper than that, there is no way to pass an S16 value on a HAL pin, nor any way to propogate that S16 pattern to other modules.
(you can have a numerically equal value, but the bit pattern will be S32).
Please Log in or Create an account to join the conversation.
Time to create page: 0.052 seconds