MPG Mesa 7i73 im stuck
28 Jun 2018 14:22 #112986
by lesureia
MPG Mesa 7i73 im stuck was created by lesureia
Hello Linuxcnc forum.
Im trying to set up a MPG with two switches one for Axis selection and one for the increments.
So far i can see in halmeter that the MPG is working on hm2_5i25.0.7i73.0.1.enc0.count it changes value when rotating.
joint-select-a b c d is also working in halmeter.
jog-incr-a b c d also working in halmeter.
But when starting linuxcnc and trying to move an axis after its homed its not moving.
Im kinda stuck here any suggestions what to do?
Pncconf have assisted me in doing these connections
And this is from terminal when starting linuxcnc i dont know if this is normal?
Starting LinuxCNC...
Found file(REL): ./20180627.hal
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
hm2_pci: discovered 5i25 at 0000:04:00.0
hm2/hm2_5i25.0: Smart Serial Firmware Version 43
Board hm2_5i25.0.7i76.0.0 Hardware Mode 0 = standard
Board hm2_5i25.0.7i76.0.0 Software Mode 0 = io_spin
Board hm2_5i25.0.7i76.0.0 Software Mode 1 = io_ana_spin
Board hm2_5i25.0.7i76.0.0 Software Mode 2 = io_enc_ana_spi/Rickard.Ln_fv
Board hm2_5i25.0.7i73.0.1 Hardware Mode 0 = nokeyboardnodisplay
Board hm2_5i25.0.7i73.0.1 Software Mode 0 = inputoutputencoder
Board hm2_5i25.0.7i73.0.1 Software Mode 1 = inputoutputencoderanalog
Board hm2_5i25.0.7i73.0.1 Software Mode 2 = inputoutputencoderanalog
Board hm2_5i25.0.7i73.0.1 Hardware Mode 1 = nokeyboarddisplay
Board hm2_5i25.0.7i73.0.1 Software Mode 0 = inputoutputencoderdisplay
Board hm2_5i25.0.7i73.0.1 Software Mode 1 = inputoutputencoderanalogdisplay
Board hm2_5i25.0.7i73.0.1 Software Mode 2 = inputoutputencoderanalogwidedisplay
Board hm2_5i25.0.7i73.0.1 Hardware Mode 2 = keyboard4by8nodisplay
Board hm2_5i25.0.7i73.0.1 Software Mode 0 = inputoutputencoderkeycode4by8
Board hm2_5i25.0.7i73.0.1 Software Mode 1 = inputoutputencoderanalogkeycode4by8
Board hm2_5i25.0.7i73.0.1 Software Mode 2 = inputoutputencoderanalogkeycode4by8
Board hm2_5i25.0.7i73.0.1 Hardware Mode 3 = keyboard4by8display
Board hm2_5i25.0.7i73.0.1 Software Mode 0 = inputoutputencoderdisplaykeycode4by8
Board hm2_5i25.0.7i73.0.1 Software Mode 1 = inputoutputencoderanalogdisplaykeycode4by8
Board hm2_5i25.0.7i73.0.1 Software Mode 2 = inputoutputencoderanalogwidedisplaykeycode4by8
Board hm2_5i25.0.7i73.0.1 Hardware Mode 4 = keyboard8by8nodisplay
Board hm2_5i25.0.7i73.0.1 Software Mode 0 = inputoutputencoderkeycode8by8
Board hm2_5i25.0.7i73.0.1 Software Mode 1 = inputoutputencoderanalogkeycode8by8
Board hm2_5i25.0.7i73.0.1 Software Mode 2 = inputoutputencoderanalogkeycode8by8
Board hm2_5i25.0.7i73.0.1 Hardware Mode 5 = keyboard8by8display
Board hm2_5i25.0.7i73.0.1 Software Mode 0 = inputoutputencoderdisplaykeycode8by8
Board hm2_5i25.0.7i73.0.1 Software Mode 1 = inputoutputencoderanalogdisplaykeycode8by8
Board hm2_5i25.0.7i73.0.1 Software Mode 2 = inputoutputencoderanalogwidedisplaykeycode8by8
hm2/hm2_5i25.0: 34 I/O Pins used:
hm2/hm2_5i25.0: IO Pin 000 (P3-01): StepGen #0, pin Direction (Output)
hm2/hm2_5i25.0: IO Pin 001 (P3-14): StepGen #0, pin Step (Output)
hm2/hm2_5i25.0: IO Pin 002 (P3-02): StepGen #1, pin Direction (Output)
hm2/hm2_5i25.0: IO Pin 003 (P3-15): StepGen #1, pin Step (Output)
hm2/hm2_5i25.0: IO Pin 004 (P3-03): StepGen #2, pin Direction (Output)
hm2/hm2_5i25.0: IO Pin 005 (P3-16): StepGen #2, pin Step (Output)
hm2/hm2_5i25.0: IO Pin 006 (P3-04): StepGen #3, pin Direction (Output)
hm2/hm2_5i25.0: IO Pin 007 (P3-17): StepGen #3, pin Step (Output)
hm2/hm2_5i25.0: IO Pin 008 (P3-05): StepGen #4, pin Direction (Output)
hm2/hm2_5i25.0: IO Pin 009 (P3-06): StepGen #4, pin Step (Output)
hm2/hm2_5i25.0: IO Pin 010 (P3-07): Smart Serial Interface #0, pin TxData0 (Output)
hm2/hm2_5i25.0: IO Pin 011 (P3-08): Smart Serial Interface #0, pin RxData0 (Input)
hm2/hm2_5i25.0: IO Pin 012 (P3-09): Smart Serial Interface #0, pin TxData1 (Output)
hm2/hm2_5i25.0: IO Pin 013 (P3-10): Smart Serial Interface #0, pin RxData1 (Input)
hm2/hm2_5i25.0: IO Pin 014 (P3-11): Encoder #0, pin Index (Input)
hm2/hm2_5i25.0: IO Pin 015 (P3-12): Encoder #0, pin B (Input)
hm2/hm2_5i25.0: IO Pin 016 (P3-13): Encoder #0, pin A (Input)
hm2/hm2_5i25.0: IO Pin 017 (P2-01): IOPort
hm2/hm2_5i25.0: IO Pin 018 (P2-14): IOPort
hm2/hm2_5i25.0: IO Pin 019 (P2-02): IOPort
hm2/hm2_5i25.0: IO Pin 020 (P2-15): IOPort
hm2/hm2_5i25.0: IO Pin 021 (P2-03): IOPort
hm2/hm2_5i25.0: IO Pin 022 (P2-16): IOPort
hm2/hm2_5i25.0: IO Pin 023 (P2-04): IOPort
hm2/hm2_5i25.0: IO Pin 024 (P2-17): IOPort
hm2/hm2_5i25.0: IO Pin 025 (P2-05): IOPort
hm2/hm2_5i25.0: IO Pin 026 (P2-06): IOPort
hm2/hm2_5i25.0: IO Pin 027 (P2-07): IOPort
hm2/hm2_5i25.0: IO Pin 028 (P2-08): IOPort
hm2/hm2_5i25.0: IO Pin 029 (P2-09): IOPort
hm2/hm2_5i25.0: IO Pin 030 (P2-10): IOPort
hm2/hm2_5i25.0: IO Pin 031 (P2-11): IOPort
hm2/hm2_5i25.0: IO Pin 032 (P2-12): IOPort
hm2/hm2_5i25.0: IO Pin 033 (P2-13): IOPort
hm2/hm2_5i25.0: registered
hm2_5i25.0: initialized AnyIO board at 0000:04:00.0
/Rickard
Im trying to set up a MPG with two switches one for Axis selection and one for the increments.
So far i can see in halmeter that the MPG is working on hm2_5i25.0.7i73.0.1.enc0.count it changes value when rotating.
joint-select-a b c d is also working in halmeter.
jog-incr-a b c d also working in halmeter.
But when starting linuxcnc and trying to move an axis after its homed its not moving.
Im kinda stuck here any suggestions what to do?
Pncconf have assisted me in doing these connections
And this is from terminal when starting linuxcnc i dont know if this is normal?
Starting LinuxCNC...
Found file(REL): ./20180627.hal
Note: Using POSIX realtime
hm2: loading Mesa HostMot2 driver version 0.15
hm2_pci: loading Mesa AnyIO HostMot2 driver version 0.7
hm2_pci: discovered 5i25 at 0000:04:00.0
hm2/hm2_5i25.0: Smart Serial Firmware Version 43
Board hm2_5i25.0.7i76.0.0 Hardware Mode 0 = standard
Board hm2_5i25.0.7i76.0.0 Software Mode 0 = io_spin
Board hm2_5i25.0.7i76.0.0 Software Mode 1 = io_ana_spin
Board hm2_5i25.0.7i76.0.0 Software Mode 2 = io_enc_ana_spi/Rickard.Ln_fv
Board hm2_5i25.0.7i73.0.1 Hardware Mode 0 = nokeyboardnodisplay
Board hm2_5i25.0.7i73.0.1 Software Mode 0 = inputoutputencoder
Board hm2_5i25.0.7i73.0.1 Software Mode 1 = inputoutputencoderanalog
Board hm2_5i25.0.7i73.0.1 Software Mode 2 = inputoutputencoderanalog
Board hm2_5i25.0.7i73.0.1 Hardware Mode 1 = nokeyboarddisplay
Board hm2_5i25.0.7i73.0.1 Software Mode 0 = inputoutputencoderdisplay
Board hm2_5i25.0.7i73.0.1 Software Mode 1 = inputoutputencoderanalogdisplay
Board hm2_5i25.0.7i73.0.1 Software Mode 2 = inputoutputencoderanalogwidedisplay
Board hm2_5i25.0.7i73.0.1 Hardware Mode 2 = keyboard4by8nodisplay
Board hm2_5i25.0.7i73.0.1 Software Mode 0 = inputoutputencoderkeycode4by8
Board hm2_5i25.0.7i73.0.1 Software Mode 1 = inputoutputencoderanalogkeycode4by8
Board hm2_5i25.0.7i73.0.1 Software Mode 2 = inputoutputencoderanalogkeycode4by8
Board hm2_5i25.0.7i73.0.1 Hardware Mode 3 = keyboard4by8display
Board hm2_5i25.0.7i73.0.1 Software Mode 0 = inputoutputencoderdisplaykeycode4by8
Board hm2_5i25.0.7i73.0.1 Software Mode 1 = inputoutputencoderanalogdisplaykeycode4by8
Board hm2_5i25.0.7i73.0.1 Software Mode 2 = inputoutputencoderanalogwidedisplaykeycode4by8
Board hm2_5i25.0.7i73.0.1 Hardware Mode 4 = keyboard8by8nodisplay
Board hm2_5i25.0.7i73.0.1 Software Mode 0 = inputoutputencoderkeycode8by8
Board hm2_5i25.0.7i73.0.1 Software Mode 1 = inputoutputencoderanalogkeycode8by8
Board hm2_5i25.0.7i73.0.1 Software Mode 2 = inputoutputencoderanalogkeycode8by8
Board hm2_5i25.0.7i73.0.1 Hardware Mode 5 = keyboard8by8display
Board hm2_5i25.0.7i73.0.1 Software Mode 0 = inputoutputencoderdisplaykeycode8by8
Board hm2_5i25.0.7i73.0.1 Software Mode 1 = inputoutputencoderanalogdisplaykeycode8by8
Board hm2_5i25.0.7i73.0.1 Software Mode 2 = inputoutputencoderanalogwidedisplaykeycode8by8
hm2/hm2_5i25.0: 34 I/O Pins used:
hm2/hm2_5i25.0: IO Pin 000 (P3-01): StepGen #0, pin Direction (Output)
hm2/hm2_5i25.0: IO Pin 001 (P3-14): StepGen #0, pin Step (Output)
hm2/hm2_5i25.0: IO Pin 002 (P3-02): StepGen #1, pin Direction (Output)
hm2/hm2_5i25.0: IO Pin 003 (P3-15): StepGen #1, pin Step (Output)
hm2/hm2_5i25.0: IO Pin 004 (P3-03): StepGen #2, pin Direction (Output)
hm2/hm2_5i25.0: IO Pin 005 (P3-16): StepGen #2, pin Step (Output)
hm2/hm2_5i25.0: IO Pin 006 (P3-04): StepGen #3, pin Direction (Output)
hm2/hm2_5i25.0: IO Pin 007 (P3-17): StepGen #3, pin Step (Output)
hm2/hm2_5i25.0: IO Pin 008 (P3-05): StepGen #4, pin Direction (Output)
hm2/hm2_5i25.0: IO Pin 009 (P3-06): StepGen #4, pin Step (Output)
hm2/hm2_5i25.0: IO Pin 010 (P3-07): Smart Serial Interface #0, pin TxData0 (Output)
hm2/hm2_5i25.0: IO Pin 011 (P3-08): Smart Serial Interface #0, pin RxData0 (Input)
hm2/hm2_5i25.0: IO Pin 012 (P3-09): Smart Serial Interface #0, pin TxData1 (Output)
hm2/hm2_5i25.0: IO Pin 013 (P3-10): Smart Serial Interface #0, pin RxData1 (Input)
hm2/hm2_5i25.0: IO Pin 014 (P3-11): Encoder #0, pin Index (Input)
hm2/hm2_5i25.0: IO Pin 015 (P3-12): Encoder #0, pin B (Input)
hm2/hm2_5i25.0: IO Pin 016 (P3-13): Encoder #0, pin A (Input)
hm2/hm2_5i25.0: IO Pin 017 (P2-01): IOPort
hm2/hm2_5i25.0: IO Pin 018 (P2-14): IOPort
hm2/hm2_5i25.0: IO Pin 019 (P2-02): IOPort
hm2/hm2_5i25.0: IO Pin 020 (P2-15): IOPort
hm2/hm2_5i25.0: IO Pin 021 (P2-03): IOPort
hm2/hm2_5i25.0: IO Pin 022 (P2-16): IOPort
hm2/hm2_5i25.0: IO Pin 023 (P2-04): IOPort
hm2/hm2_5i25.0: IO Pin 024 (P2-17): IOPort
hm2/hm2_5i25.0: IO Pin 025 (P2-05): IOPort
hm2/hm2_5i25.0: IO Pin 026 (P2-06): IOPort
hm2/hm2_5i25.0: IO Pin 027 (P2-07): IOPort
hm2/hm2_5i25.0: IO Pin 028 (P2-08): IOPort
hm2/hm2_5i25.0: IO Pin 029 (P2-09): IOPort
hm2/hm2_5i25.0: IO Pin 030 (P2-10): IOPort
hm2/hm2_5i25.0: IO Pin 031 (P2-11): IOPort
hm2/hm2_5i25.0: IO Pin 032 (P2-12): IOPort
hm2/hm2_5i25.0: IO Pin 033 (P2-13): IOPort
hm2/hm2_5i25.0: registered
hm2_5i25.0: initialized AnyIO board at 0000:04:00.0
/Rickard
Please Log in or Create an account to join the conversation.
28 Jun 2018 15:21 - 28 Jun 2018 15:21 #112989
by PCW
Replied by PCW on topic MPG Mesa 7i73 im stuck
If hm2_5i25.0.7i73.0.1.enc0.count is present and changes when you move the MPG dial, the error is likely in your hal file (is the appropriate jog-enable true for example)
Can you post your hal file here?
Can you post your hal file here?
Last edit: 28 Jun 2018 15:21 by PCW.
Please Log in or Create an account to join the conversation.
28 Jun 2018 15:38 #112990
by lesureia
Replied by lesureia on topic MPG Mesa 7i73 im stuck
Here is my Hal file
Thank you
Thank you
Please Log in or Create an account to join the conversation.
28 Jun 2018 16:51 - 28 Jun 2018 17:09 #112996
by PCW
Replied by PCW on topic MPG Mesa 7i73 im stuck
The basic issue I see is that you have some 7i73 pins that seem to be used to select the joint to jog, like:
net joint-select-a <= hm2_5i25.0.7i73.0.1.input-00
But no where are they connected to the per axis or per joint jog enable pins like
net axis-select-x => axis.x.jog-enable
(or joint jog enables if you wish to jog joints)
net joint-select-a <= hm2_5i25.0.7i73.0.1.input-00
But no where are they connected to the per axis or per joint jog enable pins like
net axis-select-x => axis.x.jog-enable
(or joint jog enables if you wish to jog joints)
Last edit: 28 Jun 2018 17:09 by PCW. Reason: Clarify
Please Log in or Create an account to join the conversation.
28 Jun 2018 17:25 #113003
by andypugh
Replied by andypugh on topic MPG Mesa 7i73 im stuck
I was initially assuming that the problem was that you had connected joint jogs but not axis jogs (when you mentioned homing) but you probably don't want to jog the joints on a gantry, at least on the tandem axis.
as Peter says, you have
net axis-select-x halui.axis.N.select
and
net axis-select-x => axis.x.jog-enable
But these are not connected to an output (driver) pin.
I imagine that joint-select-a/b/c/d are intended to be converted to individual joint enables, but that part seems to be missing.
If the rotary switch output is binary / bcd and you need to convert it to individual select bits then you can use weighted-sum and bitslice.
I thought that there was an existing HAL component for this, but I can't find it.
You can use a LUT5 per axis to do it (Or a bit-type mux-generic per axis)
as Peter says, you have
net axis-select-x halui.axis.N.select
and
net axis-select-x => axis.x.jog-enable
But these are not connected to an output (driver) pin.
I imagine that joint-select-a/b/c/d are intended to be converted to individual joint enables, but that part seems to be missing.
If the rotary switch output is binary / bcd and you need to convert it to individual select bits then you can use weighted-sum and bitslice.
I thought that there was an existing HAL component for this, but I can't find it.
You can use a LUT5 per axis to do it (Or a bit-type mux-generic per axis)
Please Log in or Create an account to join the conversation.
28 Jun 2018 17:35 #113006
by lesureia
Replied by lesureia on topic MPG Mesa 7i73 im stuck
All this was done in pncconf so id figured it should take care of it.
but apperantly not i will be looking into this as soon as possible
/Rickard
but apperantly not i will be looking into this as soon as possible
/Rickard
Please Log in or Create an account to join the conversation.
29 Jun 2018 04:31 #113052
by lesureia
Replied by lesureia on topic MPG Mesa 7i73 im stuck
I changed this net axis-select-x => axis.x.jog-enable into this net joint-select-a => axis.x.jog-enable
And i got movement but i think i have to sort out my joints before i go further
But i got movement thats a step forward
/Rickard.L
And i got movement but i think i have to sort out my joints before i go further
But i got movement thats a step forward
/Rickard.L
Please Log in or Create an account to join the conversation.
29 Jun 2018 08:27 #113066
by cmorley
Replied by cmorley on topic MPG Mesa 7i73 im stuck
In pncconf on the external controls page, did you select external MPG jogging?
There you can choose selectable MPG increments, shared MPG and set your selectable increments.
Chris M
There you can choose selectable MPG increments, shared MPG and set your selectable increments.
Chris M
Please Log in or Create an account to join the conversation.
29 Jun 2018 08:44 #113067
by andypugh
Are you sure that that is correct?
Hint: Machine->Show HAL Config will let you add items to the "Watch" tab, and you can look at the "Signals" net joint-select-a / b / c / d and see what happens as you turn the knob.
There is a good change that the knob cycles through a binary sequence rather than setting one signal at a time.
Replied by andypugh on topic MPG Mesa 7i73 im stuck
I changed this net axis-select-x => axis.x.jog-enable into this net joint-select-a => axis.x.jog-enable
Are you sure that that is correct?
Hint: Machine->Show HAL Config will let you add items to the "Watch" tab, and you can look at the "Signals" net joint-select-a / b / c / d and see what happens as you turn the knob.
There is a good change that the knob cycles through a binary sequence rather than setting one signal at a time.
Please Log in or Create an account to join the conversation.
29 Jun 2018 09:54 #113072
by lesureia
Replied by lesureia on topic MPG Mesa 7i73 im stuck
You might be right on this one and then i suppose its the wrong switch for the job.
red off
yellow on
when selecting a it turns yellow
when selecting b it turns yellow with d
when selecting c it turns yellow
when selecting d it turns d and b yellow
/Rickard.L
red off
yellow on
when selecting a it turns yellow
when selecting b it turns yellow with d
when selecting c it turns yellow
when selecting d it turns d and b yellow
/Rickard.L
Please Log in or Create an account to join the conversation.
Time to create page: 0.132 seconds