Padovani LE-200 Retrofit

More
4 years 9 months ago #232731 by DoWerna
Replied by DoWerna on topic Padovani LE-200 Retrofit
The lathe has mechanical handwheels which, when pressed, are directly connected to the ball screw.

Is there a configuration possible in linuxcnc where I can deactivate the axis drives while the machine is still switched on in order to move the axes manually in the meantime.

So for example to probe, zeroing, and then program start.


regarding the mesa cards
7i92 I have already there
additionally a 7i77 would actually cover the need for IOs for the machine.

available seems to be only the version with sinking outputs anyway, I have to wire the relays accordingly.

could apparently acquire the last 7i77 with sourcing outputs :-)

so it will be a 7i77 sourcing :-)

Please Log in to join the conversation.

More
4 years 9 months ago #232885 by DoWerna
Replied by DoWerna on topic Padovani LE-200 Retrofit
I made a small test setup to test a possible manual operation.

7i92 drives a stepper with encoder, the encoder gives feedback directly to linuxcnc.

Attachment not found


So a closed loop setup.

Haven't found a way to turn off the servo  driver without the axis going into ferror when you move the servo too far.

Only possibility I found is to turn off the machine.
The dro still works.

However, with the machine turned off, I obviously have no spindle and no coolant.

Search has also found only one topic.
www.forum.linuxcnc.org/38-general-linuxc...manual-combo-machine

 

Please Log in to join the conversation.

More
4 years 9 months ago #232927 by DoWerna
Replied by DoWerna on topic Padovani LE-200 Retrofit
yesterday I wrote a small Hal logic.

a hal pin that disables the drive.
the falling edge from the same pin turns the machine off, to prevent the machine from moving back to the last given position.
With ferror set high everything worked as intended.

Then wanted to assign different ferrors with mux2 depending on the machine state.

Unfortunately, the ferror is read directly from the ini and is not available as hal pin.
So I can not change the ferror on the fly


Translated with www.DeepL.com/Translator (free version)

Please Log in to join the conversation.

More
4 years 9 months ago #232953 by dgarrett
Replied by dgarrett on topic Padovani LE-200 Retrofit
>Unfortunately, the ferror is read directly from the
>ini and is not available as hal pin.
>So I can not change the ferror on the fly

linuxcnc.org/docs/html/man/man1/milltask.1.html

Please Log in to join the conversation.

More
4 years 9 months ago #232997 by DoWerna
Replied by DoWerna on topic Padovani LE-200 Retrofit
oha I have to take a look at that,
thanks!

Please Log in to join the conversation.

More
4 years 9 months ago #233018 by DoWerna
Replied by DoWerna on topic Padovani LE-200 Retrofit
Thank you, that was the decisive tip.
I have now got it working.

Please Log in to join the conversation.

More
4 years 9 months ago #233107 by DoWerna
Replied by DoWerna on topic Padovani LE-200 Retrofit
This is how I have now implemented the manual mode in the test setup

For the simplicity of it, I used the pin of the cooling to activate it.

net coolant-flood <= iocontrol.0.coolant-flood
net coolant-flood not.1.in
net coolant-flood edge.0.in
net coolant-flood mux2.0.sel

net coolant-flood.not not.1.out
net coolant-flood.not and2.0.in1
net x-enableand and2.0.in0 joint.0.amp-enable-out

net x-enable <= and2.0.out

setp mux2.0.in0 1
setp mux2.0.in1 1000
(postgui) net mux2out ini.0.min_ferror mux2.0.out

setp edge.0.in-edge true
net shut-off edge.0.out halui.machine.off







 

Please Log in to join the conversation.

More
4 years 9 months ago #233290 by DoWerna
Replied by DoWerna on topic Padovani LE-200 Retrofit
documented the test setup with a shaky cell phone video

Please Log in to join the conversation.

More
4 years 9 months ago #233495 by DoWerna
Replied by DoWerna on topic Padovani LE-200 Retrofit
have set up a small keyboard matrix.
on P1
with a small Matrix-PCB

strangely it does not output the rows correctly
when i bridge button r0c0 on the board key.r1c0 is set high

button r6c0 outputs key r0c0.

have checked all the wiring, should be correct
this applies to the complete row.
so everything one row offset.

 

Attachment not found



hal:

setp hm2_7i92.0.gpio.017.is_output true
setp hm2_7i92.0.gpio.018.is_output true
setp hm2_7i92.0.gpio.019.is_output true
setp hm2_7i92.0.gpio.020.is_output true
setp hm2_7i92.0.gpio.021.is_output true
setp hm2_7i92.0.gpio.022.is_output true
setp hm2_7i92.0.gpio.023.is_output true

#matrix out
net matrix_panel.row_00_sig-out matrix_panel.row-00-out => hm2_7i92.0.gpio.017.out
net matrix_panel.row_01_sig-out matrix_panel.row-01-out => hm2_7i92.0.gpio.018.out
net matrix_panel.row_02_sig-out matrix_panel.row-02-out => hm2_7i92.0.gpio.019.out
net matrix_panel.row_03_sig-out matrix_panel.row-03-out => hm2_7i92.0.gpio.020.out
net matrix_panel.row_04_sig-out matrix_panel.row-04-out => hm2_7i92.0.gpio.021.out
net matrix_panel.row_05_sig-out matrix_panel.row-05-out => hm2_7i92.0.gpio.022.out
net matrix_panel.row_06_sig-out matrix_panel.row-06-out => hm2_7i92.0.gpio.023.out
#matrix in
net matrix_panel.col_00_sig-in  matrix_panel.col-00-in  <= hm2_7i92.0.gpio.024.in
net matrix_panel.col_01_sig-in  matrix_panel.col-01-in  <= hm2_7i92.0.gpio.025.in
net matrix_panel.col_02_sig-in  matrix_panel.col-02-in  <= hm2_7i92.0.gpio.026.in
net matrix_panel.col_03_sig-in  matrix_panel.col-03-in  <= hm2_7i92.0.gpio.027.in
net matrix_panel.col_04_sig-in  matrix_panel.col-04-in  <= hm2_7i92.0.gpio.028.in
net matrix_panel.col_05_sig-in  matrix_panel.col-05-in  <= hm2_7i92.0.gpio.029.in
net matrix_panel.col_06_sig-in  matrix_panel.col-06-in  <= hm2_7i92.0.gpio.030.in

 

Please Log in to join the conversation.

More
4 years 9 months ago #233523 by DoWerna
Replied by DoWerna on topic Padovani LE-200 Retrofit
 

Attachment not found



This is how the matrix get read.

​​​​​​Rows have have a offset.
is this normal?

Please Log in to join the conversation.

Time to create page: 0.073 seconds
Powered by Kunena Forum