Hello Guest it is May 23, 2024, 07:03:16 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

681
General Mach Discussion / Re: Looking for good DIY controller kit supplier
« on: December 17, 2020, 05:53:03 AM »
it is only switching Mach3 Outputs, witch are assigned in Config -> Port's&Pin's -> Output Signals.
i would Switch them all off after testing.

Yes P Parameter is for Output Number
and Q Parameter for state of the Output.

if also will only Switch Outputs witch are enabled in Config -> Port's&Pin's -> Output Signals.

682
General Mach Discussion / Re: Looking for good DIY controller kit supplier
« on: December 17, 2020, 03:09:35 AM »
attached a small script to test Outputs.
copy it into C:\Mach3\macros\  y o u r  Profilename

useage MDI/code:
M777 P1 Q1 -> Switches Output 1 ON
M777 P1 Q0 -> Switches Output 1 OFF
M777 P2 Q1 -> Switches Output 2 ON
M777 P2 Q0 -> Switches Output 2 OFF
.
.
.
.

683
VB and the development of wizards / Re: How to interrupt a running script?
« on: December 16, 2020, 01:53:30 AM »
first of all, there are many way's to handle Auto tool length or tool length correction.
i assume you will not have a ATC. the difference between Auto tool Zero and tool lenght
correction i will try to explain.

a Auto tool Zero will only set the correct part Zero surface in your selected fixture,
but this surface can be gone due machinig process, and is not avaliable any more for
the next tool.

here is the Point where tool lenght correction Comes into the Focus.
for this case you will Need to have a referenced machine via Limit Switches (best *********ion),
or by an other way. that gives you the possibility via machine coords to get a relation between
the different tool lenght.
this procedure Needs also a zool lenght sensor on a fixed place.

the procedure would be:
-put in the first used tool
-measure the tool lenght via tool lenght sensor
-set tool enghtin tooltabel
-announce tool lenght via G43H(toolnumber)
-touch material surface via touch plate
-get X0/Y0 of your fixture

now you can start your Job with the first tool
-after first tool is done, machine goes to a tool Change Position (M6T?)
-after tool has been changed machine goes to tool lenght sensor Position
and measures tool lenght of new tool.
tool lenght has allways to set by G43H(toolnumber)
-continue Job

the referenced machine machine gives you allways the safety to move in machine coord's
and not in part coord's.

a few remarks:
-referencing Needs to be checked in tool lenght script.
-Status of tool lenght sensor an touch plate Need to be checked in script.
-machine Settings feedrate,G90/G91 and so on has to restored after script exceution
-and about ten other tings i forgot to say







684
Mach3 under Vista / Re: Trouble Interfacing with Mach3 via Parallel Port
« on: December 15, 2020, 01:52:33 AM »
have you checked the outgoin voltage of the PCI board at he pin's.

Sound like you have a 3.3V Version instead of 5V.

https://www.youtube.com/watch?v=uglCm_qsojk

685
VB and the development of wizards / Re: How to interrupt a running script?
« on: December 15, 2020, 01:35:49 AM »
try to use LED(800) Reset LED instead of IsStopped()

for the buttons, you have to Change the button from an Standard button to a Basic script button
and then you can put VB code onto the button, but you have to put the originally function also into
the script.

for stop button for example
Code: [Select]
  doOemButton(1003)
  SetUserLed(xx)

https://www.machsupport.com/forum/index.php?topic=19482.0  -> the best list of button's/led's/Dro's i know.

no way to detect that a button has been clicked

do not try to detect a probe with GetOEMLed(OEMLED_DigitizeInput)
have a look for G31!
G31 provides in Var's 2000,2001,2002 the Position where probe was hit, and here we are on a Point,
where the problem's are starting. Var's 2000.. are not supported by all Motion Controllers, specialy
chinese chunk does not.




686
General Mach Discussion / Re: Cannot control the Z-axis
« on: December 13, 2020, 01:28:31 PM »
can you pls post the Manual, Special those China machines are very different, eveb they have the same Name.
and your Profile XML i think it is Mach3Mill.xml in Mach3 Folder, but you have to rename the file bofore posting.

687
General Mach Discussion / Re: Cannot control the Z-axis
« on: December 13, 2020, 05:15:00 AM »
Earlier today I read through the manuals, etc... again with Mach 3 and now its telling me "X limit switch tripped".  All switches are clear.
go to diagnostic page and check M3 Limit LED's
here can also check all other Inputs by pushing them and look at the LED's

689
VB and the development of wizards / Re: How to interrupt a running script?
« on: December 12, 2020, 01:31:02 AM »
there is now way to get get Access do Screen button Events.

so one way is to to put:
Code: [Select]
  If IsStopped() Then
    Exit Sub
  End If

into the loop's

by editing the screenset, you can put a
Code: [Select]
  SetUserLed(*********)
to the button a react in your script.



690
just open your maro in VB script Editor

->file-> save as
-> choose -> Compiled code as filetype
-> done