Hello Guest it is March 01, 2021, 02:37:23 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

591
VB and the development of wizards / Re: macro to call g54 and g55, etc
« on: December 28, 2019, 03:04:37 AM »
witch toolchange macro depends on your Settings Config->General Config->Tool Change

if Stop spindle. Wait for cycle Start is selected M6Start.m1s will be excecute when M6 is called in GCode and M6End.M1s
will be started after pressing Cycles Start after Toolchange is fineshed.

if Auto Tool Changer is selected only M6Start.M1s will be exceuted.

in one of this macro you can do your own code, f.e.
Code: [Select]
        'get new tool number
newtool = GetSelectedTool()

       'select Offset by toolnumber
       If newtool = 1 then
           Code "G54"
       Else
           Code "G55"
       End If

592
General Mach Discussion / Re: Mach3 macro
« on: December 24, 2019, 03:51:10 AM »
Config->General Config->Ignore M calls while loading

593
for Output 6 try this:

Code: [Select]
If GetOEMLed(79) Then
    DeactivateSignal (OUTPUT6)
Else
    ActivateSignal (OUTPUT6)
End If

594
I found a usb to parallel port adapter online and was wondering if this would work

no way

595
there is no "clasic" set reset Signal in Brains (like in a PLC), but with some locic it will be the same.

596
General Mach Discussion / Re: Nothing works, only the switches
« on: December 06, 2019, 08:47:15 AM »
usually those boards are using one pin for an enable Signal.
is there no way to figure out the configuration of WinPC CNC ?

597
General Mach Discussion / Re: Nothing works, only the switches
« on: December 01, 2019, 01:10:14 PM »
how is your Controller connected to the PC (PP or USB)
some Picture might help.

598
General Mach Discussion / Re: Nothing works, only the switches
« on: November 30, 2019, 12:29:36 PM »
how did you configure your axis in Ports&Pins?

599
General Mach Discussion / Re: Touch off plate script, something is wrong
« on: November 30, 2019, 05:40:39 AM »
Code: [Select]
PlateThickness = GetUserDRO(1151) 'Z-plate thickness DRO

If GetOemLed (825)=0 Then 'Check to see if the probe is already grounded or faulty
   DoOEMButton (1010) 'zero the Z axis so the probe move will start from here
   Code "G4 P5" ' this delay gives me time to get from computer to hold probe in place
   Code "G31Z-40 F60" 'probing move, can set the feed rate here as well as how far to move
   While IsMoving() 'wait while it happens
   Wend
   ZProbePos = GetVar(2002) 'get the axact point the probe was hit
   Code "G0 Z" &ZProbePos 'go back to that point, always a very small amount of overrun 
   While IsMoving ()
   Wend
   Call SetDro (1.6, PlateThickness) 'set the Z axis DRO to whatever is set as plate thickness
   Code "G4 P0.25" 'Pause for Dro to update.
   Code "G0 Z10" 'put the Z retract height you want here
   Code "(Z axis is now zeroed)" 'puts this message in the status bar
Else
   Code "(Z-Plate is grounded, check connection and try again)" 'this goes in the status bar if aplicable
Exit Sub
End If

by reading your something look a bit strange

PlateThickness = GetUserDRO(1151) 'Z-plate thickness DRO

is Setting the variable PlateThickness to whatever UserDro(1151) is.

Call SetDro (1.6, PlateThickness) 'set the Z axis DRO to whatever is set as plate thickness

should be the code where the new Z-axis Offset is set.

IHMO it should be

Call SetDro (2, PlateThickness) 'set the Z axis DRO to whatever is set as plate thickness

or if you do not use the variable

Call SetDro (2, 1.6) 'set the Z axis DRO to 1.6mm fix