Hello Guest it is October 25, 2021, 10:55:38 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

as i have written, i don't know the english Translation for this thing.

if you Google for "cnc tool presetter" i think you will get into the wright direction.


or you try something like this:

sorry don't know the englisch word for this Thing.

something like tool lenght sensor.


solved by hours of scoping.


Third party software and hardware support forums. / Fanuc Pulse Coder
« on: July 06, 2017, 11:19:32 AM »
on my TongIL retrofit Project, i am at the spindle now.
the spindle has a pulse code A20B-9000-0380.

on the web i found two different types.

i have the the one with the following signals:

0V -> GND
5V -> Power supply

VA/   the Sinus wave

VB/  the Cosinus wave

so far so clear and i can measure the signals with the scope

then we have a

VZ witch should be the Zero pulse

the is no VZ/.

i have measured VZ to GND allways 2,5V
i have measured VZ to 5v allways -2,5V

i was never able to see a pulse on the scope.

maybe one of you has got any further ideas.

Regards Thomas

Hello Bravo1,

went through your code, i think , like tweakie, the Problem is:

Call SetOemDRO (2,PlateThickness) 'Set X-Axis DRO to Touch Plate thickness

OemDRO 2 is in my documentation -> Pulse Freq DRO

should be SetDRO(0,PlateThickness) 'Set X-Axis DRO to Touch Plate thickness


General Mach Discussion / Re: Auto Zero and Tool Length Zero
« on: July 05, 2017, 03:51:05 AM »
Hello Matt,

after a G31 you allways should read the exact Position where the probe was hit with:

ZProbePos = GetVar(2002) // 2000 -> X , 2001 -> Y , 2002 -> Z

to write the tool lenght you have to use:

SetToolParam(ToolNr,2, ZProbePos)

to get the current ToolNr:

ToolNr = GetCurrentTool()

Play a Little bit arround with this functions, and you will familar with the complex theme of
offset's and Toollenght.


CS-Lab / Re: ATC Macro - How to Count Pulses?
« on: July 03, 2017, 02:48:31 AM »

GetInBit(90,0) is your Count Signal
OEMDro(2200) is used to get a raising edge of the Count Signal
MotorturnCW and MotorturnCCW should come from your way calculation of toolchange
OEMDro(2201) ist the Count value.


CS-Lab / Re: ATC Macro - How to Count Pulses?
« on: July 02, 2017, 11:26:36 AM »
If ((GetInBit(90,0) = 1) and (GetOEMDro(2200) = 0) and (MotorturnCW=1)) then
    SetOEMDro(2201) = GetOEMDro(2201) +1
End If

If ((GetInBit(90,0) = 1) and (GetOEMDro(2200) = 0) and (MotorturnCCW=1)) then
    SetOEMDro(2201) = GetOEMDro(2201) -1
End If

If (GetInBit(90,0) = 1)  then
    SetOEMDro(2200) = 1
    SetOEMDro(2200) = 0
End If

something like this should work, not tested just written down,
but i think you have to find a criteria to "reference" OemDRO(2200)


Mach4 Toolbox / Re: Axis movment indicator LED
« on: July 02, 2017, 10:47:28 AM »
my fault,

did not notice that it was posted under Mach4 General Discussion.

but i think something simular under LUA should work.

i have no idea from LUA.


Mach4 Toolbox / Re: Axis movment indicator LED
« on: June 29, 2017, 03:28:25 PM »
you will Need a litle Piece of VB script in macropump to do this

i just write the code down, not tested or anything else, just to give you the idea.

If GetOEMDro(800) <> GetOEMDro(2500) Then //read an compare X DRO with stored Value
    Output ON // X axis is moving
    Output OFF // X axis is not moving
End If
SetOEMDro(2500) = GetOEMDro(800) //store X DRO for compare

Regards Thomas