Hello Guest it is April 25, 2024, 09:06:48 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

1191
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.




1192
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
...

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

1194
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)

1195
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

1196
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.

1197
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



1198
Brains Development / Re: Problem with Probe signal from Brain
« on: July 02, 2019, 02:25:52 PM »
so if you are using an external Motion Controller (ESS) i am pretty sure (i know definitely from CSMIO) that
the "real" probing (G31) is handled on the Motion Controller.

IMHO you have no Chance (i had no Chance on the CSMIO) to "manupilate" probe Input via brain.

the only way, in my case, was to modify my probes by external Hardware to be NO contact's  to wire them
parallel.

1199
Brains Development / Re: Problem with Probe signal from Brain
« on: July 02, 2019, 09:16:43 AM »
what Controller are you using? or just PP and BOB?

1200
Hi,
i think the fastest you can get in Mach3 is brain in combination with a parallel port.

you can do a simple test.
download/install Mach3
assign Outpu1 to a pp pin
write a small brain, witch inverts the Output every cycle
take a oszilloscope and measure the frequency

than you will see the fastest possible reaction