I have problem to get work mine machine toolchange script. (i'm very rookie of it) Also mine english is not the bestest, but i hope you understand what i mean.
What i need is: i have 3 tools on z axis, 2 routers and saw. Each have air cylinder for plunge tool whitch is active.
when change tool then moves to safe z:
T1 M6. Then is should activate output4(output 5 an 6 must be deactivated)
T2 M6 Activate output5 (output 4 an 6 must be deactivated)
Tool offset x-120
T3 M6 Activate output6 (output 4 an 5 must be deactivated)
Tool offset x-240
Z-tool offsets i want to edit in offsets tab
I have started to make but it not work. Is it possiable to make this way?
M6start:
OldTool = GetCurrentTool() 'get old tool number
NewTool = GetSelectedTool() 'get new tool number
SafeZ = GetParam("SafeZ") 'get Safe Z ht, from Config>SafeZ setup
If (GetOemLed(807) Or GetOemLed(808) Or GetOemLed(809)) Then 'Check all axes referenced
Message(" Please Home Machine before Tool Change")
DoButton(3) 'Cycle Stop
Sub
Select Case ToolNumber
Case Is = 1
ActivateSignal(Output4)
DeActivateSignal(Output5)
DeActivateSignal(Output6)
Case Is = 2
ActivateSignal(Output5)
DeActivateSignal(Output4)
DeActivateSignal(Output6)
Case Is = 3
ActivateSignal(Output6)
DeActivateSignal(Output4)
DeActivateSignal(Output5)
End Select