Hello Guest it is April 25, 2024, 10:31:14 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 - Deon Gerber

Pages: « 1 2 3 4 5 6 7
61
Hi Brian

I mailed you the Script.

Thanks
Deon

62
Hi Brian

Finally it looks like my logging problems solved. My firewall and cookies seem to have been the problem. Well back to our thread....
Yes the file save works very nice.

The following is a thread I posted on the Yahoo group. I haven't got a answer yet, so I will post it here as well.

I'm busy doing a wizard that consist of about nine (9) pages.
My current setup equals Mac 3 Lathe ver 00.46. Diameter mode.

On page three (3) I do a facing cut. I have a ticker set to warn of
a toolcrash........

If XStart < = StockDia then
setTicker 20, "******WARNING*****"
Exit Sub
End If

setTicker 20, ""

Diacheck = 1
If IsDiameter() = 1 Then
XEnd = XEnd / 2
XStart = XStart / 2
DiaCheck = 2
End If

When stepping into the program with VBScipt editor and moving the cursor over the following ,This is the value being displayed
XStart Value = 51 StockDia = 48
Diacheck = 2

On this page everything works fine without any VB errors.

On page 5 I've got a similar setup for a OD Cut.

I've got the same ticker setup with the same values, but on this page I get the ticker warning. In trying to solve this problem I ran
this script over and over in the VB Script Editor. I found that the value for diacheck gets displayed as 1 and then all X Values are
halved. This readings is intermediate, but I always get the same
ticker warning.

This is what brought up the Art Code 9991 error.

During the whole testing process nothing on my side gets altered or changed .All Mach3 setup values stay the same.It looks like the Diameter mode gets changed on the inside of Mach or something.

Hope you can help me with this.
 
One other thing........Will it be possible to pop up a warning box where the user can choose to carry on or abort instead of the ticker that just aborts the process. A scenario comes to mind for internal turning where you can turn inside the chuck body past the safe zone for external turning.

Thanks for all your help.
Regards
Deon

63
Me again

The save button . Where do you normaly put this. At the start page or at the end page.

Thanks
Deon

64
Hi Brian

Thanks for all the help. I realy do apreciate it. One last question befor I log of.

I have not as yet tried this but just for info , will it be possible to do safty alert with the ticker acros different pages in a wizard.

Thanks Again

Deon

65
Hi Brian

You are a star. The Script runs like a dream adding everything together. Now last problem to solve.......The ability for the user to specify his own file name.

You must help because my head is full of holes solving the previous one.

Thanks
Deon

66
Hi Brian

One other thing I noticed was that when going from the first to the second operation, the code and tool pathe dispay window of the second operation is empty .
The first operation are not displayed. Thats why I think it gets overwrited.

Thanks
Deon

67
Hi Brian

Well this is how I am doing so far. Here follow some snips of VB I am using wth comments next to them in brackets. The comments is not included in the script , Thye are there for you to see what I am up to.


OpenTeachFile "turn.tap"
CloseTeachFile                                          (Button for adding user file name)
call LoadTeachFile()

OpenTeachFile "turn.tap"
Call DoOEMbutton (2)                               (Selecting first operation) 

OpenTeachFile "turn.tap"
Code "G18 G40 G49 G90 G94 G80"         (Starting Code for first operation)
G0 X100Z150
Code "M3"

G0 X100Z150
Code "M5"
CloseTeachFile
Call LoadTeachFile()                                  (End and posting Code for first operation)
Call DoOEMbutton(1)
End Sub

OpenTeachFile  "turn.tap"
Call LoadTeachFile()                                  (Selecting second operation)
Call DoOEMButton (3)

call LoadTeachFile()
appendTeachFile "turn.tap"
G0 X100Z150                                             (Starting code for second operation)
Code "M3"

G0X100Z150
Code "M5"
Code "M30"
CloseTeachFile                                           (Ending and posting second operation)
Call LoadTeachFile
End Sub
Main

Well now for what is hapening when I run the wizard. At the moment there are no VB errors given when run.

1.   The script for the File name button seems to work but I can't see some physical evedence of that. Again I guese it only uses the name in the script . As you said we will look at giving a user to enter a name at a later stage.

2.   It looks like the second operation over writes the first operation when posting. Maybe my sequence or somthing els is wrong.

Please have a look and get me on the right track.

Thanks
Deon

68
Hi Brian

Thanks for the time and effort in trying to help. I also downloaded the VBScript manual at machsupport.com. I will see how far I get before getting stuck and will then again give you a shout.

Thanks
Deon ;D

69
General Mach Discussion / Wizard and VB Script questions (Brian Barker)
« on: January 13, 2006, 03:58:07 PM »
Hi all

Art ......First question for you! Is there a way of adding a user field for naming the file that he will be busy with ,instead of using the default name inside the vb script in the wizard.

The other questions are for any other members that are willing to help!!
I am busy with a specialised wizard for my company's use, it consist of three different simple operations.This is operations we use every day but to different measurements.
I've made three different pages in Screen designer to set the measurements. They are almost without bugs when used separately.

Now my problem.........I would love to throw all three's G code
together when exiting from the posting from the wizard instead of taking time to copy and paste.

The little I know about VB and wizards come from looking at other and then trying on my own, so I don't know as much as it sounds like.

Can some one assist me in some sample VB to link to pages and operations together.

Any help will be greatly appreciated.
Thanks for a stunning forum.

Deon Gerber.
 ???

Pages: « 1 2 3 4 5 6 7