Hello Guest it is April 24, 2024, 08:20:29 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

681
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

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




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

684
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

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



687
just open your maro in VB script Editor

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

688
German / Re: Getriebestufenwechsel Mach3 / CSMIO IP-A
« on: December 10, 2020, 02:46:17 AM »
Servus,
habe Dein Macro ein bisschen überarbeitet und formatiert.
Dabei bin ich von folgenden Signalen ausgegangen:
Output1 -> erster Gang einlegen
Output2 -> zweiter Gang einlegen
Input1 -> erster Gang ist eingelegt
Input2 -> zweiter Gang ist eingelegt

Code: [Select]
Sub Main()

DoSpinStop() 'TPS nur um sicherzustellen, das die Spindel wirklich aus ist

SpinS = GetRPM() 
 
If SpinS < 200 Then   
Call Gear1ON   
End If   

If SpinS > 201 And spin < 600 Then   
Call Gear2ON   
End If   

End Sub

Sub Gear1ON()

' der erste Gang ist bereits drin, also nichts zu tun
If IsActive(OEMTRIG1) Then   
Message "erster Gang bereits eingelegt"
Sleep(200) 
Exit Sub
End If 

'Ausgang zum schalten der 1ten Gang's aktivieren
ActivateSignal(OUTPUT1)     

'auf den Eingang warten
While IsActive(OEMTRIG1) = False       
Sleep(10)   
Wend       
   
Sleep(50)   
Message "erster Gang eingelegt Spindel einschalten"   
DeActivateSignal(OUTPUT1) 'Ausgang für 1. Gang ausschalten   
DoSpinCW() 'this is what was in the M3 macro   

End Sub   

Sub Gear2ON()     

' der zweite Gang ist bereits drin, also nichts zu tun
If IsActive(OEMTRIG2) Then   
Message "zweiter Gang bereits eingelegt"
Sleep(200)   
Exit Sub
End If 

'Ausgang zum schalten der 2ten Gang's aktivieren
ActivateSignal(OUTPUT2)     

'auf den Eingang warten
While IsActive(OEMTRIG2) = False       
Sleep(10)   
Wend       
   
Sleep(50)   
Message "zweiter Gang eingelegt Spindel einschalten"   
DeActivateSignal(OUTPUT2) 'Ausgang für 1. Gang ausschalten   
DoSpinCW() 'this is what was in the M3 macro   

End Sub



mfg Tom

689
German / Re: Getriebestufenwechsel Mach3 / CSMIO IP-A
« on: December 09, 2020, 12:06:52 PM »
Hallo,

in diesem Fall würde ich das im M3 macro machen.
Da kannst Du die angeforderte Geschwindigkeit abfragen, und
mit ein paar If Abfragen die entprechenden Ausgänge schalten,
dann auf den Eingang warten.

Vor allem kannst Du hier zuerst mal die Spindel ausschalten, für den Fall das
diese schon läuft.

Gruß Tom

690
in G1 move all axis start and stop together

B-Axis has 97mm to go, so it is about 20s.

and the x-move is 30mm, you start from X0