Hello Guest it is March 01, 2021, 12:01:15 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 - TPS

91
General Mach Discussion / Re: Problem with soft limits settings.
« on: January 29, 2021, 11:49:52 AM »
Google for

three finger rule or right hand rule

than you can see what is "normal"

92
basicly i removed the G91 from the G31 code line, had some Problems by using G90/91 in same line
with G31 in the past.

93
made some changes, see wether they help, keep a copy of your existing code!!

Code: [Select]
'X/Y/Z referenced?
If getoemled(807) Or getoemled(808) Or getoemled(809) Then 'Kontrolli kas nullimise ledid polevad
DoOEMBUTTON(1021)
MsgBox "Teljed nullimata"
Exit Sub
End If

'probe input allready active
If GetOemled(825) <> 0 Then
DoOEMBUTTON(1021)
MsgBox "Testi raadioandurit"
Exit Sub
End If

XWork = GetOEMDRO(800)  ' Get Current X Work Coordinate
YWork = GetOEMDRO(801)  ' Get Current Y Work Coordinate
XMachine = GetOemDRO(83)  ' Get Current X Machine Coordinate
YMachine = GetOemDRO(84)  ' Get Current Y Machine Coordinate
ZMachine = GetOemDRO(85)    ' Get Current Z Machine Coordinate

Code "G49" ' cancel tool lenght offset
Code "G0 G53 Z-1" ' Home Z
code "G53 X216.90 Y3069.85" ' Move into Probe Pos ***EDIT HERE***
DoOEMButton(179) ' machine coordinates
Tool_Number = GetDRO(24) ' get actual Tool number

'fast probe
code "G31 Z-200 F300" ' Z liigub alla 300 mm kuni probini
While IsMoving()
Sleep(30)
Wend

code "G91 G0 Z10" ' Z liigub üles 10  mm
Code "G90"
While IsMoving()
Sleep(30)
Wend


'slow probe
code "G31 Z-15 F20" ' Z liigub alla 15 mm kuni probini
While IsMoving()
  Sleep(10)
Wend

If Tool_Number = 0 Then ' Master tool Cal
z = GetOEMDRO(85) ' get Machine ZPos
Call SetOEMDRO(49,z) ' Set g54 z offset
Else
Call SetDRO(24,0) ' Turn off the tool offset by loading tool #0
Height = GetDRO(2) ' Get the pos of the Z axis without the Tool comp on
Call SetDRO(24,Tool_Number) ' Turn the tool Back on so the offset will go to the
Call SetoemDRO(42,Height) ' Set the Tool Height offset
End If

DoOEMButton(181) ' back To program coordinates
code "G0 G90 G53 Z-1  F1000"
code "G43"
While IsMoving()
Sleep 10
Wend

Code "G0 X" & XWork & " Y" & YWork ' Returns to the previous XY job location
sleep(500)
While IsMoving()
sleep(20)
Wend
 
   


94
how far is your distance from Zhome to probepoint?

95
Looks like something is missing at the begin of script.

there is a End if without an IF ... Then before?

96
-Operator -> Edit button script

-Auto tool Zero button should blink now

-click on button -> Editor window Comes up

-copy and paste code into a file

-post file

97
Show us your script, and we will see.

98
General Mach Discussion / Re: Macro for mach3
« on: January 29, 2021, 01:06:34 AM »
you have to put this code into a macrofile, let's say M300.M1s
this fil Needs to be in C:\Mach3\macros\your Profile Name

usage would be:
M300 P20 Q1.5

where P20 is the length of your thread and Q1.5 the pitch (all in mm)

99
General Mach Discussion / Re: CSMIO IP/S MPG handwheel jog problem
« on: January 29, 2021, 01:02:51 AM »
i think you have to email Wojtek Trawicki at office@cs-lab.eu.

100
Finished Screens / Re: Mach3 Set 1920*1080
« on: January 28, 2021, 01:23:34 AM »
saubere Arbeit, sieht richtig schön "aufgeräumt" aus.
Ich bin auch nicht so für diese bunten Screensets.
Gruß Tom

darf ich fragen, mit welchem Programm Du die Hintergründe erstellt hast?