Hello Guest it is December 08, 2019, 06:15:33 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

1381
VB and the development of wizards / Re: Ref All Axes - All at same time?
« on: October 20, 2014, 03:55:27 AM »
try this code, had a simular thing couple of weeks ago:



RefCombination(7)

Sleep(300)
While ((GetOemLed(807) = true) Or (GetOemLed(808) = true) Or (GetOemLed(809) = true))
   Sleep(50)
Wend

SetParam("XRefPer", GetParam("XRefPer")/10)
SetParam("YRefPer", GetParam("YRefPer")/10)
SetParam("ZRefPer", GetParam("ZRefPer")/10)

RefCombination(7)

Sleep(300)
While ((GetOemLed(807) = true) Or (GetOemLed(808) = true) Or (GetOemLed(809) = true))
   Sleep(50)
Wend

SetParam("XRefPer", GetParam("XRefPer")*10)
SetParam("YRefPer", GetParam("YRefPer")*10)
SetParam("ZRefPer", GetParam("ZRefPer")*10)



Thomas

1382
General Mach Discussion / Re: Spindle requires two inputs for control
« on: October 16, 2014, 04:15:28 AM »
Hi Llaves,

there is also a non hardware way.
go to configuration -> ports and pins -> spindle and disable the relay option.
go to your macro folder depending on your profile you are using

open M3.M1S (CW spindle on)
add:
ActivateSignal(OUTPUT1) ‘ Turn on spindle enable

open M4.M1S (CCW spindle on)
add:
ActivateSignal(OUTPUT1) ‘ Turn on spindle enable
ActivateSignal(OUTPUT2) ‘ Turn on spindle direction

open M5.M1S (spindle off)
add:
DeactivateSignal(OUTPUT1) ‘ Turn off spindle enable
DeactivateSignal(OUTPUT2) ‘ Turn off spindle direction

Regards Thomas

1383
Brains Development / Re: Brain to trigger home or probe input
« on: October 16, 2014, 04:02:51 AM »
Hi Pierre,

for my mind, if can not choose the hardware solution to stop the particular motors,
all other ways (brains VB or what ever) will be to slow for a homing sequence.

to use A B C and Z axis might be a way, because they have their own reference switch input,
but to talk about this i know too less of your machine.

a simple or logic might be not the wright way if you want too 'allign' the 4 motors with the
4 limit switches.

in my hardware solution the individual motor was stopped by his own limit switch and after all
limit switches are hit the homing continues with the slow move to go off the switches.

if you whish i can do a drawing and post.


Regards Thomas

1384
Brains Development / Re: Brain to trigger home or probe input
« on: October 15, 2014, 09:31:57 AM »
Hi Pierre,

had the same problem with a Y axis driven by two motors.
i put a relay to each home limit switch.

a NC contact of the relay disabled the pulse signal off the motor driver.

i put also a relay to the direction signal of the axis , NO contacts of this relay
linked the NC contact of the limit switch relay.

then i put a NO contact of each limit switch relay in a row to the limit switch input.

worked perfect, i hope you can onderstood what i mean in my bad english.

Thomas

1385
General Mach Discussion / Re: Spindle requires two inputs for control
« on: October 15, 2014, 04:03:02 AM »
configure
Output#1 for CW
Output#2 for CCW

then connect two relays to the outputs

Relay 1 CW
Relay 2 CCW

Relay 1 one NO contact to ON/OFF
Relay 2 one NO contact to ON/OFF (parallel to Relay 1) and an other NO contact to the direction input.

Thomas

1386
German / Re: Not-Aus ohne Funktion in Mach3, Step-3D
« on: September 19, 2014, 02:47:23 AM »
Hallo,

ich kenne leider die Step-3D karte nicht, wenn ich mir aber die Belegung anschaue:

Schnittstellenbelegung (gültig für D-Sub 25 Stecker)
Pin Norm-Bezeichnung Software Signal
1 Strobe Spindel
2 Data Bit 0 Richtung X
3 Data Bit 1 Takt X
4 Data Bit 2 Richtung Y
5 Data Bit 3 Takt Y
6 Data Bit 4 Richtung Z
7 Data Bit 5 Takt Z
8 Data Bit 6 frei (optional Richtung C)
9 Data Bit 7 frei (optional Takt C)
10 Acknowledge End/Referenz Z
11 Busy Enable
12 Paper Out End/Referenz Y
13 Select End/Referenz X
14 Autofeed Kühlmittel
15 Error frei (opt. End/Referenz C)
16 Reset Boost
17 Select Sleep (low aktiv)
18-25 GND GND

wird das Not-Aus Signal, welches Due warscheinlich hier aufgelegt hast:

Pin HD-2X5 Pin 9 gegen Masse

so wird dieses gar nicht auf die Paralelle Schnittstelle weitergegeben,
und somit kann Mach3 dieses Signal nicht auswerten.

Die einzige Möglichkeit, die ich auf die schnelle sehe ist,
den Pin 9 mit Pin 7 zu brücken (insofern die 4.Achse nicht benutzt wird)
und dann den

15 Error frei (opt. End/Referenz C)

Eingang für den Not-Aus zu benutzen.


Gruß Thomas

1387
Mach Screens / translation main menue and submenues
« on: September 17, 2014, 10:22:06 AM »
hi,

does anybody know of a possibility to translate main menue bar and
al the submenues ?

Thanks Thomas

1388
Mach Screens / tooltiptext
« on: September 17, 2014, 03:55:45 AM »
has anyone a idea how to add a tooltiptext to a button ?

Thanks Thomas

1389
Screen designer tips and tutorials / Re: BMP automatic update
« on: September 17, 2014, 02:43:28 AM »
OK i found a solution.

here the code:
Code: [Select]
Dim objDialog
Dim filesys
set filesys=CreateObject("Scripting.FileSystemObject")



' Create a dialog object
Set objDialog = CreateObject( "UserAccounts.CommonDialog" )
objDialog.InitialDir = "C:\Programme\Platemaster\Projekte"
objDialog.Filter = "Programm|*.tap"
' Open the dialog and return the selected file name
If objDialog.ShowOpen Then


If filesys.FileExists(Left(objDialog.FileName, Len(Trim(objDialog.FileName)) - 4) + ".bmp") Then
filesys.CopyFile Left(objDialog.FileName, Len(Trim(objDialog.FileName)) - 4) + ".bmp", "C:\Mach3\Bitmaps\Platemaster\Anzeige.BMP"
    End If
LoadStandardLayout()
Sleep(3000)
LoadFile(objDialog.FileName)

Else
GetFileName = ""
End If

ok its reloading the whole screenset and not only the bitmap, but its working.

Thomas

1390
Screen designer tips and tutorials / Re: BMP automatic update
« on: September 16, 2014, 08:52:42 AM »
Hello Gerry,

sorry for the bad explaining.

my self written postprozessor is creating now a picture (BMP) of the coresponding
cnc program with the finished part.

what i am trying to do is to display this pricture on my screenset.

-i created a picuturebox in my screenset witch is diplaying the file part.bmp
-in my load G-code button a script is loading the g-code file (no problem) and it is doing a filecopy from actpart.bmp to the part.bmp
an here starts my problem, because the picturebox is not updated dynamicly. if i reload the screenset or stop and start Mach3 software
the picture is updated.

-in my close file button a script close the g-code file (no problem) and does a filecopy from blank.bmp to part.bmp and of course
the same problem with the update.

hope you understand now what i am trying to do.
any other solution is welcome.

Thanks Thomas