Hello Guest it is March 19, 2024, 01:06:35 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

1651
create am macro, lets say M1000.M1s

code of the probemacro can be something like this:
Code: [Select]

Sub Main()

'get Parameter ------------------------------------------------------
Tool = Param1()
'--------------------------------------------------------------------------------


'ceck toolnumber----------------------------------------
If ((Tool < 1) or (Tool > 16)) then
    Message ("toolnumber not valid")
    GoTo Ende
End If
'--------------------------------------------------------------------------------

    'load the tool
    Code "M6 T" + cstr(Tool) + " M5"

    '-------------------------------------------------------------------------------- 

' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
' PUT HERE SOME CODE TO DRIVE TO THE PROPBEPOSITIO
' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!


   
    'do the probing
ZM_in = 100 'max probing distance
    Code "G31 Z100" + CStr(ZM_In) +"F50"
    While IsMoving()
        z = GetOEMDRO(802) 'act Z-pos
        If z <= ZM_In Then
            DoOEMButton(1003) 'Stop if too far
            MsgBox ("probe not hit" )
            GoTo Ende
        End If
    Wend           
   
    'et the probepos
    ZProbePos = GetVar(2002)   


    'put the value into tooltable
    SetToolParam(Tool,2, ZProbePos)
    'save tooltable
    DoOEMButton(316)


' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
' PUT HERE SOME CODE TO COME OUT OF THE PROBEPOS
' !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

    'unload the tool
    Code "M6 T0"



Exit Sub
Ende:
    Code "M30"
    'Message ("error while probing")
   
End Sub




then you can do a probing with

M1000 P1 to probe tool 1 or
M1000 P2 to probe tool 2

the P-Parameter is the toolnumber.

now you can create a smal G-code file, where you can call M1000 for all your Tools.


be Patient, the posted code is not tested and not complete, it is just to give you an idea.









1652
CS-Lab / Re: CSMIO-ENC Spindle Orientation
« on: September 02, 2018, 05:56:40 AM »
is your spindle step/dir driven or 0-10V?
 

1653
CS-Lab / Re: CSMIO-ENC Spindle Orientation
« on: September 01, 2018, 05:39:14 AM »
hi Lion_rapid,

would be great, if can post your solution.
Thank You.

1654
General Mach Discussion / Re: feedrate 0 during program run
« on: August 28, 2018, 01:16:26 PM »
see attachment

dro 21

1655
General Mach Discussion / Re: feedrate 0 during program run
« on: August 27, 2018, 02:39:02 PM »
just read what i have written!?

not the fro dro, the override fro dro,smal difference.

1656
General Mach Discussion / Re: feedrate 0 during program run
« on: August 27, 2018, 07:09:03 AM »
tested on my PP test machine.
to put 0% in the feedrate override is no Problem.

1657
General Mach Discussion / Re: Mill works great, Lathe bombs
« on: August 27, 2018, 02:57:16 AM »
what about downgrade to a Win7?

1658
General Mach Discussion / Re: Run a macro from a button press??
« on: August 26, 2018, 04:08:54 AM »
you have to create a "Memory" to know the Output is on or off.

for example:

add to M20:

SetUserLed(1800,1)

add to M21:

SetUserLed(1800,0)

and the button script:

If GetUserLed(1800)=1 Then
  SetUserLed(1800,0)
  DeActivateSignal(your clamp Output)
Else
  SetUserLed(1800,1)
  ActivateSignal(your clamp Output)
End If

not tested, just written down.


1659
G-Code, CAD, and CAM discussions / Re: Using a macro to "ref all home"
« on: August 22, 2018, 03:01:47 PM »
i am talking about this Options:

No Homing:
Single Stage:
Dual Stage:
Home Switches

on page 34

1660
G-Code, CAD, and CAM discussions / Re: Using a macro to "ref all home"
« on: August 22, 2018, 02:55:41 AM »
sorry for the wrong Syntax.

so it Looks like you Controller is making a rewind of the code.

you have tryed two seperate methodes for homing (DoButton() and G28.1) with the same result.


i have seen in the Manual of your Motion Controller, that you can select different homing mode's.
have you "played" with this configurastion ?