Time to setup my lathe with 7i76e

More
25 Mar 2018 08:50 #107798 by rodw
All you do is to add 2 instances
loadrt ilowpass count=2
addf ilowpass.0 servo-thread
addf ilowpass.1 servo-thread
and use
ilowpass.0 for one axis and ilowpass.1 for the other.

That example does work as I used it on my 7i76e. Take care though, I think the scale defaulted to 1 metre per click on the MPG so I had a massive crash... I think you need to adjust your scale selector settings as well
Just get one of them going first.

Please Log in or Create an account to join the conversation.

More
25 Mar 2018 08:53 #107799 by tecno
Done that Rod and it did not work, maybe some typing error so I will get back on it again today and see what I can come up with.

Please Log in or Create an account to join the conversation.

More
25 Mar 2018 09:09 - 25 Mar 2018 09:11 #107800 by rodw
Just looking at your hal file, you already have an instance of ilowpass so you will need to add 3 instances and name them all

These lines need to be sent through ilowpass
net jog-0-counts axis.0.jog-counts <= hm2_7i76e.0.7i76.0.0.enc0.count
net jog-2-counts axis.2.jog-counts <= hm2_7i76e.0.7i76.0.0.enc1.count

This is why I much prefer this 2 line style in my hal
net jog-0-counts <= hm2_7i76e.0.7i76.0.0.enc0.count
net jog-0-counts => axis.0.jog-counts 

As it lets you change it much more easilly.
loadrt ilowpass, count = 3, names=ilowpas.spindle,ilowpass.mpgX,ilowpas.mpgZ
addf ilowpass.spindle servo-thread
addf ilowpass.mpgX servo-thread
addf ilowpass.mpgZ servo-thread

# X MPG ilowpass
setp ilowpass.mpgX.scale 1000
setp ilowpass.mpgX.gain 0.01
net jog-0-counts <= hm2_7i76e.0.7i76.0.0.enc0.count
net jog-0-counts => lowpass.mpgX.in
net ilowpass-0-out ilowpass.mpgX.out
net ilowpass-0-out => axis.0.jog-counts 
Don't expect this to work first time but it should be close
Last edit: 25 Mar 2018 09:11 by rodw.

Please Log in or Create an account to join the conversation.

More
25 Mar 2018 10:13 #107804 by tecno
Spindle = ilowpass = NO >>>>>>>>> lopass

Are these the same?

Please Log in or Create an account to join the conversation.

More
25 Mar 2018 10:30 - 25 Mar 2018 10:32 #107805 by rodw
Sorry, I got that wrong. If the names are different they are different components. It does not really matter, just starts a bit different.
loadrt ilowpass, count=2 , names=ilowpass.mpgX,ilowpass.mpgZ
addf ilowpass.mpgX servo-thread
addf ilowpass.mpgZ servo-thread
Last edit: 25 Mar 2018 10:32 by rodw.

Please Log in or Create an account to join the conversation.

More
25 Mar 2018 11:31 #107806 by Clive S
Rod I do appreciate this " This is why I much prefer this 2 line style in my hal " This has helped me no end it trying to understand hal llines of code. :cheer:

Please Log in or Create an account to join the conversation.

More
25 Mar 2018 11:47 #107807 by tecno
Happy camper over here :) as I now got ilowpass working.

I agree to Clives comment and I have learned a lesson today.

1. loadrt is either count or names not both

Here my HAL that is now operational

File Attachment:

File Name: CNC3000_20...3-25.hal
File Size:13 KB


Thanks Rod for your kind help.
Attachments:

Please Log in or Create an account to join the conversation.

More
25 Mar 2018 12:29 #107808 by rodw
Glad you guys learnt something today. Bengt, I just included that error as a training exercise! I told you it wouldn't work first up! :)

What I learnt this weekend is how to log a series of probe readings to a file. Which in turn taught me that my gantry was out by about 1.6mm in height from one side to the other. Which in turn resulted in almost a day's work shimming the gantry under probe control to get it level!

Please Log in or Create an account to join the conversation.

More
25 Mar 2018 12:32 #107810 by tecno
Yes you told me so ;)

There is always things to do, glad you got you gantry properly leveled. It is nice to have good tools that helps.

Please Log in or Create an account to join the conversation.

More
25 Apr 2018 10:47 #109587 by tecno
Need advise how to set spindel scaling.

I can manually set low speed to ~185rpm

In Axis F9 i need to press + button 3 times to get spindle starting.
M3 S300 is the lowest MDI command I can get spindle starting at ~185rpm

So giving M3 S185 will not start.

Where do I adjust to I get proper Sxxx ?

File Attachment:

File Name: CNC3000_20...4-25.ini
File Size:4 KB

File Attachment:

File Name: CNC3000_20...4-25.hal
File Size:13 KB


Cheers
Bengt
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.203 seconds
Powered by Kunena Forum