Machine stop working

More
13 Dec 2023 19:26 - 13 Dec 2023 19:28 #288065 by CNC_ANDI
Hello,
I have the following problem...
1. I load my G Code program
2. I start my Gcode program and cancel it.
3. I want to put away the tool in the spindle. Storage tool ind Carousel
4. Machine moves in front of the changer, moves into Z position and then nothing happens anymore.
5. I cancel with ESC.
6. I switch to manual
7. I press storage Tool again.
8. Now he storage the tool as usual.
WHY???

9. I load my program
10. I press load spindle safety with a tool.
11. I measure my zero point.
12. I press unload spindle and take out the tool.
13. I press program start.
14. The machine moved to the tool changer and moves to Z position.
15. The machine hangs in automatic mode and do nothing happens anymore.
16. I abort the program with ESC.
17. I restart the program.
18. Now everything is running as usual again.

Why does the machine always stay in one position and do nothing?

i think it´s not a problem with any ngc files. when the programm runs first time then it will run until the end....

Debian 12 with APT Probe_Basic Installation
but i Have tested it with my Debian 11 too... same problem
Last edit: 13 Dec 2023 19:28 by CNC_ANDI.

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

More
13 Dec 2023 20:24 #288068 by Lcvette
Replied by Lcvette on topic Machine stop working
Any messages?

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

More
13 Dec 2023 20:30 #288069 by CNC_ANDI
Replied by CNC_ANDI on topic Machine stop working
No nothing... thatś the problem... no error... no warning.... nothing

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

More
13 Dec 2023 20:35 #288070 by Lcvette
Replied by Lcvette on topic Machine stop working

Hello,
I have the following problem...
1. I load my G Code program
2. I start my Gcode program and cancel it.
3. I want to put away the tool in the spindle. Storage tool ind Carousel
4. Machine moves in front of the changer, moves into Z position and then nothing happens anymore.
5. I cancel with ESC.
6. I switch to manual
7. I press storage Tool again.
8. Now he storage the tool as usual.
WHY???

9. I load my program
10. I press load spindle safety with a tool.
11. I measure my zero point.
12. I press unload spindle and take out the tool.
13. I press program start.
14. The machine moved to the tool changer and moves to Z position.
15. The machine hangs in automatic mode and do nothing happens anymore.
16. I abort the program with ESC.
17. I restart the program.
18. Now everything is running as usual again.

Why does the machine always stay in one position and do nothing?

i think it´s not a problem with any ngc files. when the programm runs first time then it will run until the end....

Debian 12 with APT Probe_Basic Installation
but i Have tested it with my Debian 11 too... same problem

This sounds like it is hanging in the macro, maybe a wait for M66 not returning.  did you add abort messages when things time out? anywhere there is an M66 there should be an if statement with an abort message and it should stop the macro so everything clears and returns you to a normal state.  if you have no abort messages then you will get no feedback. it should look like this:

M64 P0 ; Move Carousel out
M66 P1 L3 Q5 ; check for carousel out sensor
o120 if [#5399 LT 0]
    M65 P0 ; switch off atc out solenoid
    (abort, ATC not in position)
o120 endif

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

More
13 Dec 2023 20:51 #288072 by CNC_ANDI
Replied by CNC_ANDI on topic Machine stop working
yes i have it. i have tested it with M01 breaks....

but the machine stops at the end of the Z move the next move is a Y Move
at this problem:
1. I load my G Code program
2. I start my Gcode program and cancel it.
3. I want to put away the tool in the spindle. Storage tool ind Carousel
4. Machine moves in front of the changer, moves into Z position and then nothing happens anymore.
5. I cancel with ESC.
6. I switch to manual
7. I press storage Tool again.
8. Now he storage the tool as usual.


and at this problem:
9. I load my program
10. I press load spindle safety with a tool.
11. I measure my zero point.
12. I press unload spindle and take out the tool.
13. I press program start.
14. The machine moved to the tool changer and moves to Z position.
15. The machine hangs in automatic mode and do nothing happens anymore.
16. I abort the program with ESC.
17. I restart the program.
18. Now everything is running as usual again.

the machine hangs on z with open drawbar and did not the next z move down....


but when the Programm is running it runs until the end without errors!

i think that problem is the change from manual to auto or back? i don´t know

here are the 2 files where the machine is hang off....
 

File Attachment:

File Name: m21.ngc
File Size:2 KB

 

File Attachment:

File Name: m22.ngc
File Size:2 KB


and my 2 Tested Gcode Files
 

File Attachment:

File Name: Versteifung2_a.ngc
File Size:58 KB

 

File Attachment:

File Name: Versteifung2_b.ngc
File Size:60 KB



by the way.... on this 2 gcode files the ATC Tool List shows me only the first tool who is needed....
when i delete the first 2 Operations with the first 2 Tools then the tool list shows me the rest of all needed tools
Attachments:

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

More
13 Dec 2023 20:57 #288074 by Lcvette
Replied by Lcvette on topic Machine stop working
add print dialogs at each point and run it linuxcnc in from terminal to see where it is stopping by the PRINT messages. that will tell you exactly where to check for an issue.

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

More
13 Dec 2023 20:59 #288075 by CNC_ANDI
Replied by CNC_ANDI on topic Machine stop working
ok. can you tell me how i do this? and i will do that...

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

More
13 Dec 2023 21:32 - 13 Dec 2023 21:34 #288078 by Lcvette
Replied by Lcvette on topic Machine stop working
Follow the examples in the toolchange ngc, just add a (PRINT, message text here) around each point near the failure. This will print to terminal when encountered in the subroutine.

Right click in the directory your ini file is located and select open terminal here.

In the terminal enter:

linuxcnc your_ini_file_name.ini

Click enter
Last edit: 13 Dec 2023 21:34 by Lcvette.
The following user(s) said Thank You: CNC_ANDI

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

More
14 Dec 2023 08:01 #288110 by CNC_ANDI
Replied by CNC_ANDI on topic Machine stop working
Ok thank you i will check this. So i add this print lines on every line in this 2 ngc files or only at the lines who the machine is stopping?

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

More
14 Dec 2023 13:24 #288125 by CNC_ANDI
Replied by CNC_ANDI on topic Machine stop working
got this message

cnc@debian:~/linuxcnc/configs/cnc_andi$ linuxcnc CNC-ANDI.ini
LINUXCNC - 2.9.0~pre1+git20230208.f1270d6ed7
Machine configuration directory is '/home/cnc/linuxcnc/configs/cnc_andi'
Machine configuration file is 'CNC-ANDI.ini'
Starting LinuxCNC...
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Note: Using POSIX realtime
twopass:invoked with <> options
twopass:found ./CNC-ANDI.hal
twopass:found ./handrad.hal
twopass:found ./custom.hal
twopass:pass0: loadusr -W hal_manualtoolchange
twopass:pass0: loadusr -W xhc-whb04b-6 -HsfB
twopass:pass0: loadusr -W vfdmod fulingvfd.ini

identityKinematicsSetup: coordinates:XYYZBC
   Joint 0 ==> Axis X
   Joint 1 ==> Axis Y
   Joint 2 ==> Axis Y
   Joint 3 ==> Axis Z
   Joint 4 ==> Axis B
   Joint 5 ==> Axis C
identityKinematicsSetup: Recommend: kinstype=both

hm2: loading Mesa HostMot2 driver version 0.15
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: 10.10.10.10: INFO: Hardware address (MAC): 00:60:1b:10:43:6d
hm2_eth: discovered 7I76E-16
hm2/hm2_7i76e.0: Low Level init 0.15
hm2/hm2_7i76e.0: Smart Serial Firmware Version 43
Board hm2_7i76e.0.7i76.0.0 Hardware Mode 0 = standard
Board hm2_7i76e.0.7i76.0.0 Software Mode 0 = io_spin
Board hm2_7i76e.0.7i76.0.0 Software Mode 1 = io_ana_spin
Board hm2_7i76e.0.7i76.0.0 Software Mode 2 = io_enc_ana_spin_fv
hm2/hm2_7i76e.0: 51 I/O Pins used:
hm2/hm2_7i76e.0:     IO Pin 000 (P1-01): StepGen #0, pin Direction (Output)
hm2/hm2_7i76e.0:     IO Pin 001 (P1-14): StepGen #0, pin Step (Output)
hm2/hm2_7i76e.0:     IO Pin 002 (P1-02): StepGen #1, pin Direction (Output)
hm2/hm2_7i76e.0:     IO Pin 003 (P1-15): StepGen #1, pin Step (Output)
hm2/hm2_7i76e.0:     IO Pin 004 (P1-03): StepGen #2, pin Direction (Output)
hm2/hm2_7i76e.0:     IO Pin 005 (P1-16): StepGen #2, pin Step (Output)
hm2/hm2_7i76e.0:     IO Pin 006 (P1-04): StepGen #3, pin Direction (Output)
hm2/hm2_7i76e.0:     IO Pin 007 (P1-17): StepGen #3, pin Step (Output)
hm2/hm2_7i76e.0:     IO Pin 008 (P1-05): StepGen #4, pin Direction (Output)
hm2/hm2_7i76e.0:     IO Pin 009 (P1-06): StepGen #4, pin Step (Output)
hm2/hm2_7i76e.0:     IO Pin 010 (P1-07): Smart Serial Interface #0, pin tx0 (Output)
hm2/hm2_7i76e.0:     IO Pin 011 (P1-08): Smart Serial Interface #0, pin rx0 (Input)
hm2/hm2_7i76e.0:     IO Pin 012 (P1-09): IOPort
hm2/hm2_7i76e.0:     IO Pin 013 (P1-10): IOPort
hm2/hm2_7i76e.0:     IO Pin 014 (P1-11): Encoder #0, pin Index (Input)
hm2/hm2_7i76e.0:     IO Pin 015 (P1-12): Encoder #0, pin B (Input)
hm2/hm2_7i76e.0:     IO Pin 016 (P1-13): Encoder #0, pin A (Input)
hm2/hm2_7i76e.0:     IO Pin 017 (P2-01): StepGen #5, pin Direction (Output)
hm2/hm2_7i76e.0:     IO Pin 018 (P2-14): StepGen #5, pin Step (Output)
hm2/hm2_7i76e.0:     IO Pin 019 (P2-02): StepGen #6, pin Direction (Output)
hm2/hm2_7i76e.0:     IO Pin 020 (P2-15): StepGen #6, pin Step (Output)
hm2/hm2_7i76e.0:     IO Pin 021 (P2-03): StepGen #7, pin Direction (Output)
hm2/hm2_7i76e.0:     IO Pin 022 (P2-16): StepGen #7, pin Step (Output)
hm2/hm2_7i76e.0:     IO Pin 023 (P2-04): StepGen #8, pin Direction (Output)
hm2/hm2_7i76e.0:     IO Pin 024 (P2-17): StepGen #8, pin Step (Output)
hm2/hm2_7i76e.0:     IO Pin 025 (P2-05): IOPort
hm2/hm2_7i76e.0:     IO Pin 026 (P2-06): IOPort
hm2/hm2_7i76e.0:     IO Pin 027 (P2-07): IOPort
hm2/hm2_7i76e.0:     IO Pin 028 (P2-08): IOPort
hm2/hm2_7i76e.0:     IO Pin 029 (P2-09): IOPort
hm2/hm2_7i76e.0:     IO Pin 030 (P2-10): IOPort
hm2/hm2_7i76e.0:     IO Pin 031 (P2-11): IOPort
hm2/hm2_7i76e.0:     IO Pin 032 (P2-12): IOPort
hm2/hm2_7i76e.0:     IO Pin 033 (P2-13): IOPort
hm2/hm2_7i76e.0:     IO Pin 034 (P3-01): IOPort
hm2/hm2_7i76e.0:     IO Pin 035 (P3-14): IOPort
hm2/hm2_7i76e.0:     IO Pin 036 (P3-02): IOPort
hm2/hm2_7i76e.0:     IO Pin 037 (P3-15): IOPort
hm2/hm2_7i76e.0:     IO Pin 038 (P3-03): IOPort
hm2/hm2_7i76e.0:     IO Pin 039 (P3-16): IOPort
hm2/hm2_7i76e.0:     IO Pin 040 (P3-04): IOPort
hm2/hm2_7i76e.0:     IO Pin 041 (P3-17): IOPort
hm2/hm2_7i76e.0:     IO Pin 042 (P3-05): IOPort
hm2/hm2_7i76e.0:     IO Pin 043 (P3-06): IOPort
hm2/hm2_7i76e.0:     IO Pin 044 (P3-07): IOPort
hm2/hm2_7i76e.0:     IO Pin 045 (P3-08): IOPort
hm2/hm2_7i76e.0:     IO Pin 046 (P3-09): IOPort
hm2/hm2_7i76e.0:     IO Pin 047 (P3-10): IOPort
hm2/hm2_7i76e.0:     IO Pin 048 (P3-11): IOPort
hm2/hm2_7i76e.0:     IO Pin 049 (P3-12): IOPort
hm2/hm2_7i76e.0:     IO Pin 050 (P3-13): IOPort
hm2/hm2_7i76e.0: registered
error deleting "/tmp/tmp_CNC-ANDI.hal": not owner
    while executing
"file delete $::TP($name)"
    invoked from within
"if $::tp::nodelete {
      verbose "nodelete: $::TP($name)"
    } else {
      verbose "deleting: $::TP($name)"
      file delete $::TP($name)
    }"
    (procedure "::tp::pass1" line 13)
    invoked from within
"::tp::pass1"
    (file "/usr/lib/tcltk/linuxcnc/twopass.tcl" line 768)
    invoked from within
"source $filename"
    invoked from within
"set result [source $filename]"
    (file "/usr/bin/haltcl" line 42)
Shutting down and cleaning up LinuxCNC...
vfdmod: close request received.
hm2_eth: in hm2_eth_reset
hm2_eth: HostMot2 ethernet driver unloaded
hm2: unloading
vfdmod: application closed.
Note: Using POSIX realtime
LinuxCNC terminated with an error.  You can find more information in the log:
    /home/cnc/linuxcnc_debug.txt
and
    /home/cnc/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
 

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

Moderators: KCJLcvette
Time to create page: 0.122 seconds
Powered by Kunena Forum