Hello Guest it is October 20, 2021, 07:09:30 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 - fragger6662000

Pages: 1 2 3 4 »
1
VB and the development of wizards / Re: Tool Path Generation Error
« on: July 21, 2012, 09:18:57 AM »
you are not understanding my point

if you embed the code in a g-code program it carries out a preproses of the code before it runs.

that then prevents further action or running of the code.

2
VB and the development of wizards / Re: Tool Path Generation Error
« on: July 20, 2012, 09:59:33 AM »
the m1000 macro would contain the code

If Not (door open) then
message "ERROR, DOOR NOT OPEN"
DoButton(1)
Whle Ismoving()
Wend
dobutton(3)
END
END IF

or is there a better way of calling the macro.

3
VB and the development of wizards / Re: Tool Path Generation Error
« on: July 20, 2012, 02:12:39 AM »
create a g-code program that call the macro and try and run it.


G code
g1z10
g1 x10 y10
m1000 (macro call)
g1x0y0
m30
%

4
VB and the development of wizards / Re: Tool Path Generation Error
« on: July 19, 2012, 04:21:08 PM »
but the issue is that when the macro is called in the gcode the end will not allow the gcode to pre-process and there for run.

5
VB and the development of wizards / Tool Path Generation Error
« on: July 17, 2012, 09:06:31 AM »
I have macros that have branches with END statements which rely on captured data from the machine to make them work.

the issue is that when i load a toolpath into mach these branches are causing the machine to stop processing the toolpath.

The simplest example is if you had a door which opens during tool change, and you check that it is open before changing the tool.

i have tried the following

if _____
else

message "ERROR"
code "M0"
dobutton(3)
END

END IF

the do button 3 just generated and error, I am trying to activate cycle stop but vb manual does not refference it.

the end cause the program not to generate so it cannot be run

6
VB and the development of wizards / Re: Stopping macro VB script
« on: July 16, 2012, 03:18:08 PM »
Great so not

STOP

But

END

Thanks

7
VB and the development of wizards / Re: Stopping macro VB script
« on: July 16, 2012, 02:52:02 PM »
All i want to do is stop the macro process and gcode program with it stopping the pre processing

I have already have the protected moves working.

8
VB and the development of wizards / Re: Stopping macro VB script
« on: July 16, 2012, 02:46:16 PM »
i have not got the code here but this is how it works

set #100#101 #102 to the xyz position you want to go to.

then call the macro EG M1000

in M1000

get #100 #101 #102

code "g31x" #100 "y" #101 "z" #102 "f1000"

then i compare the finished position with the DRO position

if the error on any axis is >100um then you can assume the probe has hit some thing.

so if the target = the dro then continue
else

STOP THE process.

9
VB and the development of wizards / Re: Stopping macro VB script
« on: July 16, 2012, 02:15:48 PM »
I am created the protected move by using a g31 X Y Z
then comparing the current position with the target position.

if the difference between the target is greater than 0.1mm for example you know that the probe has been triggered

so then i want to stop the macro

i have tried

message "path obstrujected"
code "M0"

but this seams not to work and the M0 is ignored.

I have tried

STOP

but then nothing happened

10
VB and the development of wizards / Stopping macro VB script
« on: July 16, 2012, 06:46:55 AM »
Hi

I am trying to carry out a protected move macro so if i move the machine and the probe hit something it will stop.

I have got the macro to work by comparing the target position and the g31 triggered position but cannot get the macro to stop exicuting

i have tried

code "m0" and Dooembutton(3)

if i do the second i cannot gcode program to load when loading.

I am trying to get the cycle to work in this manor

#100=0 (x position)
#101=0 (y position)
#102=0 (z position)
M1000 (is the protected move macro)

thanks

Pages: 1 2 3 4 »