Problem when running G7X codes in linux 2.9

More
27 Jun 2023 23:30 #274345 by kt600v
Hello eveyone, I´ve recently updated linuxcnc from 2.6 to 2.9 because we need to use G70, G71, codes.
When trying to run any of the 3 examples for G7X, I get  this error messages . (pictures attached).
I could not figure out the cause of this, so far, any idea or suggestions are very welcome.

 
Attachments:

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

More
30 Jun 2023 16:59 #274527 by andypugh
The underlying problem is that the G-code is in feed-per-rev mode and the spindle is not running.

Can you attach the G-code as a text file rathe than a picture (we can't see the top few lines to see if there is an M3 Snnn command or not)

I don't know why Gmoccappy is also erroring-out. It seems to be unhappy with the format of the error string. This might actually be an artefact of translation. What system locale (in Linux) are you using?
The following user(s) said Thank You: kt600v

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

More
04 Jul 2023 14:44 #274748 by kt600v
I installed linuxcnc in english languaje but I changed it into spanish a few days later.

Here is the gcode, it´s an example that comes with linuxcnc 2.9:

G21 G54 G18
F400

O100 SUB
G0 X0 Z-10
O101 REPEAT [3]
G1 X[#<_x>+5] Z[#<_Z>+3]
G1 X[#<_x>+5]
O101 ENDREPEAT
O100 ENDSUB

O101 SUB
G72 Q100 X1 Z1 D0.5 I1 R0.3
G70 Q100 X1 Z1 D0.5 P2
O101 ENDSUB

O101 CALL

M2

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

More
04 Jul 2023 14:54 #274750 by andypugh
I don't think that sample code is a good example. It seems to me to obfuscate the operation of the cycles.
The REPEAT/ENDREPEAT is also a bit obscure for a sample code.

Try:

G21 G54 G18
F400

O100 SUB
G0 X0 Z-10
O101 REPEAT [3]
G1 X[#<_x>+5] Z[#<_Z>+3]
G1 X[#<_x>+5]
O101 ENDREPEAT
O100 ENDSUB


M3 S300
G72 Q100 X1 Z1 D0.5 I1 R0.3
G70 Q100 X1 Z1 D0.5 P2


M2
The following user(s) said Thank You: kt600v

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

Time to create page: 0.169 seconds
Powered by Kunena Forum