Hello Guest it is March 19, 2024, 05:32:39 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

371
German / Re: Mach4 Drehen eCAM
« on: May 16, 2021, 06:17:09 AM »
Ich habe keine funktionierenden PP, ja das liegt an dem Werkzeugwechsel Code

G0 T101101

ich würde mal versuchen im PP die folgende Zeile anzupassen:

<Template_InitOperation_With_Toolchange>{EMPTY_LINE} {LINE_N} {ORIGIN} ({OP_DESC}) {COOLANT_CODE} {FEED_MODE}G18 G48S{REV_LIMIT_VALUE} ({TOOL_LABEL}) G0T{TOOL_POS}{TOOL_COR} {SPEED_MODE}S{SPEED_VALUE}{SPINDLE_ORIENTATION}</Template_InitOperation_With_Toolchange>

speziell diesen Teil:

G0T{TOOL_POS}{TOOL_COR} {SPEED_MODE}

würde ich Mal so probieren:

G0T{TOOL_POS}


372
General Mach Discussion / Re: Mach 3: Programmatic change to config
« on: May 14, 2021, 11:27:53 AM »
IMHO a lot of People do rigid tapping with 1 pulse/rev, i never tryed because my CSLab controller's do tapping only with
Encoder module. try and error will e the only way to figure out.

373
General Mach Discussion / Re: Mach 3: Programmatic change to config
« on: May 14, 2021, 10:34:49 AM »
if you what to use tapping cycle (G84) you must have a spindle index Signal, does not matter wether spindle
in in Step/dir or analog mode.

374
CVI MachStdMill (MSM) / Re: Errratic motion / lost steps
« on: May 14, 2021, 02:01:39 AM »
have you tryed to run the Programm without spindle ON in the air?

375
i have tested this here, and it works:

'start code ------------------------------------------------------------------------
Sub Main

   'Get tool information
   newtool = GetSelectedTool()      ' get the newtool
   acttool = GetCurrentTool()      ' get the acttool   
   Message "New Tool = " &newtool
   Sleep(200)

   ' new and acttool = 0
   If ((newtool = 0) and (acttool = 0)) Then
      message("new and old tool = 0 -> abort toolchange  !")
      Sleep(500)
      Exit Sub
   End If   

      ' new tool = 0
   If (newtool = 0) Then
      DoButton(1003)
      message("new tool = 0 -> abort toolchange  !")
      Sleep(500)
      Exit Sub
   End If   

   ' new and acttool are the same
   If newtool = acttool Then
      message("acttool and newtool are the same -> do nothing!")
      Sleep(500)
      Exit Sub
   End If
 
   'check toolnumber in range
   If  (((newtool > 14) Or (newtool < 1)) And (newtool <> 0)) Then
      DoButton(1003)
      Message (" toolnumber " & newtool & " is not in range (1-" &MaxTool &"). abort toolchange  ! ")
      MsgBox (" toolnumber " & newtool & " is not in range (1-" &MaxTool &"). abort toolchange  ! ")
      Exit Sub
   End If      

   'toolnumber 1 mastertool
   If  newtool = 1 Then
      Code ("G52 X0 Y0")
   End If      

   'toolnumber 2
   If  newtool = 2 Then
      Code ("G52 X32 Y0")
   End If      

   'toolnumber 3
   If  newtool = 3 Then
      Code ("G52 X64 Y0")
   End If      

'And so ON


      
   'set new tool
   SetCurrentTool( newtool )
   Code ("G43 H" & newtool)
   Message " "

End Sub
'end code ------------------------------------------------------------------------





376
General Mach Discussion / Re: Mach 3: Programmatic change to config
« on: May 13, 2021, 02:19:37 AM »
depending on your Motion Controller you can run your spindle in step/dir mode as well.
also the servo Controller supports a PZ+/PZ- Signal witch is a single pulse per rev. that can
be used for a index Input. i use this signals on my machines for indexed homing on the Motion axes.
 

377
General Mach Discussion / Re: Mach 3: Programmatic change to config
« on: May 11, 2021, 12:46:26 PM »
I will have to start makikng a M6 macro for ATC carousel I am making. That will be quite a challenge  ;D

is soon your Hardware (Inputs/Outputs) is clear just start a new thread, and we will seen.

378
General Mach Discussion / Re: Mach 3: Programmatic change to config
« on: May 11, 2021, 07:02:09 AM »
never tryed the  SetProbeState() in reality only found it in the attached file.

i do it with a Little Piece of Hardware.

379
General Mach Discussion / Re: Mach 3: Programmatic change to config
« on: May 10, 2021, 12:22:21 PM »
so if the instruction itselv is running in VB Script Editor, it must also run in button script.

just make sure that you have pressed ENTER after the instruction to have a empty line
under the code.

380
General Mach Discussion / Re: Mach 3: Programmatic change to config
« on: May 10, 2021, 10:04:00 AM »
test it vb script editor