Hello Guest it is October 20, 2021, 02:50:11 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

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

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.

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]

G1 X0 F500
M98 P#100 L1

G1X1 F500

G1X2 F500

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]

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

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

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?

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

General Mach Discussion / Re: Newbie with a few questions
« on: June 29, 2019, 04:14:56 AM »
a very simple and cheap cam Software is EstlCam, you can have a look there is a free trail avaliable at https://www.estlcam.de/.

Hi had a quick look to the Langmuir Homepage.
Looks like you have ordered b√ľndle (table + cutter) from them.
they are still selling this combination.

have you talked to them, about this Problem ?
i am pretty sure ist is a earth/grounding Problem, because if it is a Controller Problem,
they would not sell this combination any more.

basicly USB and Plasma cutting is not the best combination, Ethernet would be better,
but if the layout/wiring/groundig is ok, you should get it to work.

if you want to go the "VB script" road, you have to remember that there is only one Task (script) witch is running continious
(macropump). and this macro has a 10ms timestamp (theoreticly).
Brains are a lot faster but  there Comes the external Controller into the Focus.
i never had something else than CSLab Controllers, but with them the update of Inputs takes 10ms as well.

General Mach Discussion / Re: UC300
« on: June 27, 2019, 02:38:42 PM »
not realy sure what you concret looking for.

but after reading all this i woul also  give CSMIO-M give a try.