Hello Guest it is May 04, 2024, 12:23:32 AM

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 - Graham Waterworth

1271
VB and the development of wizards / Re: VB commands needed for tooltable
« on: December 30, 2009, 03:21:06 PM »
Try it more like this :-

CT=GETDRO(24)
DTX=GETTOOLparam(CT ,5)
TWx=GetUserDRO(1201)
NV=((TWX/2)*-1)+DTX
SetToolparam(CT, 5, NV)
DoButton(316)

Graham

1272
General Mach Discussion / Re: mach3 Gear DC motor control.
« on: December 30, 2009, 01:13:26 PM »
In ports and pins set Output1,2,3,4 to the port and pin for your motor signals.

Use some of Mach3's M codes e.g. M3, M4, M8, M9, modify the macro in the VB editor to ActivateSignal(Input1) and DeActivateSignal(Input1)

For example :-

'M3 macro
ActivateSignal(Output1)
sleep 100
code "G4 P1000" ' wait 1 second
sleep 1000
while ismoving()
wend
DeActivateSignal(Output1)
sleep 100

Just do this for each M code and save them back changing the Output1 to whichever one you are using.

This may not be perfect but its a starting point.

Graham

1273
General Mach Discussion / Re: HELP...One more driver installation problem
« on: December 30, 2009, 12:56:42 PM »
Are you using XP and are you logged in as an administrator?

Is the LPT port enabled with in the OS and working properly?

Has the computer got a printer driver trying to send a file to the LPT port?

A fresh install of XP may be needed, I had one with old dongle software on that tested for the darn thing every few milliseconds, new install cured it.

Graham

1274
VB and the development of wizards / Re: steps per by VisualBasic
« on: December 30, 2009, 12:25:42 PM »
I would just set up another profile using your current one as a template.

Machine Standard

and

Machine Rotary

Graham

1275
VB and the development of wizards / Re: VB commands needed for tooltable
« on: December 30, 2009, 11:59:55 AM »
GetToolParam(SHORT toolnum, SHORT param) for tool parameters.

Param numbers are 1 - n and correspond to the tool window in the mill or turn modes. In turn for example, 1 is TipDia, 2 is Tip Radius. Etc.

And to put it back use :-

SetToolParam(SHORT toolnum, SHORT param, DOUBLE data)

Then you must re-store the tool table by doing a DoButton(316) "save tool table"

This is all from memory as I am not at my normal computer, errors may be included free of charge  ;D

Graham

1276
Only thing I can see is the laser macro exits with a G90, most probing routines use G91, yours selects nether as an operating mode.

Graham

1277
From a new start of Mach3 what happens when you run the ZTP macro 2 or 3 time in a row without the laser macro?

Graham

1278
General Mach Discussion / Re: How can a CNC machine save time?
« on: December 26, 2009, 06:29:18 PM »
 ;D  ;D  ;D  ;D  ;D  ;D

1279
General Mach Discussion / Re: CABIN FEVER EXPO - 2010
« on: December 26, 2009, 06:21:10 PM »
Russ,

I have been to IMTS years ago, I may go in 2010 if the rest of the gang are going.

Graham.

1280
General Mach Discussion / Re: How can a CNC machine save time?
« on: December 26, 2009, 06:13:58 PM »
Twangggggggg,  sorry my violin just bust  ;D