- Posts: 265
- Thank you received: 40
Retrofitting a 1986 Maho MH400E
- drimaropoylos
- Offline
- Elite Member
-
Less
More
6 years 7 months ago #159943
by drimaropoylos
Replied by drimaropoylos on topic Retrofitting a 1986 Maho MH400E
I thing it will work, disconnect the (gearbox) motors and check while you make the first attempt so you wont crush the gearbox.
John
John
- RotarySMP
- Offline
- Platinum Member
-
Less
More
- Posts: 1635
- Thank you received: 595
6 years 7 months ago #160201
by RotarySMP
Replied by RotarySMP on topic Retrofitting a 1986 Maho MH400E
There is also a Simulator in github, so you should first run changes to the gearbox comp through that ti test them.
Mark
Mark
- RotarySMP
- Offline
- Platinum Member
-
Less
More
- Posts: 1635
- Thank you received: 595
6 years 6 months ago #164160
by RotarySMP
Replied by RotarySMP on topic Retrofitting a 1986 Maho MH400E
I wrote a short program (attached) to surface and trim the end of piece of stock, but made a typo in the fourth to last line.
instead of
When I tried to load the file, LinuxCNC tried to verify it, and got in an infinite loop. Is there are more elegant way to recover from this than hard rebooting the machine?
Mark
Code:
o100 endwhile
Code:
o110 endwhile
When I tried to load the file, LinuxCNC tried to verify it, and got in an infinite loop. Is there are more elegant way to recover from this than hard rebooting the machine?
Mark
- andypugh
- Offline
- Moderator
-
Less
More
- Posts: 19899
- Thank you received: 4655
6 years 6 months ago #164169
by andypugh
"Esc" should work, but may take a while.
Replied by andypugh on topic Retrofitting a 1986 Maho MH400E
RotarySMP wrote: When I tried to load the file, LinuxCNC tried to verify it, and got in an infinite loop. Is there are more elegant way to recover from this than hard rebooting the machine?
Mark
"Esc" should work, but may take a while.
The following user(s) said Thank You: RotarySMP
- RotarySMP
- Offline
- Platinum Member
-
Less
More
- Posts: 1635
- Thank you received: 595
6 years 6 months ago #164190
by RotarySMP
Replied by RotarySMP on topic Retrofitting a 1986 Maho MH400E
I just did it again. This time again a conditional loop:
C = -1
while [x GT Y]
x = [x-C]
So the thing looks until a number drops below another one, but it starts higher and increments by minus a negative number, therefore increasing to infinity. What an idiot!
I tried ESC, but after 3 minutes, still no response. I hate hard rebooting it all the time. Should learn to be more careful at coding.
Mark
C = -1
while [x GT Y]
x = [x-C]
So the thing looks until a number drops below another one, but it starts higher and increments by minus a negative number, therefore increasing to infinity. What an idiot!
I tried ESC, but after 3 minutes, still no response. I hate hard rebooting it all the time. Should learn to be more careful at coding.
Mark
- Mike_Eitel
- Offline
- Platinum Member
-
Less
More
- Posts: 1051
- Thank you received: 183
6 years 6 months ago #164191
by Mike_Eitel
Replied by Mike_Eitel on topic Retrofitting a 1986 Maho MH400E
Silly idea: what happens when you trigger a linit switsch
Moderators: piasdom
Time to create page: 0.343 seconds