On Wednesday 29 August 2018 05:06:51 andy pugh wrote:

> On Wed, 29 Aug 2018 at 02:57, Gene Heskett <[email protected]> 
wrote:
> > Something else I ran into today. lincurve doesn't accept a name in
> > the loadrt line, only a count, which means I had to comment out a
> > call
>
> It should. It is a .comp compiled by halcompile and halcompile makes
> that available by default.
>
> Both loadrt lines need to use names= for it to work with twopass,
> though.

I've tried the names= more than once, its not loaded when I do. I'll give 
it another shot though.

I named lincurve.0 as bedwear in the main .hal
Then I named it gearshift in automatic_spindle_gear yadda yadda

#loadrt lincurve count=1 personality=16
loadrt lincurve names=gearshift personality=16
and
#addf lincurve.0                jog-thread
addf gearshift                  jog-thread

And linuxcnc -l fails:
lincurve: already exists
lincurve: already exists

HAL: ERROR: function 'gearshift' not found
automatic-spindle-gear-detection.hal:17: addf failed
Shutting down and cleaning up LinuxCNC...

So the dbled loadrt is still denied but TWOPASS wasn't set, is now, but 
gets new error:
=================
Starting LinuxCNC...
twopass:invoked with <> options
twopass:found ./hm2-7i90-stepper.hal
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
hm2/hm2_7i90.0: invalid token in config string: "{num_encoders=4"
hm2_rpspi: hm2_register() failed for SPI0/CE0.
hm2_rpspi: rtapi_app_main: Invalid argument (-22)

twopass: load_the_modules cmd=<orig_loadrt hm2_rpspi 
{config={"num_encoders=4 num_pwmgens=1 num_stepgens=4"}} 
spiclk_rate=41666 spiclk_rate_rd=25000>
waitpid failed /usr/bin/rtapi_app hm2_rpspi
/usr/bin/rtapi_app exited without becoming ready
insmod for hm2_rpspi failed, returned -1

HAL: ERROR: function 'hm2_7i90.0.read' not found
twopass: Error in file ./hm2-7i90-stepper.hal:
    addf failed
Shutting down and cleaning up LinuxCNC...
hm2_rpspi: not loaded
<commandline>:0: exit value: 255
<commandline>:0: rmmod failed, returned -1
hm2: unloading
<commandline>:0: unloadrt failed
Note: Using POSIX realtime
================
So it looks as if I'll have to back all the renaming out, and comment the 
gearchange call back out, its not fully implemented anyway.

Tried several variations, eventually commenting the TWOPASS and it works 
again by removeing the automatic.yadda-yadda. Without backing out about 
50 edits, so the names= is working, once only.


Thanks Andy.

-- 
Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to