Hello Guest it is March 29, 2024, 03:07:40 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 - donrecardo

Pages: 1 2 »
1
General Mach Discussion / Re: Getting Outputs from Mach3
« on: January 31, 2013, 02:36:06 PM »
Hi Hood
            I appreciate that there is more than one way to write code but
as you have a lot of experience and I have very little I knew your code was
likely to be better than mine , but I wondered why it was better.

I sat looking at it trying to see what it did differently to mine , and then I
spotted it.  My code will show the increment size and the jog mode which
is what I required but of course when you are in continuous jpg mode then
increment size is irrelevent. Your code turns off the increment size LEDS when
in continuous jog but mine still showed the jog increment which is pointless

So thank you for the new code, which I will now use , but even more thank you for
the learning experience . I now know a little bit more than I did before.

Don

2
General Mach Discussion / Re: Getting Outputs from Mach3
« on: January 31, 2013, 12:33:24 PM »
Hi Hood

I tried running it but it didnt want to work . I was supposed to go out to a meeting  but
I found it so interesting I had to keep trying and eventualy got it working

I did all the jog increments first then did the jog mode afterwards

If GetOemDRO(828)=1Then
ActivateSignal (OutPut2)

Else
DeActivateSignal(OutPut2)
End If

If GetOemDRO(828)=0.1 Then
ActivateSignal (OutPut3)

Else
DeActivateSignal(OutPut3)
End If

If GetOemDRO(828)=0.01 Then
ActivateSignal (OutPut4)

Else
DeActivateSignal(OutPut4)
End If

If GetOemLED(14) Then
DeActivateSignal(OutPut5)
ActivateSignal(OutPut6)

Else
DeActivateSignal(OutPut6)
ActivateSignal(OutPut5)
End If     

Thank you so much for your help

Don

3
General Mach Discussion / Re: Getting Outputs from Mach3
« on: January 31, 2013, 11:00:43 AM »
Thanks Hood
 
I have to go to a meeting this evening so cant look at
it any more till tomorrow so will try it then.

Don

4
General Mach Discussion / Re: Getting Outputs from Mach3
« on: January 31, 2013, 09:36:40 AM »
Thanks Hood

I assume I would tack your  last post onto the end of the one before

like this

If GetOemDRO(828)=1 and GetOemLED(15) Then
ActivateSignal (OutPut1)
ActivateSignal (OutPut4)
Else
DeActivateSignal(OutPut1)
End If

If GetOemDRO(828)=0.1 and GetOemLED(15) Then
ActivateSignal (OutPut2)
ActivateSignal (OutPut4)
Else
DeActivateSignal(OutPut2)
End If

If GetOemDRO(828) and GetOemLED(15)=0.1 Then
ActivateSignal (OutPut3)
ActivateSignal(OutPut4)
Else
DeActivateSignal(OutPut3)
End If

If GetOemLE(14) Then
DeActivateSignal(OuPut4)
ActivateSignal(OutPut5)
Else
DeActivateSignal(OuPut5)
End If


Don

5
General Mach Discussion / Re: Getting Outputs from Mach3
« on: January 31, 2013, 08:38:36 AM »
IT WORKS !!! IT WORKS !!!  :D :D :D

Thanks to your help it is now working just as it should.
Now I shall see if I can work it out for myself how to do
the same with the  jog mode Step / Continuous indicators

I am assuming i will be looking for OEM codes for LEDs this time rather than DROs

Thanks for the help

Don

6
General Mach Discussion / Re: Getting Outputs from Mach3
« on: January 31, 2013, 08:06:24 AM »
Thanks for that ,
the video is running now , I feel pretty stupid not seeing it , but it was off
the bottom of the screen

went to open macropump.m1s  but I dont have one

have lots of others , spindlespeed , hiddenscript  and lots that start with m10, m11 m41 etc

should I just make a new one and call it macropump ?

Don

7
General Mach Discussion / Re: Getting Outputs from Mach3
« on: January 31, 2013, 07:55:14 AM »
Ah , you must have posted while I was writing my last post.

I will follow your instructions , but it would still be nice to be able to play the videos

Don

8
General Mach Discussion / Re: Getting Outputs from Mach3
« on: January 31, 2013, 07:53:59 AM »
I went to the machsupport page and clicked on
support then tutorial videos and clicked the link  Artsoft Video Tutorials

down the left of the page that appeared I clicked on
" Introduction to Macropumps"  but rather than get a video tutorial as I expected
I got a picture of the Mach3 screen

I feel daft now but , how do I get the video to play ?

Don

9
General Mach Discussion / Re: Getting Outputs from Mach3
« on: January 31, 2013, 07:40:07 AM »
Hi Hood
             Once again thanks for your help

Rather than just copy and use the help someone gives me I like to try and understand it so then just maybe
next time I can work it out for myself .

I am assuming that GetOemDRO(828)  is the little window that shows the jog increment  ?
How did you know it was 828 , is there a list that I havent found yet ?

So I think your code is saying if there is a one in the window , turn on output1
and if there isn't then turn output1 off

and the same for output2 with 0.1
and output3 with 0.01

That makes sense ( assuming my understanding is correct)

when you say output 1,2 or 3 I am guessing I will set that up in config/ports pins / outputs and give output#1 ,#2 or #3 the
port and pin numbers I have free

Now need to learn about Macro pump so I can implement your code. I guess there will be a tutorial or video somewhere ,
I shall go and look for it now

Thanks again Hood

Don



10
General Mach Discussion / Getting Outputs from Mach3
« on: January 30, 2013, 09:00:57 AM »
Hi
    I have a 5 axis breakout board but only use 3 axes, so I have some spare outputs ,
A step , A direction , A enable , B step, B direction and B enable

On my pendant I wish to have 3 LEDs to indicate the jog increment step 1mm , 0.1mm , 0.01mm
my plan was to use these spare outputs on the B.O.B  to drive the LEDs .

Can someone tell me if its possible and if so how I can get Mach3 to output 3 signals when the
1mm , 0.1 or 0.01 jog increment is enabled

I am ok at making inputs work  and I can see that an easy way around my problem might be to
design 3 buttons on screen and assign each one a hotkey and an OEM code in the range
191 -200 which I think are the jog steps in the list of ten on the config/general config page.
My Pendant has a keyboard encoder in it  so I could use  3 buttons to give me the hotkeys which
then trigger the OEM codes   

But I would sooner use ALT J to cycle through the jog increments and have LEDs indicate which is selected

Can it be done?

Don

Pages: 1 2 »