Hello Guest it is April 19, 2024, 08:52:40 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 - Deon Gerber

Pages: « 1 2 3 4 5 6 7 »
51
General Mach Discussion / Re: Win a G-Rex ( Competition)
« on: February 04, 2006, 10:45:31 AM »
OK!!

After a couple of deleted posts lets try again.

Like I said before this is a first for me.... But lets give it a try.
Thanks
Deon

52
Hi Brian

EUREKA!!!!!!! Finally I think I've cracked it. I tried yours but it gave me a script error not on your part but right at the end of the complete script......End Sub. I'm not sure why?

In playing and shuffling it around I managed to get it working as I want it to. This is the changes I made......It may be a longer way or not a standard way but it works!!!!!!!

If  Tool = 0 Then
    Button = MsgBox("Possible wrong Tool!!!!! Would you like to change it???",4,"Lathe program error...")
   If Button = 7 Then
   End If
   If Button = 6 Then
   X = Question("Enter New Tool Number")
   Call SetUserDRO(1092,X)
   End If
End If


Just a word of encouragement to all out there that really would like to try his hand at making his own wizard, please go ahead and try.
Have a look at other wizards and try. It really is fun and satisfying. Like they say ,if at first you fail, try and try again.

There will always be someone on the forum willing to help. I personally knew nothing when I started out.

Once again Brian Thanks for the patience and help. Talk to you again soon.

Deon

53
Hi Brian

Well I am so glad to see you are a softy at heart that can look beyond someone else's mistakes .......THANKS.

I am still busy figuring it out.......I managed to sort out the YES Button. It now allows me change a field.... then it auto updates that DRO and carry on with the processing of the script.

I have not been successful with the NO button as yet, but I am working on it. At the moment it is aborting the processing of the script. What I am actually trying to accomplish is for it to cancel the warning and to continue with processing the script.
This is what I added to auto update the DRO.


If  Tool = 0 Then
    Button = MsgBox("Possible wrong Tool!!!!! Would you like to change it???",4,"Lathe program error...")
   If Button = 7 Then
   Exit Sub
   End If
   X = Question("Enter New Tool Number")
   Call SetUserDRO(1092,X)
   End If
   If Button = 6 Then
   End If

This is how far I am but I will keep on trying until I crack it.

Will let you know when I succeed.

Thanks
Deon


54
Hi Brian

I am so sorry about my ignorant comment about the size of the input field, I just had a quick look at it this morning. I don't mean to be full of crap. It seems like I was still asleep.
I do apologise.

Thanks
Deon

55
Hi Brian

First of all thanks for all your effort and patience in some of the silly questions I am asking. I really do appreciate it.

I tried the dialog box. The way it is presented is what I have in mind......The only change I would like is for the answer this box, I would like the answer field to be a bit longer so that you can work with more characters than a one.

The implementation though is not there yet. I need it to ignore the warning if you choose to. At the moment it loops and comes up again if you want to carry on. When choose to change a setting it does not update and also continue to loop.

Hope you understand what I am getting at.

Thanks
Deon

56
Hi Brian

It looks like I found away around my problem. The problem seems to be with the ticker. I REM'ed that specific one and the problem is gone. What I brought in as a safety device.......I have critical DRO's auto filled in by cross referencing to previous operations. This seems to work very well.(........Call SetUserDRO(1030,GetUserDRO(1084)+1)......)

Now How about that Dialog Box where the user can choose to validate or abort a setting.

Thanks a lot for your help.
Deon

57
So will it then be safe to say that UserDRO(1025) and UserLED(1025) will not clash in the same wizard........

And that UserDRO(1025) in the threading Wizard will not clash wth UserDRO(1025) in the Turn Wizard that I am busy making.

58
Hi Brian

Thanks ......

Can you just put something staight. I tried to get this cleared on the oyher forum but Art is very vague about this.
According to him there are only 254 UserDRO's and UserLED's. How are this implemented. I see in other wizards dro and led numbers like 1002 .....1098...... this is much higher than 254. Art tried to explain the implementation as ...1000,********* ,does mean you can start at 1000 and end at 1254.......

This is getting me in a knot.
Will UserDRO(1001) and UserLED(1001) clash or is this seen as two different OEMCodes. Both get spesified as OEMCODE 1001.

Do you get clashes of the same DRO numbers across different Wizards......Example UserDRO(1020) in a threading Wizard and UserDRO(1020) in another turn Wizard. If so I will have to go through all other wizards to see what has been used to see if I dont cross ref. I may sound a bit coo-coo but I have to know the nitty gritty to be sucsesfull in making a Wizard.

Thanks
Deon

59
Hi Brian

Let me try to explain what I am trying to do......

Material clamped in chuck.......Zero 10mm away from chuck
                                          OD of Stock = 50
                                    Length of Stock = 60

                 Tool Change Position = X100Z150

XStart (50) ZStart(60) is where my tool will go to after the tool change.
Now If I ignore XStart <= StockDia The command will be something like 

 G0 X49 Z59   Then I am going to crash!!!!!!!!

This is where the problem with DiaCheck also comes in .......If mach see DiaCheck as "1" XStart wil be divided by 2.

Now even if I enter XStart as 99 I will still get the error because devided by two it is 49.5 and will show as .......

XSrart(49.5) <= StockDia(50)     True or False. The same go's for the ZStart.....

You see this is realy getting screwed up now.

60
Hi Brian

I've just tried something very weird. I took my laptop and made a fresh Mach3 install. I made sure Diameter mode was set and all other values is Zero in the DRO's. I restarted and opened VBScipt editor and copied the VB file from my other PC( Just the Script.doc page #5, not the  complete Wizard) into VBScript editor.

Now My guess is that if I step into the program all values should be 0. Right!!!      Well not quit ...........Everything shows 0 except for FaceEnd(UserDRO1084) value 57 and of coarse Diacheck value 1.

Diacheck should show 2............ It looks like the values are getting trapped in the script.........

What do you think.

Pages: « 1 2 3 4 5 6 7 »