Hello Guest it is December 08, 2019, 07:26:56 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - TPS

1291
Hi rhtuttle,

i think now what you tryed to do.
Pause is not working because there is no movement.

Try this:

Code: [Select]
Sub main
  'Domed Winding check
  '0.5614 fixture diameter
  '0.2804 fixture radius
  '0.725 Raw NickelBlank Dia
  Message "(Mount back cut tool)"
  DoOEMButton(1003)
  WaitForStart

    DoOEMButton(1003)
  Message "(Jog to Fixture surface)"
  WaitForStart

  ' Set Z to Fixture Radius
  setDro(0,0.2807)
  DoOEMButton(1003)
  Message "(Mount Front Cut Tool, position to back edge of mounted nickel)"
  WaitForStart

  setDro(2,0.000)
  ' set spindle speed to 400
  DoOEMButton(1003)
  Message "(Turn Spindle on to 400RPM)"
  WaitForStart

  code "m3 S400"
  code "g01 f2 x0.285"
  code "g0 x0.3625"
  While Ismoving()
   sleep(200)
  Wend
  
  DoOEMButton(1003)
  Message "(stop spindle)"
  WaitForStart
  code "M5"

  Message "(finshed)"
  
End Sub
 
Sub WaitForStart
Sleep(300)
While Not GetLed(4) 'check Start LED
Sleep(200)
Wend
End Sub



Thomas

1292
OK let's try,

first of all let's get a resadble code:

Sub main
  'Domed Winding check
  '0.5614 fixture diameter
  '0.2804 fixture radius
  '0.725 Raw NickelBlank Dia
  DoOEMButton(1001)
  code "(Mount back cut tool)"
  systemWaitFor(restart)
  DoOEMButton(1001)
  Code "(Jog to Fixture surface)"
  systemWaitFor(restart)
  ' Set Z to Fixture Radius
  setDro(0,0.2807)
  DoOEMButton(1001)
  code "(Mount Front Cut Tool, position to back edge of mounted nickel)"
  systemWaitFor(restart)
  setDro(2,0.000)
  ' set spindle speed to 400
  DoOEMButton(1001)
  Code "(Turn Spindle on to 400RPM)"
  code "m3 S400"
  systemWaitFor(restart)
  code "g01 f2 x0.285"
  code "g0 x0.3625"
  code "M5"
  DoOEMButton(1001)
  code "(stop spindle)"
  systemWaitFor(restart)
End Sub

main  

ok let's do some documentaion's to the code


Sub main
  'Domed Winding check
  '0.5614 fixture diameter
  '0.2804 fixture radius
  '0.725 Raw NickelBlank Dia
  DoOEMButton(1001)
  code "(Mount back cut tool)"   'what does this code mean ?? ???
  systemWaitFor(restart)            'where/or what is restart  ???
  DoOEMButton(1001)
  Code "(Jog to Fixture surface)" 'what does this code mean ?? ???
  systemWaitFor(restart)            'where/or what is restart  ???
  ' Set Z to Fixture Radius
  setDro(0,0.2807)
  DoOEMButton(1001)
  code "(Mount Front Cut Tool, position to back edge of mounted nickel)"  'what does this code mean ?? ???
  systemWaitFor(restart)             'where/or what is restart  ???
  setDro(2,0.000)
  ' set spindle speed to 400
  DoOEMButton(1001)
  Code "(Turn Spindle on to 400RPM)"  'what does this code mean ?? ???
  code "m3 S400"
  systemWaitFor(restart)   'where/or what is restart  ???
  code "g01 f2 x0.285"
  code "g0 x0.3625"
  code "M5"
  DoOEMButton(1001)
  code "(stop spindle)"     'what does this code mean ?? ???

  systemWaitFor(restart)       'where/or what is restart  ???

End Sub

main  

i am just talkin like MACH3 processor.

Thomas

if you try to get an answer post the real code.


1293
Brains Development / Re: Brains writing wrong values to DRO's
« on: March 10, 2015, 04:27:15 PM »
Hi Bob,

But I do appreciate the help given by guys like you and Thomas, even if it wasn't directed at me.  I wish I had just some of the knowledge you guys have on this subject, I wouldn't have spent so many months fumbling my way through it.

all of the knowlege, i have got of this system (ok sometimes it's not very much), i got on the same route you do for the moment.


it was all try and error.

Thomas

1294
General Mach Discussion / Re: Toggle output from button input?
« on: March 10, 2015, 11:03:54 AM »
ok got it now.

Thomas

1295
General Mach Discussion / Re: Toggle output from button input?
« on: March 10, 2015, 08:28:00 AM »
Hello Ian,

- it's just trigger MACROS that have the "turned up late for work" problem).

sorry my english is to bad to translate ("turned up late for work" problem) this correctly, could you please explain ?

Thank You Thomas

1296
General Mach Discussion / Re: Toggle output from button input?
« on: March 10, 2015, 07:07:41 AM »
Hello Ian,

thank you for this information, never tryed this.

So the only possibilities during running the machine will be

macropump and brain (but brains are also courious sometimes).

Thomas

1297
General Mach Discussion / Re: Toggle output from button input?
« on: March 10, 2015, 04:40:08 AM »
Hi Bob,

looks like i have missed some posts yesterday.
glad to read that you got the Macropump running.

if you whant to try out other thing#s just let us know,
and we will give you a hand to find the way.

Thomas

1298
General Mach Discussion / Re: Toggle output from button input?
« on: March 09, 2015, 04:06:56 PM »
ok cncbobuk,

i am not a friend of the macropump road.
can i get you into my OEMTRIGGER road as described in my small tutorial (PDF) ?

yust let me know.

Thomas

1299
CS-Lab / Re: Csmio/IP-A drives
« on: March 09, 2015, 04:03:01 PM »
Hi Hood,

never meet you, but i think we are on the same road.
CSLAB is IMHO one of the most not "experiemental" controlers on this road.
(rest over PM)


Also a good resource on using the I/O

http://www.cs-lab.eu/en/index.php?m=article&show&aid=128&uinfo=Digital_and_analog_IOs__configuration__its_easy#IPA


Hood

1300
General Mach Discussion / Re: new button and led
« on: March 09, 2015, 03:54:33 PM »
ok,
hard road,
open your screen in screedesigner (witch ever your use).
go to bottom of this vb macro,(by double click on the vb code,)
and enter setoemled(whateveryouwhanttosetoemled).

LIVE IS DIFFICULT.

Thomas