Hello Guest it is May 05, 2024, 10:20:21 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

1191
FAQs / Re: parallel port to serial
« on: July 09, 2019, 02:41:29 AM »
after a while of searching on the net, it Looks like the machine has a standalone Controller, and the Serial Interface is
used for file Transfer (GCode or HPGL). But found no Information about the used protocol.

if the supplier is not able to give some documentation, it will be very hard maybe impossible to figure this out.

anyway it will not be "compatible" to Mach3/4.

the only way i see is to use the existing stepper's and do a "retrofit" with new stepper Controllers and external Motion
controler. plus an other new controler for the spindle.

1192
Tangent Corner / Re: It's a Dog thing.
« on: July 08, 2019, 02:00:59 PM »
it is allway's the Point of view.
a cat likes mouses raw, i don't like them well done.

1193
General Mach Discussion / Re: Plasma ignition and stop lag problem
« on: July 06, 2019, 06:59:30 AM »
if your run in Plasma mode with THC on, it will allways wait until torch on Signal Shows up.

1194
General Mach Discussion / Re: Crazy zero
« on: July 06, 2019, 03:04:59 AM »
from your code:

...
Z0.6
G28 G91 Z0.
G90
...

from Mach3 GCode help:
G28 should not be used in one line with G90/G91


Switch your machine ti single BLK mode and step through code to see where exactly the move up is initiated.




1195
General Mach Discussion / Re: Plasma ignition and stop lag problem
« on: July 06, 2019, 02:51:05 AM »
there is a G04 in your GCode witch causes the delay


...
Z1
Z0
M3
G4P1
G3X-0.8I-1.3J-50.4F2000
...

1196
General Mach Discussion / Re: Crazy zero
« on: July 06, 2019, 02:47:23 AM »
pls post your GCode.

1197
General Mach Discussion / Re: Work offset not remembered
« on: July 05, 2019, 02:15:47 AM »
you can put the following code into macropump, then the Offset will be saved every 60 seconds.

just make sure OEMDRO(1300) is not used

Code: [Select]
Const LastMsDRO = 1300 'DRO for data
Dim LastMs As Long

LastMs = GetUserDRO(LastMsDRO)
If LastMs > 6000 Then
LastMs = 0
'save the actual workoffset
Open "C:\Mach3\ActOffset.txt" For Output As #1 ' Open to write file.
'get the actual offset
wo = GetOEMDro(46)+53
Write #1, wo
Close #1
End If
LastMs = LastMs + 10
'save data
SetUserDRO(LastMsDRO,LastMs)

1198
General Mach Discussion / Re: Work offset not remembered
« on: July 04, 2019, 01:32:30 PM »
ok with a Little trick

create a button on your Screen witch has the "Name" shutdown Mach or something like this.

this is the code for the button:
Code: [Select]
Sub Main()
'save the actual workoffset
Open "C:\Mach3\ActOffset.txt" For Output As #1 ' Open to write file.
'get the actual offset
wo = GetOEMDro(46)+53
Write #1, wo
Close #1

'shut down Mach3
SendKeys "%+{F4}"
End Sub

create a macro in C:\Mach3\macros\your Profile Name    for example M889.M1S

this would be the code for the macro:
Code: [Select]
Sub Main()
'read last workoffset
Open "C:\Mach3\ActOffset.txt" for Input As #2 ' Open to read file.
Line Input #2, FileData ' Read a line of data.
Close #2
' make sure that we only restore the WO once
If FileData <> "999" Then
Code "G"&FileData
End if

'clear the WO data
Open "C:\Mach3\ActOffset.txt" For Output As #1 ' Open to write file.
Write #1, 999
Close #1

End Sub

then add the M889 to your initialization string

now after restart and pressing the reset button the last workoffset should be restored

1199
Brains Development / Re: Problem with Probe signal from Brain
« on: July 03, 2019, 01:42:23 AM »
As an alternate idea. Is there any way to switch the active Port and Pin settings for the probe using a macro? I could just do that with a button on the screen if I needed to.

i was looking for a possibility to modify pot&pin Setting via VBScript, but had no succes, witch does not mean there
is None.

1200
VB and the development of wizards / Re: Macro Tutorial
« on: July 02, 2019, 03:07:12 PM »
ok we are on the conditional programming road.
not so easy in Mach3 but with some tricks

example GCode:
Code: [Select]
#100=2

G1 X0 F500
M1234
M98 P#100 L1
M30

O1
G1X1 F500
M99
M30
%

O2
G1X2 F500
M99
M30
%

M98 subroutine call based on param #100 witch is set to 2 at the begining

M1234 will set it to 1 so O1 is excecuted.

within M1234 you can modify #100 however you want an call any programmed subroutine Oxx

M1234 code:
Code: [Select]
SetVar(100,2)

the macro call (M1234 or whatever) gives you all possibilties.
look for Inputs
do calculations
modify some other vars witch are used in the subroutine
And so on