Do you have any ideas on how the following will be done?
Suppose that we have "plasma cutting" and "plasma marking" torches, both to a machine.
First the marking should be done and after the cutting.
The G code has "macro" commands before and after marking.
The Zero point is given at the cutting torch.
So, before marking, there should be an offset movement (this will be the distance between cutting and marking at both axis).
And after marking, also there should be a movement back to the original values.
Has anybody faced that?
Any ideas would be helpfull.
I allready have tried the following:
This is before marking:
a=GetOEMDRO(83)
b=GetOEMDRO(84)
c=GetUserDRO(2012) 'axonas X offset plasma
d=GetUserDRO(2013) 'axonas y offset plasma
e=a+c
f=b+d
SetDro(0,e)
SetDro(1,f)
code "G0 X" &a
code "G0 Y" &b
While ismoving()
Wend
And this is after marking:
a=GetOEMDRO(83)
b=GetOEMDRO(84)
c=GetUserDRO(2012) 'axonas X offset plasma
d=GetUserDRO(2013) 'axonas y offset plasma
e=a-c
f=b-d
SetDro(0,e)
SetDro(1,f)
code "G0 X" &a
code "G0 Y" &b
While ismoving()
Wend