Hello Guest it is March 18, 2024, 11:38:48 PM

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

971
FAQs / Re: Probing from the same place
« on: April 04, 2020, 03:07:35 AM »
if have cleared up the code a Little bit and made some safety checks

Code: [Select]
Sub Main()
Dim Zprobe, Zretract, ZfeedRate
Dim PlateX, PlateY

'Note: TouchPlateHeight represents the actual height of the
' Auto Z Touch Plate from the work surface.
' Minor adjustments can be made for calibration purposes (use caution)

'set all parameters in metric
TouchPlateHeight = 30                                                                         
Zprobe = -50
Zretract = 20
ZfeedRate = 10
PlateX = 10                                   
PlateY = 10                                 

Message( "Auto Tool Zeroing..." )



'check probe allready active
If GetOEMLed(825) Then
MSGBox "Probe allready activ",vbOK + vbCritical ,"Fault !"
DoButton(21)
End
End If

' go to probe position
Code "G53 G0 X" & PlateX & " Y" & PlateY

'clear z-pos
Call SetDRO( 2, 0.00 )

'do the probing
code "G31 Z" & Zprobe & " F" & ZfeedRate
While IsMoving()
Wend

'test for max trave
If GetVar(2002) <= Zprobe + 0.5 Then
MsgBox "no probe hit!",vbOK + vbCritical ,"Fault !"
End
Else
'move to contact point due overrun
Code "G90 G0 Z" &GetVar(2002)
While IsMoving()
Wend
'set z axis height
Call SetDRO( 2, TouchPlateHeight )
'go to retract position
code "G1 Z" & Zretract & "F20"
End If
'clear status line
Message " "
End Sub

it is not tested, just written down.

but i think in your case it will not do what you want to do, but you can test it and see.

this code will set the z-axis Zero allways to the top of your measuring knob, but i guess you want
to set it to your actual workpiece surface.




972
FAQs / Re: Probing from the same place
« on: April 03, 2020, 09:28:55 AM »
to do this your machine will Need home Switches, so that it can be referenced, because a fixed Position will allways be
in machine coords.the rest is easy.

973
the Mayor Problem is to get all those different wires and calbes onto this 25pole Sub D connector.

i have used on all my machines those Interface modules.

then you can use a Standard 25pole cable from controler to the module and connect at the Interface
module all your different single wires cables and so on.

974
if you have a quick look to the dyn4 Manual it says clearly that all Input signals are isolated.
also the example wiring diagram of the analog Input Shows nothing to connect AIN- to somewhere else
as the analog out ground of the source.

so why are you trying to create Problems ?

975
i would prefer to run AIN- and AIN+ directly via 2 wire shielded / twisted cable to the Motion Controller and
put shield on Motion Controller side to GND. the analog Input of your dmn dyn4 is isolated so do not connect
AIN- to Signal ground bus.


976
General Mach Discussion / Re: New pc not working
« on: April 01, 2020, 02:22:14 AM »
i had a look to your Profile XML. Looks fine so far.
only in motortuning is a 0 for Step Pulse (all axis).
IMHO there should be something from 2 to 5.

Looks like your machine has a BOB witch Needs Charge Pump enabled,
so the Step Pulse might not be necessary, but you can give it a try.

next step would be to check pulse signals and Charge pump Signal via oscilloscope
i think and also check the signals to be 5V not 3.3V, because older parallel ports used
to be 5v and newer ones 3.3v.

That is the only idea i have for the Moment.

977
normaly you put  all chasis grounds to your earth potential.

for a anlaog Signal you use a two wire (twisted) shielded cable from the
source to the Destination and shield should be wired to the GND of the source
(of cource i hear all the voices witch say do no do this), but for a good start
it was the best soluition for me for the last 35 jears.

978
General Mach Discussion / Re: New pc not working
« on: March 31, 2020, 07:46:35 AM »
can you please post your Profile XML?

979
General Mach Discussion / Re: New pc not working
« on: March 31, 2020, 07:29:26 AM »
the G-code is ok, just wanted to see that there is a F value at the first G01 move.

just ideas (i realy do not know what the problem is):
-parallel port 5V - 3.3V Problem
-mach3 Version Problem

if you say machine just sits there dro are moving, is the g-code window also going throug all the lines?
have you tryed to do machine moves by entering in MDI Input?


980
General Mach Discussion / Re: New pc not working
« on: March 31, 2020, 03:09:32 AM »
can you post your  g-code file?