PathPilot 2.0.2 adding rtlib's

More
8 years 6 months ago #109598 by Stigoe

emptyhb wrote: Can you try with flipflop? I can confirm all rtlibs can load with "count=n" parameter but if using "names", addf function will not work after.

Works for me.

Attachment not found


Attachment not found



So does adding two instances of a component.

Attachment not found


Attachment not found

Please Log in to join the conversation.

More
8 years 6 months ago #109601 by emptyhb
@Stigoe:
You got an email, i don't know what step am i missing for compile rtlibs.

Please Log in to join the conversation.

More
8 years 6 months ago #109603 by Stigoe
Hi.

Yes, I saw it right now. I don't know which steps you are missing, as I don't know what you have done and what you haven't done. How I did it, was how I described in an earlier post. All included HAL components were actually compiled when LCNC was compiled, which I noticed two days ago. They reside in [LinuxCNC-folder]/rtlib.

I'll see if I can redo the whole thing and take some screenshots during the process in a couple of days.

If you'd like, I can send you the files, if you say which ones you need.

Please Log in to join the conversation.

More
8 years 6 months ago #109604 by emptyhb
Here's all step i'm doing:

1. Make folders in home directory by structure:
Code:
repos/tormach_linuxcnc
2. Clone linuxcnc
Code:
$:cd repos/tormach_linuxcnc/ $:git clone git://github.com/linuxcnc/linuxcnc.git linuxcnc
3. Build linuxcnc
Code:
$:cd linuxcnc/src $:./autogen.sh $:./configure --with-realtime=uspace $:make
4. After build completed, copies missing rtlibs from linuxcnc/rtlibs to ~/tmc/rtlibs

Please Log in to join the conversation.

More
8 years 6 months ago #109607 by Stigoe

emptyhb wrote: 2. Clone linuxcnc

Code:
$:cd repos/tormach_linuxcnc/ $:git clone git://github.com/linuxcnc/linuxcnc.git linuxcnc

This may be one reason why it doesn't work. I didn't use the latest source, I used LCNC 2.7.8.

Please Log in to join the conversation.

More
8 years 6 months ago #109609 by emptyhb
I'm switch back to 2.7.12 version
Code:
$ git fetch origin 2.7 $ git checkout 2.7
Then repeat all steps again, but nothing different.

But, i found: if i comple .comp file with "halcompile --install" the file size of rtlib (compiled comp) it different with default linuxcnc build.

How do you use halcompile? or you are using default linuxcnc compiled files?

Please Log in to join the conversation.

More
8 years 6 months ago #109628 by dinkata
I added
Code:
loadrt flipflop names=flipflop1,flipflop2 ..................................... addf flipflop1 servo-thread addf flipflop2 servo-thread
and I think it works

Attachment not found

Please Log in to join the conversation.

More
8 years 6 months ago #109629 by DaOne
Any of you guys using a parallel port? Curious what you bypassed.

Please Log in to join the conversation.

More
8 years 6 months ago #109630 by dinkata

Attachment not found

DaOne wrote: Any of you guys using a parallel port? Curious what you bypassed.

Code:
loadrt hal_parport cfg="0x378 out" setp parport.0.reset-time 500 loadrt charge_pump ...................... addf parport.0.read base-thread addf parport.0.write base-thread addf parport.0.reset base-thread addf charge-pump base-thread
That's how it works
@DaOne please share ini and hal only for XHC-HB04 !

Please Log in to join the conversation.

More
8 years 6 months ago #109632 by DaOne

dinkata wrote:

Attachment not found

DaOne wrote: Any of you guys using a parallel port? Curious what you bypassed.

Code:
loadrt hal_parport cfg="0x378 out" setp parport.0.reset-time 500 loadrt charge_pump ...................... addf parport.0.read base-thread addf parport.0.write base-thread addf parport.0.reset base-thread addf charge-pump base-thread
That's how it works
@DaOne please share ini and hal only for XHC-HB04 !


No I understand the hal and ini files. Thats the easy part. When not in sim mode there is checks at startup (python code) that looks for the mesa card and then ethernet. It will error out and force close with a dialog box if they are not detected. its done in pathpilotmanager.py I am almost sure. I have not even touched the hal files or ini files in 2.0 yet. Gonna set through it before adding in all my mods to the python code. I just don't want to reinvent the wheel if someone else has done it already.

On the XHC-HB04 ini and hal files I would assume you do it just like you do in linuxcnc. I don't have one yet but might pick one up to play with for this lathe retrofit.

Please Log in to join the conversation.

Time to create page: 0.102 seconds
Powered by Kunena Forum