Convert Float to Integer 32
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.
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.
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.
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.061 seconds