Hello Guest it is March 28, 2024, 04:37:20 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.


Topics - ggagnon

Pages: 1
1
Hi,

With Mach4 screen editor I create a button that I called setCamOffset and two dros called droCamX and droCamY.

When I click the button I want the actual XY coordinates of the tool to be copied to my dros like:

droCurrentX --> droCamX

droCurrentY ==> droCamY

I wrote the following script for the button (without the line numbering):

1. local inst = mc.mcGetInstance()
2. local Xcoords = scr.GetProperty("droCurrentX","Value")
3. local Ycoords = scr.GetProperty("droCurrentX","Value")
4. scr.SetProperty(inst,"droCamX",tostring(Xcoords))
5. scr.SetProperty("droCamY",tostring(Ycoords))

Problem:  Nothing is being written to my dros .

What is wrong with this script? Do I even use the right functions for the job?

Thanks for your time,
Gaston

--

http://public.fotki.com/Gaston-Gagnon/

2
Mach4 General Discussion / how to press a button within a script
« on: May 15, 2019, 08:53:08 PM »
Newbie to mach4 coding here, sorry :-\

What function can I use to actuate one of the jogging buttons: x+,x-,y+,y-,z+,z- as if I was using the mouse but from within a script?
Thanks,
Gaston
 
 

3
Mach3:
Is there a way or a function to enable/block a button programmatically in a macro so it is not clikable?
Thanks,
Gaston

4
Brains Development / Low Spindle Speed limit
« on: August 18, 2008, 01:50:52 PM »
New to brains.
I would like to prevent (or stop in an orderly manner) execution whenever the spindle rpm is lower that the a certain % of set speed.
The objective is to prevent scrapping a job if the spindle slows down abnormally after many hours of work.
How would you do this with a brains?
Gaston Gagnon
 

Pages: 1