Weird problem happening during g71, g70 cycle

More
1 year 4 months ago #330764 by Hobbymate
Thanks for answering. When i run this code from examples its do. G21 G54 G18
F400

O100 SUB
G0 X10 Z0
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 P3
O101 ENDSUB

O101 CALL

M2
When from this code i delete G72 line G70 working fine . But when i change G72 to G71 Linuxcnc freezing . Can someone direct me to right path. How to run G71 .
.

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

More
1 year 3 months ago #331710 by andypugh
I wouldn't expect G71 and friends to accept REPEAT/ENDREPEAT in the profile subroutine. It parses G1,G2,G3 commands into a profile internally then creates a toolpath to cut that profile.
I am not even sure that it can be expected to correctly read #<_x> etc.
The following user(s) said Thank You: Hobbymate

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

More
1 year 2 months ago #332872 by Hobbymate
Hi. Do you have some code with this subroutine working? If possible, can you share? I use Notepad++ to make sure the file is in UTF-8 without BOM, but I get the same problems. Thanks.

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

More
1 year 2 months ago #333669 by andypugh
Look at the files in the sample directory. They should be already part of your installation, but you can also see them here:
github.com/LinuxCNC/linuxcnc/tree/master/nc_files
Look at the lathe_g7* files.

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

Time to create page: 0.088 seconds
Powered by Kunena Forum