Hello Guest it is March 28, 2024, 03:51:08 PM

Author Topic: start from line #  (Read 13988 times)

0 Members and 1 Guest are viewing this topic.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: start from line #
« Reply #20 on: June 02, 2010, 07:16:33 PM »
IAN, Run from here does not work with plasma or jet cutting WITH a Top of material routine. The G28.1 or G31 throws a monkey wrench into the mix.

Also you must restart and stop the torch at each cut point.

I gave Amir a solution that we use here ,(Stop and restart as an auto function ran by screen buttons or hotkeys) actually gave him 2 solutions but they don't seems to work on his end  for some reason.

http://www.machsupport.com/forum/index.php/topic,14927.50.html
« Last Edit: June 02, 2010, 07:18:57 PM by BR549 »

Offline stirling

*
  • *
  •  2,188 2,188
  • UK
    • View Profile
    • www.razordance.co.uk
Re: start from line #
« Reply #21 on: June 03, 2010, 03:36:42 AM »
Hi Terry - I must have missed that thread - I didn't know the history behind this - nor that "Run from here" had issues - personally I've never used it - all my jobs run from start to finish no problem (yeah right ;D). Like I said it was "off the top of my head". I was really just trying to point out that the macropump wasn't the way to go for this one and why - which from your posts here I think you agree with!
At this point I'm a bit stumped because nothing that is suggested seems to cut the mustard for whatever reason. C'est la vie.

Cheers

Ian

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: start from line #
« Reply #22 on: June 03, 2010, 08:55:04 PM »
:-) LOL  HIYA Ian, we spend a LOT of time with new code proofing it to run correctly , but with plasma you never know when the torch will cough or sneeze and put the fire OUT. Then you have to stop and verify the torch and restart where you left off.

That was why we developed the stop/restart routine a time saver.

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: start from line #
« Reply #23 on: June 03, 2010, 11:18:23 PM »
Amir look in the MACH Macro Programmers Manual, Page 57. That will tell you what you need to know.

Re: start from line #
« Reply #24 on: June 04, 2010, 01:56:20 AM »
thx Terry
**Even a clock that does not work is right twice a day**
Re: start from line #
« Reply #25 on: June 05, 2010, 06:54:05 AM »
Amir look in the MACH Macro Programmers Manual, Page 57. That will tell you what you need to know.


i think you mean is : If IsActive(INPUT1) Then
                             code" M..."
                             End If
i test it,no change Compared to previous test .
result is same

i think When the code runs not possible Execute macro with External Button.
« Last Edit: June 05, 2010, 06:57:08 AM by manmardam »
**Even a clock that does not work is right twice a day**

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: start from line #
« Reply #26 on: June 05, 2010, 02:13:09 PM »
IT works just fine here. there is nothing wrong with the process just the application.
Re: start from line #
« Reply #27 on: June 05, 2010, 02:57:24 PM »
Let me for finishing this issue to the review it once again:

macropump :
C = GetOEMled (813)
D = GetOEMled (11)
If C And D Then
SetVar(604,GetDro(16))
SetUserDro(1200,Getvar(604))
End If

If IsActive(INPUT1) Then
Code"M650"
End If

M650 :

DoButton(1)                 'Feedhold
While IsMoving      'Wait for movement to stop
Sleep(100)
Wend
DoButton(3)      'Set Stop
Sleep(100)
SetDro(16,Getvar(604))
Sleep(100)
DoOEMButton(156)
Sleep(100)
DoButton(0)
Code"(You are now back to beginning contour )"
END

and setup input#1 Active low.
Only works in situations that are immobile axes.
Is this code on your PC to work properly?

Amir
**Even a clock that does not work is right twice a day**

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: start from line #
« Reply #28 on: June 05, 2010, 04:46:04 PM »
I don't know.

 I do not work on code that may endanger the operator or machine
Re: start from line #
« Reply #29 on: June 06, 2010, 01:37:31 AM »
You always pay the issue that this code is dangerous.
I explained that this code isnt dangerous, but You do not ignore.
I wanted to help you, ,why can not to the Trigger macro during the move axes(when i press cycle start) ?
After about 20 posts have not yet replied.
This one is special for me.
Thx Terry and another.
i am wait.

Amir
« Last Edit: June 06, 2010, 01:42:12 AM by manmardam »
**Even a clock that does not work is right twice a day**