Help needed to get my 7i76E + 7i85S + 7i73 on my mill going.

More
02 Sep 2017 20:32 - 02 Sep 2017 20:33 #98391 by tecno
Question
Is spindle encoder always 0? Can it be last and if so how is this done?
Last edit: 02 Sep 2017 20:33 by tecno.

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

More
02 Sep 2017 22:14 #98397 by andypugh
Any encoder can be used with any axis. I think that the resolvers on my lathe are 5 for X, 6 for Z and 2 for spindle, something like that.

That's the great thing about HAL, any signal can go anywhere.

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

More
03 Sep 2017 10:20 #98403 by tecno
OK, but still looking for the book *HAL for Dummies* ;)

from HAL
setp hm2_7i76e.0.encoder.00.scale 1000
setp hm2_7i76e.0.encoder.01.scale 1000
setp hm2_7i76e.0.encoder.02.scale 2000

Assuming this is for the X/Y/Z, where do this be connected to the axis in question
7i85S 1st 2nd 3rd encoder inputs

Want to have spindle encoder on 4th encoder input, what syntax in hal for this.
Now 360ppr encoder so the INI will have to be ENCODER_SCALE = 1440

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

More
03 Sep 2017 11:03 #98404 by rodw

OK, but still looking for the book *HAL for Dummies* ;)

Definitely not needed, just measure your progress by the blood on your workshop floor.

I'm feeling very despondent here today. Wish I just had to sort out how to make a spindle work instead of a plasma torch!

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

More
03 Sep 2017 11:04 #98405 by tecno
Same same but different ;)

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

More
03 Sep 2017 11:25 #98406 by tecno
So trying to wrap my head around this here is what I have got so far, correct?
Changes in HAL

setp hm2_7i76e.0.encoder.00.scale [AXIS_0] ENCODER_SCALE
setp hm2_7i76e.0.encoder.01.scale [AXIS_1] ENCODER_SCALE
setp hm2_7i76e.0.encoder.02.scale [AXIS_2] ENCODER_SCALE
setp hm2_7i76e.0.encoder.04.scale [SPINDLE_9] ENCODER_SCALE

Adding following to INI
in AXIS_0
ENCODER_SCALE = 1000

in AXIS_1
ENCODER_SCALE = 1000

in AXIS_2
ENCODER_SCALE = 2000

in SPINDLE_9
ENCODER_SCALE = 1440 ( 360ppr encoder )


forum.linuxcnc.org/39-pncconf/33069-help...oing?start=290#98338

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

More
03 Sep 2017 18:35 - 03 Sep 2017 18:38 #98419 by andypugh

OK, but still looking for the book *HAL for Dummies* ;)


I assume that you have seen:
linuxcnc.org/docs/2.7/html/hal/intro.html
and
linuxcnc.org/docs/2.7/html/hal/basic-hal.html
and that these do not meet your requirements?


from HAL
setp hm2_7i76e.0.encoder.00.scale 1000
setp hm2_7i76e.0.encoder.01.scale 1000
setp hm2_7i76e.0.encoder.02.scale 2000

Assuming this is for the X/Y/Z, where do this be connected to the axis in question



net some-signal-name axis.N.motor-position-fb hm2_7i76e.0.encoder.MM.position
Choose the N and MM any way that you fancy.
If you are using a PID component for each axis (this is optional, but pncconf currently sets things up that way) then you also need
net some-signal-name pid.X.feedback
(That is the same "some-signal-name" as the above, and you can combine them all on one line, or split over 3 lines, as you prefer)


Want to have spindle encoder on 4th encoder input, what syntax in hal for this.



net spindle-pos hm2_7i76e.0.encoder.04.position motion.spindle-revs
net spindle-vel hm2_7i76.0.encoder.04.velocity motion,spindle-vel

All the motion pins are listed here:
linuxcnc.org/docs/2.7/html/man/man9/motion.9.html
And the pid pins at:
linuxcnc.org/docs/2.7/html/man/man9/pid.9.html

Are you writing the HAL from scratch or using PnCConf?
Last edit: 03 Sep 2017 18:38 by andypugh.

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

More
03 Sep 2017 18:46 #98422 by tecno
PnCConf just messes up everything as it changes everything, so yes I will have to add/change step by step.

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

More
03 Sep 2017 19:30 #98426 by andypugh
Are you starting from scratch, or with the existing PnCConf setup? I would recommend the latter course.

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

More
03 Sep 2017 19:31 #98428 by tecno

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

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