Hello Guest it is March 29, 2024, 11:56:55 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 - jgsturbo

Pages: « 1 2 3 »
11
VB and the development of wizards / G code program inside a g-code program?
« on: December 04, 2013, 02:29:54 PM »
Is there a way to load a g-code program inside a base program without mach loosing its place inside of the base program?
Kind of like calling up a sub-program but I would like it to be a separate file.

12
Mach Screens / Re: Display oem dro with math function in user dro
« on: December 02, 2013, 10:23:30 PM »
Nevermind, I got it.
My macropump.m1s looks like this...
Code: [Select]
value = GetOEMDRO(801) 
SetOEMDRO(803,value/0.008722222)

13
Mach Screens / Re: Display oem dro with math function in user dro
« on: December 01, 2013, 11:07:31 AM »
Any sample code?

14
Mach Screens / Display oem dro with math function in user dro
« on: December 01, 2013, 02:34:20 AM »
And do it in real time not on the push of a button?
I'm using a rotary axis setup as a normal axis based on circumference.
I thought it would be nice to see it in degrees too , in real time.
From what i read I'm dreaming... 

15
The carriage will need to move with a draw type tube bender and it will move at what ever speed pressure vs. the tube bending carries it. Then an encoder will re-establish the carriage location.

Basically I want to disable/re-enable the charge pump on one axis...

16
General Mach Discussion / Need help with a custom script, disable a motor?
« on: December 06, 2012, 01:13:06 AM »
I can't seem to find a command to disable a single axis charge pump.
I need to allow a single axis to be moved during a operation (tracked by an encoder) then re-enabled and its position update from the reading on the encoder DRO.

Any suggestions? Using a Gecko G540. The speed of the moving operation isn't really predictable either.

17
G-Code, CAD, and CAM discussions / Re: Digitizer output comand?
« on: November 04, 2012, 11:50:36 PM »
With some testing and such I think I like my original script/M-code.
I hooked it to a button in screen designer and the button is hooked to a hot-key.
Done, except I'm getting weird results but I have yet to actually wire in and setup the encoders so we'll see if that changes.

18
G-Code, CAD, and CAM discussions / Re: Digitizer output comand?
« on: November 04, 2012, 09:54:44 PM »
Seems simple enough to me, thanks a bunch!
Slowly learning VB script, very different from my usual bash script writing.
Anyway to get this to loop until say I call up an M30?


19
G-Code, CAD, and CAM discussions / Re: Digitizer output comand?
« on: November 04, 2012, 02:19:22 PM »
N/M
With some hacking and the power of google I've answered my own issue.
M103
Code: [Select]
Open "M:\digitize\currentproject.txt" For Append As #1
  X = GetDRO(170)
  Y = GetDRO(171)
  Z = GetDRO(172)
  Print #1, X,",",Y,",", Z
  Close #1
Now all I need to do is make an M103 button.

I do have one more question tho, can I hook this M-code to an input?

20
G-Code, CAD, and CAM discussions / Re: Digitizer output comand?
« on: November 04, 2012, 12:07:22 PM »
I've written some macros but I have no clue what the command to write the Encoder DROs to a file would look like.
I have a visual laser probe and once I have it aligned I would like to push a button or hotkey to write the cords.
Anybody care to post what the write command would look like>?

Pages: « 1 2 3 »