Hi,
I've been tinkering arround now for a few days but can't figure out how to to this. Also my VB skills are way too poor for that.
I want my working cycle look like this:
-Insert First Tool
-Zero Axis on the working Plane including Z
-Start the program (generated with vectric aspire)
-Wait for M6Start command (on the M6start it drives over the ToolLength Sensor / Tool changing position)
-don't change tool because I already isnerted the first
- Press "Start "
- Z-Axis lowers to find Offset of tool
-Returns to workpiece and starts milling
->
Next tool and M6 command
Drive to changing position
manually change tool
Press start
Auto Measure
Return
and so on
But I keep getting problems with Offset etc,.
And I also can't really figure out what would be the safest way of doing this?
Has anyone got some ready to use scripts for this? or any advice?
I actually use this to measure the tool length:
Code:
If GetOEMDRO (24) <>0 Then
SetOEMDRO(1216,GetOEMDRO(83))
SetOEMDRO(1217,GetOEMDRO(84))
Code "G0G53 Z" & GetOEMDRO(54)
While IsMoving()
Wend
code "g0 g53 x" & GetOEMDRO(1218)
While IsMoving()
Wend
code "g0 g53 y" & GetOEMDRO(1219)
While IsMoving()
Wend
code "g0 g53 z" & GetOEMDRO(1220)
While IsMoving()
Wend
code "g31 z-1000 f500"
While IsMoving()
Wend
code "g53 g0 z" & GetOEMDRO(85)+3
While IsMoving()
Wend
code "g31 z-1000 f50"
While IsMoving()
Wend
Z_Shift = GetOEMDRO (1221)
Axis_Pos = GetOEMDRO(85)
Tool_Offset = Axis_Pos - Z_Shift
Call setOEMDRO(42, Tool_Offset)
Code "G0G53 Z" & GetOEMDRO(54)
Code "G0G53 X" & GetOEMDRO(1216)
Code "G0G53 Y" & GetOEMDRO(1217)
Else
MsgBox "Keine Werkzeug-Nummer gewählt",0
End If
Thanks,
Max