- Posts: 2203
- Thank you received: 0
Adding a Mpg to a 7i85s
Please Log in to join the conversation.
specific pin and parameter names.
Where are you stuck?
Please Log in to join the conversation.
PCW wrote: If you have already set this up on a 7I76 this should be nearly the same except for
specific pin and parameter names.
Where are you stuck?
This is what I have in custom hal:
net x-jog-count axis.0.jog-counts
net x-jog-count hm2_5i25.0.encoder.01.count
setp axis.0.jog-enable true
hm2_5i25.0.encoder.01.count counts up and down in blocks of 4
hm2xxxxxxxxxx.input-a goes true and false
hm2xxxxxxxxxxx.position counts up and down
hm2xxxxxxxxxxxxx.vel seems ok up and down
I want to use 3 mpg's one for each axis
Attachment not found
Attachment not found
Attachment not found
Please Log in to join the conversation.
forum.linuxcnc.org/show-your-stuff/32029...utter-build?start=20
Please Log in to join the conversation.
Thanks for the help Rod I had seen this from your build.
Would you mind showing me the code without the scale switch as I only require one scale ie about 0.1
I am have trouble sorting what each line does.
Please Log in to join the conversation.
Clive s wrote: @Rod
Thanks for the help Rod I had seen this from your build.
Would you mind showing me the code without the scale switch as I only require one scale ie about 0.1
I am have trouble sorting what each line does.
Its pretty well documented in my thread piece by piece. The mux4 does the selection so the scale you select is set in the very last line based on the switch position. You could probably use setp to set the value on that line to the scale you want.
The or2 enables the jog wheel only when the scale switch is not set to position 0.
Please Log in to join the conversation.
Just looking at X axis first (I have Y & Z working with the same prob) this in custom hal:-
setp axis.0.jog-vel-mode 0
net x-jog-counter <= hm2_5i25.0.encoder.01.count
net x-jog-counter => axis.0.jog-counts
setp axis.0.jog-vel-mode true
#setp axis.0.jog-enable true
setp axis.0.jog-scale 0.000984
BUT I can't set "setp axis.0.jog-enable true" because this is what is reported "halcmd: setp axis.0.jog-enable true
<stdin>
: pin 'axis.0.jog-enable' is connected to a signal"I can see that here:-
1988 s32 IN 0 axis.0.jog-counts <== x-jog-counter
1988 bit IN FALSE axis.0.jog-enable <== sxp.xen-button
1988 float IN 0.000984 axis.0.jog-scale
1988 bit IN TRUE axis.0.jog-vel-mode
I can make "axis.0.jog-enable true" by pressing the shuttle express X button on the pendant.
In this case the MPG and pendant works fine.
So problem is how do I solve this so that I can use the MPG without selecting the axis button on the pendant. So that I can have 3 MPG's to use the mill manually.
Please Log in to join the conversation.
Also is it beneficial to set the mpg encoder to "times 4 mode"
Please Log in to join the conversation.
Try
If it makes you feel better, my commercial pendant has a safety switch that must be pressed before the jog wheel is enabled.
Please Log in to join the conversation.
The code above lets me only use an mpg when the button on the pendant is activated (ie there is one button for each axis). This means that I cannot use 2 mpg's at the same time.
this is where I think my problem is:
BUT I can't set "setp axis.0.jog-enable true" because this is what is reported "halcmd: setp axis.0.jog-enable true
<stdin>
: pin 'axis.0.jog-enable' is connected to a signal"I need to be able to set all the axis.0.jog-enable true, but the button on the pendant is doing that with this ;- 1988 bit IN FALSE axis.0.jog-enable <== sxp.xen-button. Unplugging the pendant does not help either.
I am not sure what info is needed to do this.
Please Log in to join the conversation.
