Problem machining with Linuxcnc 2.8.0 and Linux Mint 19.3.
- aparecido
- Offline
- Premium Member
Less
More
- Posts: 99
- Thank you received: 6
29 Jun 2021 15:37 #213243
by aparecido
Problem machining with Linuxcnc 2.8.0 and Linux Mint 19.3. was created by aparecido
Computer:
Power Supply 250W
Motherboard PCware Model IPM31
Memory: 4GB (2GB DDR2 800MHZ+2GB DDR2 800MHZ)
HD Sata Toshiba 80GB
Processor: Core2duo E7500 2.93Ghz
Operating System: Linux Mint 19.3
Linuxcnc version 2.8.0
Machine:
CNC Control Board: CNC3AX
Stepper motors: 9kg
Ballscrew:16mm 5 ppr
Linear guides 16mm linear with pillow block
I have tested the mechanics using MDI, sending the machine to a
certain point and then returning to zero for each axis at various
speeds, it works correctly.
I created a G code for her to machine a 2mm plastic square ('plastic'
photo file), to test the machine and set it up to go removing 0.5mm of
material at each step and in the third step, she lost step machining
in stitch incorrect and maintained this positioning until the end, is
highlighted in red in the photo.
I generated the code to machine a pcb through Eagle 7.4 and
PCB2Gcode, when I tried to machine the board it also lost positioning,
overlapping the tracks as highlighted in yellow and blue in the photo,
which was where the problem was more visible.
Some time ago I machined a wooden frame (naval plywood) to put a
speaker, the machine machined without problem and it can be seen in
the "wood" photo. I used Autocad to draw the part and then Artcam to
create the Gcode.
I also machined some pcbs and had no problem, it's
in the picture "pcb ok", which incidentally, I'm trying to machine
another identical board using the same gcode file and now it's giving
the problem I'm reporting.
What could be causing this error?
Power Supply 250W
Motherboard PCware Model IPM31
Memory: 4GB (2GB DDR2 800MHZ+2GB DDR2 800MHZ)
HD Sata Toshiba 80GB
Processor: Core2duo E7500 2.93Ghz
Operating System: Linux Mint 19.3
Linuxcnc version 2.8.0
Machine:
CNC Control Board: CNC3AX
Stepper motors: 9kg
Ballscrew:16mm 5 ppr
Linear guides 16mm linear with pillow block
I have tested the mechanics using MDI, sending the machine to a
certain point and then returning to zero for each axis at various
speeds, it works correctly.
I created a G code for her to machine a 2mm plastic square ('plastic'
photo file), to test the machine and set it up to go removing 0.5mm of
material at each step and in the third step, she lost step machining
in stitch incorrect and maintained this positioning until the end, is
highlighted in red in the photo.
I generated the code to machine a pcb through Eagle 7.4 and
PCB2Gcode, when I tried to machine the board it also lost positioning,
overlapping the tracks as highlighted in yellow and blue in the photo,
which was where the problem was more visible.
Some time ago I machined a wooden frame (naval plywood) to put a
speaker, the machine machined without problem and it can be seen in
the "wood" photo. I used Autocad to draw the part and then Artcam to
create the Gcode.
I also machined some pcbs and had no problem, it's
in the picture "pcb ok", which incidentally, I'm trying to machine
another identical board using the same gcode file and now it's giving
the problem I'm reporting.
What could be causing this error?
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19484
- Thank you received: 6533
29 Jun 2021 21:39 #213274
by tommylight
Replied by tommylight on topic Problem machining with Linuxcnc 2.8.0 and Linux Mint 19.3.
--CNC Control Board: CNC3AX
Stepper motors: 9kg--
The above is not helping, so a picture might be better.
Things to check:
-binding or locking on the rails and screws by detaching motors and slowly moving parts of the machine by hand feeling for raised resistance
-drives set to too low current for the required force
-drives set to too much current
-to much vibration from the spindle while cutting
-to much flex on moving parts
-loose motor wires
Stepper motors: 9kg--
The above is not helping, so a picture might be better.
Things to check:
-binding or locking on the rails and screws by detaching motors and slowly moving parts of the machine by hand feeling for raised resistance
-drives set to too low current for the required force
-drives set to too much current
-to much vibration from the spindle while cutting
-to much flex on moving parts
-loose motor wires
The following user(s) said Thank You: aparecido
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23170
- Thank you received: 4860
30 Jun 2021 12:01 #213335
by andypugh
Replied by andypugh on topic Problem machining with Linuxcnc 2.8.0 and Linux Mint 19.3.
It is possible that a coupling is slipping under load. Make a reference mark on the coupling and shaft to check this.
The error in the plastic part looks to me more than a single step, but it is possible that the motor stalled for a moment. It looks like it might have stalled at a point where both motor were turning, is the power supply adequate to run both motors at full current (This should not actually be necessary, there is some wiggle room as generally you don't run all the motors at full current at the same time)
The error in the plastic part looks to me more than a single step, but it is possible that the motor stalled for a moment. It looks like it might have stalled at a point where both motor were turning, is the power supply adequate to run both motors at full current (This should not actually be necessary, there is some wiggle room as generally you don't run all the motors at full current at the same time)
The following user(s) said Thank You: aparecido
Please Log in or Create an account to join the conversation.
- aparecido
- Offline
- Premium Member
Less
More
- Posts: 99
- Thank you received: 6
30 Jun 2021 14:46 - 01 Jul 2021 01:33 #213346
by aparecido
Replied by aparecido on topic Problem machining with Linuxcnc 2.8.0 and Linux Mint 19.3.
tommylight
The rails, spindles, motors are well fixed, I can move the frame over the guides using only my fingers without problem.
I can also move it by turning the spindle using only my fingers.
I had already checked the current setting, it is correct for the motor I am using, which is 2A.
Also already checked wire loose or poorly connected, everything is ok.
andypugh
The coupling is also tight, not slipping.
From what it seems to me, the error only occurs when a single axis is moving, in the pcb on diagonal tracks, there was no problem.
The source is adequate yes, I made it following the recommendations of the control board.
I ran the latency test script and it returned the following:
Core 0: +31.0°C (high = +76.0°C, crit = +100.0°C)
Core 1: +27.0°C (high = +76.0°C, crit = +100.0°C)
Note: Using POSIX realtime
8 secs base min: -11.800 uS max: 13.700 uS sdev: 1.300 uS
8 secs servo min: -18.400 uS max: 18.600 uS sdev: 1.900 uS
9 secs base min: -12.900 uS max: 13.700 uS sdev: 1.200 uS
9 secs servo min: -18.400 uS max: 18.600 uS sdev: 2.000 uS
Core 0: +32.0°C (high = +76.0°C, crit = +100.0°C)
Core 1: +27.0°C (high = +76.0°C, crit = +100.0°C)
11 secs base min: -14.100 uS max: 14.100 uS sdev: 1.200 uS
11 secs servo min: -18.400 uS max: 18.600 uS sdev: 2.100 uS
12 secs base min: -16.300 uS max: 14.100 uS sdev: 1.300 uS
12 secs servo min: -18.400 uS max: 18.600 uS sdev: 2.000 uS
14 secs base min: -16.300 uS max: 15.600 uS sdev: 1.300 uS
14 secs servo min: -18.400 uS max: 18.600 uS sdev: 2.000 uS
15 secs base min: -16.300 uS max: 15.600 uS sdev: 1.300 uS
Core 0: +32.0°C (high = +76.0°C, crit = +100.0°C)
Core 1: +27.0°C (high = +76.0°C, crit = +100.0°C)
15 secs servo min: -18.400 uS max: 18.600 uS sdev: 2.000 uS
Unexpected realtime delay on task 0 with period 25000
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
16 secs base min: -24.800 uS max: 41.100 uS sdev: 1.300 uS
16 secs servo min: -19.200 uS max: 19.800 uS sdev: 1.900 uS
18 secs base min: -24.800 uS max: 41.100 uS sdev: 1.300 uS
18 secs servo min: -19.200 uS max: 19.800 uS sdev: 1.900 uS
19 secs base min: -24.800 uS max: 41.100 uS sdev: 1.300 uS
19 secs servo min: -20.300 uS max: 19.800 uS sdev: 1.900 uS
21 secs base min: -24.800 uS max: 41.100 uS sdev: 1.200 uS
Core 0: +35.0°C (high = +76.0°C, crit = +100.0°C)
Core 1: +28.0°C (high = +76.0°C, crit = +100.0°C)
21 secs servo min: -20.300 uS max: 19.800 uS sdev: 1.900 uS
22 secs base min: -24.800 uS max: 41.100 uS sdev: 1.200 uS
22 secs servo min: -20.300 uS max: 19.800 uS sdev: 1.900 uS
24 secs base min: -24.800 uS max: 41.100 uS sdev: 1.200 uS
24 secs servo min: -20.300 uS max: 19.800 uS sdev: 1.900 uS
25 secs base min: -24.800 uS max: 41.100 uS sdev: 1.200 uS
25 secs servo min: -20.300 uS max: 19.800 uS sdev: 1.900 uS
I didn't quite understand the reason for the red message. I ran the manual test, leaving several programs open with about 7 glxgears windows and latency did not exceed 33us.
This control board I use is a chopper with L297 and 74LS09 connected to the PC's parallel port.
News:
I made some changes, changed the L297 default values in the time setting:
Step time L297 500ns > Step time 2000ns
Step space L297 4000ns > Step time 4500ns
Direction hold L297 4000ns > Direction hold 4500ns
Direction setup L297 1000ns > Direction setup 2000ns
And I ran this code 3 times in a row, making the machine go to zero point just before starting to run the first time, at the end of the third time it ran, it returned to zero point correctly without losing position at any time.
As it is now late here to do more tests, tomorrow I will try to machine another pcb and see what happens.
The rails, spindles, motors are well fixed, I can move the frame over the guides using only my fingers without problem.
I can also move it by turning the spindle using only my fingers.
I had already checked the current setting, it is correct for the motor I am using, which is 2A.
Also already checked wire loose or poorly connected, everything is ok.
andypugh
The coupling is also tight, not slipping.
From what it seems to me, the error only occurs when a single axis is moving, in the pcb on diagonal tracks, there was no problem.
The source is adequate yes, I made it following the recommendations of the control board.
I ran the latency test script and it returned the following:
Core 0: +31.0°C (high = +76.0°C, crit = +100.0°C)
Core 1: +27.0°C (high = +76.0°C, crit = +100.0°C)
Note: Using POSIX realtime
8 secs base min: -11.800 uS max: 13.700 uS sdev: 1.300 uS
8 secs servo min: -18.400 uS max: 18.600 uS sdev: 1.900 uS
9 secs base min: -12.900 uS max: 13.700 uS sdev: 1.200 uS
9 secs servo min: -18.400 uS max: 18.600 uS sdev: 2.000 uS
Core 0: +32.0°C (high = +76.0°C, crit = +100.0°C)
Core 1: +27.0°C (high = +76.0°C, crit = +100.0°C)
11 secs base min: -14.100 uS max: 14.100 uS sdev: 1.200 uS
11 secs servo min: -18.400 uS max: 18.600 uS sdev: 2.100 uS
12 secs base min: -16.300 uS max: 14.100 uS sdev: 1.300 uS
12 secs servo min: -18.400 uS max: 18.600 uS sdev: 2.000 uS
14 secs base min: -16.300 uS max: 15.600 uS sdev: 1.300 uS
14 secs servo min: -18.400 uS max: 18.600 uS sdev: 2.000 uS
15 secs base min: -16.300 uS max: 15.600 uS sdev: 1.300 uS
Core 0: +32.0°C (high = +76.0°C, crit = +100.0°C)
Core 1: +27.0°C (high = +76.0°C, crit = +100.0°C)
15 secs servo min: -18.400 uS max: 18.600 uS sdev: 2.000 uS
Unexpected realtime delay on task 0 with period 25000
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
16 secs base min: -24.800 uS max: 41.100 uS sdev: 1.300 uS
16 secs servo min: -19.200 uS max: 19.800 uS sdev: 1.900 uS
18 secs base min: -24.800 uS max: 41.100 uS sdev: 1.300 uS
18 secs servo min: -19.200 uS max: 19.800 uS sdev: 1.900 uS
19 secs base min: -24.800 uS max: 41.100 uS sdev: 1.300 uS
19 secs servo min: -20.300 uS max: 19.800 uS sdev: 1.900 uS
21 secs base min: -24.800 uS max: 41.100 uS sdev: 1.200 uS
Core 0: +35.0°C (high = +76.0°C, crit = +100.0°C)
Core 1: +28.0°C (high = +76.0°C, crit = +100.0°C)
21 secs servo min: -20.300 uS max: 19.800 uS sdev: 1.900 uS
22 secs base min: -24.800 uS max: 41.100 uS sdev: 1.200 uS
22 secs servo min: -20.300 uS max: 19.800 uS sdev: 1.900 uS
24 secs base min: -24.800 uS max: 41.100 uS sdev: 1.200 uS
24 secs servo min: -20.300 uS max: 19.800 uS sdev: 1.900 uS
25 secs base min: -24.800 uS max: 41.100 uS sdev: 1.200 uS
25 secs servo min: -20.300 uS max: 19.800 uS sdev: 1.900 uS
I didn't quite understand the reason for the red message. I ran the manual test, leaving several programs open with about 7 glxgears windows and latency did not exceed 33us.
This control board I use is a chopper with L297 and 74LS09 connected to the PC's parallel port.
News:
I made some changes, changed the L297 default values in the time setting:
Step time L297 500ns > Step time 2000ns
Step space L297 4000ns > Step time 4500ns
Direction hold L297 4000ns > Direction hold 4500ns
Direction setup L297 1000ns > Direction setup 2000ns
And I ran this code 3 times in a row, making the machine go to zero point just before starting to run the first time, at the end of the third time it ran, it returned to zero point correctly without losing position at any time.
As it is now late here to do more tests, tomorrow I will try to machine another pcb and see what happens.
Last edit: 01 Jul 2021 01:33 by aparecido. Reason: add more information
Please Log in or Create an account to join the conversation.
- aparecido
- Offline
- Premium Member
Less
More
- Posts: 99
- Thank you received: 6
01 Jul 2021 21:13 #213455
by aparecido
Replied by aparecido on topic Problem machining with Linuxcnc 2.8.0 and Linux Mint 19.3.
Looks like it got better, I made the board just now, the tracks were ok, I just think I set the forward speed too high and ended up breaking a little piece of the tip of the V bit.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23170
- Thank you received: 4860
03 Jul 2021 22:31 #213605
by andypugh
Replied by andypugh on topic Problem machining with Linuxcnc 2.8.0 and Linux Mint 19.3.
A 500nS step time is possibly a little close to the limits. You probably will see no loss of performance with it increased.
Thw output shows a realtime delay in a 25µs thread. Then you say that your max latency is 33µs. That might not be unexpected.
Thw output shows a realtime delay in a 25µs thread. Then you say that your max latency is 33µs. That might not be unexpected.
The following user(s) said Thank You: aparecido
Please Log in or Create an account to join the conversation.
- aparecido
- Offline
- Premium Member
Less
More
- Posts: 99
- Thank you received: 6
03 Jul 2021 22:34 #213606
by aparecido
Replied by aparecido on topic Problem machining with Linuxcnc 2.8.0 and Linux Mint 19.3.
Andypugh thanks for answering, can you explain to me in more detail, i can't quite understand your answer.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23170
- Thank you received: 4860
03 Jul 2021 22:51 #213612
by andypugh
Replied by andypugh on topic Problem machining with Linuxcnc 2.8.0 and Linux Mint 19.3.
You say that you don't understand a thread overrun in a 25µs thread. Then you state that the max latency is 33µs.
Why do you expect a 25µs thread to not over-run with 33µs latency?
Why do you expect a 25µs thread to not over-run with 33µs latency?
The following user(s) said Thank You: aparecido
Please Log in or Create an account to join the conversation.
- aparecido
- Offline
- Premium Member
Less
More
- Posts: 99
- Thank you received: 6
03 Jul 2021 22:59 #213614
by aparecido
Replied by aparecido on topic Problem machining with Linuxcnc 2.8.0 and Linux Mint 19.3.
In the case of this L297 default step time setting, you mean that this value is very close to the component's limit and with that there may be failures, and that increasing this value will not interfere so much with the performance of the pc and the control board, right?
About the latency time, I ran the latency test through the script here on the forum and how I got the impression that it ended quickly and also returned this message:
Unexpected realtime delay on task 0 with period 25000
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
I ran the next Linuxcnc latency test and it returned a value of 33uS, so I put in 35uS.
About the latency time, I ran the latency test through the script here on the forum and how I got the impression that it ended quickly and also returned this message:
Unexpected realtime delay on task 0 with period 25000
This Message will only display once per session.
Run the Latency Test and resolve before continuing.
I ran the next Linuxcnc latency test and it returned a value of 33uS, so I put in 35uS.
Please Log in or Create an account to join the conversation.
Time to create page: 0.064 seconds