Editing gcode subroutine in gmoccappy locks up program

More
10 years 1 week ago #81930 by george4657
Its a semi-colon not a colon for comments.

Downloaded camotics and it worked good so thanks for that info.
It even works in windows which is where I do my development work as I only have linux on my shop cnc machines.
Thanks
George

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

More
10 years 1 week ago #81934 by newbynobi
Hallo,

sorry you had problems with gmoccapy. Unfortunately the editor is incorporated in gmoccapy, I do not see a way to check if the code will run or not, as "my" editor only passes the code to the interpreter and that one will hang in the infinite loop. I you know C++, you might be able to add such a very recommended feature into that component.

Norbert

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

More
10 years 1 week ago #81989 by andypugh

george4657 wrote: I there anyway to crash out of the editor without closing cnc program.


Try "ESC"

Also, your code samples have no O200 ENDSUB to terminate the subroutine.

I think that O200 might even be calling itself recursively in your examples.

O200 CALL [10] will pass 10 in #1. Your loops are using #3, which will (probably) remain as zero throughout.

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

More
10 years 1 week ago #82049 by george4657
I tried esc as well as other keys with no success.
Sub problems as shown are from cut and paste of example. Could not figure how to attach actual file.
I no longer have a problem because I now know that LT is "Lesser than" not "Larger than" and while loops can not be called by themselves but must be called within a sub
I now develop using program camotics as recommended by Todd.
This program has a simulation mode and runs in windows a well a linux and does not lock up with endless loop.

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

Moderators: newbynobi, HansU
Time to create page: 0.137 seconds
Powered by Kunena Forum