> On 1 Jul 2017, at 21:25, Sag ich Dir nich <[email protected]> wrote: > > yes i did, but it gives me an error, either with "servo-thread" or "addf > conv-float-s32 servo-thread" it says:
Below statement explains: hal_add_funct_to_thread:230 HAL error: function 'conv-float-s32' not found In a terminal type: halcmd show function This spits out all the functions (of components you instantiated) you can add to the servothread. It probably is named something like conv-float-s32.1.funct > > machinekit@beaglebone:~$ linuxcnc > MACHINEKIT - 0.1 > Machine configuration directory is > '/home/machinekit/machinekit/configs/ARM.BeagleBone.CRAMPS' > Machine configuration file is 'CRAMPS.ini' > Starting Machinekit... > io started > halcmd loadusr io started > cape-universal overlay found > cape-bone-iio overlay found > CRAMPS.hal:712: addf failed: hal_add_funct_to_thread:230 HAL error: function > 'conv-float-s32' not found > Shutting down and cleaning up Machinekit... > exiting HAL component Therm > Cleanup done > Machinekit terminated with an error. You can find more information in the > log: > /home/machinekit/linuxcnc_debug.txt > and > /home/machinekit/linuxcnc_print.txt > as well as in the output of the shell command 'dmesg' and in the terminal > machinekit@beaglebone:~$ > > > isnt it the function called "conv_float_s32.so"? if yes, i have that file in > the xenomai directory. > > > > > Am Samstag, 1. Juli 2017 18:51:24 UTC+2 schrieb Bas de Bruijn: >> >> >> >> On 1 Jul 2017, at 17:19, Sag ich Dir nich <[email protected]> wrote: >> >>> i can see, that the value or raw input from the thermistor is going into >>> conv-float-s32.1.in but conv-float-s32.1.out is always zero, why is this? >> >> Did you add the function to the servo thread? >> >>> >>> Am Mittwoch, 28. Juni 2017 17:28:44 UTC+2 schrieb Sag ich Dir nich: >>>> >>>> hello, i tried feeding the thermistor value to >>>> halui.spindle-override.counts but i got an error "can not add float to >>>> s32" so i added a rt component called conv_float_s32 and technically it >>>> worked and started without error. I can see changes (very non-linear!) in >>>> adc value therm.ch04.raw from 1 to 4010 when i turn the pot but not on >>>> halui.spindle-override.counts(also no change in spindle speed when i turn >>>> the pot). What do i have to add to let the adc value change the counts >>>> from halui? >>>> >>>> this is my code: >>>> >>>> # Python user-mode HAL module to read ADC value and generate a thermostat >>>> output for PWM >>>> # c = analog input channel and thermistor table >>>> loadusr -Wn Therm hal_temp_bbb -n Therm -c >>>> 04:epcos_B57560G1104,05:epcos_B57560G1104 -b CRAMPS >>>> >>>> ########################### >>>> #Spindle and Feed Override# >>>> ########################### >>>> >>>> loadrt conv_float_s32 count=2 >>>> >>>> #newsig bed.temp.meas float >>>> #newsig Feed.override float >>>> >>>> net conv-float-s32.1.in <= Therm.ch-04.value >>>> net conv-float-s32.1.out => halui.spindle-override.counts >>>> >>>> setp halui.spindle-override.scale 0.1 >>>> #net bed.temp.meas <= Therm.ch-04.value >>>> #net bed.temp.meas => halui.spindle-override.counts# <= Therm.ch-04.value >>>> >>>> #setp halui.feed-override.scale 0.01 >>>> #net Spindle.override <= Therm.ch-05.value >>>> #net Feedoverride halui.feed-override.counts# <= Therm.ch-05.value >>>> >>>> >>>> thanks >>>> >>>> Am Samstag, 15. Oktober 2016 18:12:19 UTC+2 schrieb Charles Steinkuehler: >>>>> >>>>> On 10/14/2016 6:11 PM, Sag ich Dir nich wrote: >>>>> > Hi, >>>>> > >>>>> > i have some questions about the file >>>>> > >>>>> > from the "readtemp.py" file: >>>>> > # The BeBoPr board thermistor input has one side grounded and the other >>>>> > side >>>>> >>>>> The BeBoPr is probably the most complex example to use as a reference, >>>>> since it has a more complicated input circuit than any of the other >>>>> boards. >>>>> >>>>> Basically, you need to create a routine that converts a raw ADC value >>>>> into the resistance of your variable resistor. How to do this depends >>>>> on how you have the resistor connected and the input circuitry (if >>>>> any) between the ADC and your variable resistor. >>>>> >>>>> If you are using a standard board (BeBoPr or CRAMPS or whatever) you >>>>> can use the routine for that board to get a resistance value as long >>>>> as you haven't changed any of the input circuitry. >>>>> >>>>> What you do with the resistance value from there on is up to you, you >>>>> can feed it directly into HAL as a value, convert it to a percentage, >>>>> apply a linear or log scale to the value (which might be needed to get >>>>> the response curve you want from various dial positions which again >>>>> will depend on the type of potentiometer you are using and the input >>>>> circuitry). >>>>> >>>>> -- >>>>> Charles Steinkuehler >>>>> [email protected] >>> >>> -- >>> website: http://www.machinekit.io blog: http://blog.machinekit.io github: >>> https://github.com/machinekit >>> --- >>> You received this message because you are subscribed to the Google Groups >>> "Machinekit" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to [email protected]. >>> Visit this group at https://groups.google.com/group/machinekit. >>> For more options, visit https://groups.google.com/d/optout. > > -- > website: http://www.machinekit.io blog: http://blog.machinekit.io github: > https://github.com/machinekit > --- > You received this message because you are subscribed to the Google Groups > "Machinekit" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > Visit this group at https://groups.google.com/group/machinekit. > For more options, visit https://groups.google.com/d/optout. -- website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit --- You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/machinekit. For more options, visit https://groups.google.com/d/optout.
