OK first it is a BAD idea to call a macro from a macro with Code"" . Bad things can happen. There IS a way to do it check the latest manual for MACRO progamming .
If you need to switch back to Abs mode do it with Code" G90" I just tried it it works fine here in a turn macro.
(;-) TP
Hi , I thank you for replying , I tired first without calling macro in macro , but when I run out of ideas I tried to in macro call macro like in picture just so I can verify/determine what is going on, does G90 have any influence.
I made new movie so you can see what is going on
https://www.youtube.com/watch?v=gMtDIiEhH3ghere is code of
m111
Code " G90 "
Code "G91G01 Y9 F40"
While isMoving()
If (IsActive(Input1)) Then
DoOEMButton(1003)
Code " G90 "
End If
Wend
I tried like this too
Code " G90 "
Code "G91G01 Y9 F40"
While isMoving()
If (IsActive(Input1)) Then
DoOEMButton(1003)
End If
Wend
Code " G90 "
But does not help
And here is code for tool change (I need to solve problem with G91 to G90 switching there too, but I guess if some one help me to solve problem in m111 I will know how to change by myself.
This is M6Start.m1s
Code " G90 "
Message "Previous tool was " &GetCurrentTool ()
OldTool= GetCurrentTool ()
NewTool = GetSelectedTool ()
SetCurrentTool (NewTool)
a=GetSelectedTool - OldTool
If (a = 1) Or (a = -7) Then
Code "G91G01 Y1.251 F200"
Code "G91G01 Y-0.201 F10"
While IsMoving()
Wend
End If
If (a = 2) Or (a = -6) Then
Code "G91G01 Y2.301 F200"
Code "G91G01 Y -0.201 F10"
While IsMoving()
Wend
End If
If (a =3) Or (a = -5) Then
Code "G91G01 Y3.351 F200"
Code "G91G01 Y -0.201 F10"
While IsMoving()
Wend
End If
If (a =4) Or (a = -4) Then
Code "G91G01 Y4.401 F200"
Code "G91G01 Y -0.201 F10"
While IsMoving()
Wend
End If
If (a =5) Or (a = -3) Then
Code "G91G01 Y5.451 F200"
Code "G91G01 Y -0.201 F10"
While IsMoving()
Wend