Hello Guest it is March 29, 2024, 10:38:54 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 - mega-hz

Pages: 1
1
General Mach Discussion / Re: Mach3 / Pokeys 57u Questions
« on: April 05, 2017, 04:21:28 PM »
In Mach3 one can use variable like #777 ...
Does anyone know how long those user-defined variable keep their values?
And is it possible to use variable with names instead of numbers like #var1 or #my_var_1 ... ?

I would like to write a auto-leveling script like the java program Autoleveller, it is really helpful when outline-milling pcbs!
It would be great to have such funktion directly in mach3!

2
General Mach Discussion / Re: Mach3 / Pokeys 57u Questions
« on: April 02, 2017, 04:45:55 PM »
sorry, that question was stupid  :o ....
If i say 3 iterations, -1mm first depht and 1mm perpass then the result is -3mm, even in the gcode ist -10 declared.
I used those new buttons often today for milling a new plate for my new CNC Controller, those buttons are really helpful!

A nice thing would be to make more than one hole for sub-d, with values for x and y repeats, but i am not so good in VBS...

3
General Mach Discussion / Re: Mach3 / Pokeys 57u Questions
« on: April 02, 2017, 06:13:55 AM »
I made a few new buttons for milling things like sub-d9,25, fan holes and so on.

the script loads a gcode file and asks for iterations, depht ...

Message "SUB-D 9pol fräsen, 2.4mm Fräser, 3.5mm tief"
Message "Mittelpunkt ist X0 Y0 !"

LoadFile("C:\mach3\gcode\sub-d9.tap")
While Isloading()
Sleep(1000)
Wend

repeats = Question ("Wieviele Durchgänge?")
depth    = Question ("Maximum Tiefe im ersten Durchgang?")
perpass = Question ("Zustellung pro Durchgang?")

SetOEMDro  80, depth
SetOEMDro  78, repeats
SetOEMDro  79, perpass
DoOEMButton 218
Message "Press Cycle/Start to Begin"


i want to add a question for the max. depht, how can i do that?
something like:

maxdepht = Question "max-depht"
if SetOEMDro 80 >= maxdepht
{
 SetOEMDro 80, maxdepht
 SetOEMDro  78, 0
}

but how is the right syntax and would this work?
or is there another way of limiting z to maxdepht?

4
General Mach Discussion / Re: Mach3 / Pokeys 57u Questions
« on: March 30, 2017, 11:48:34 AM »
thats strange, when i click on the port1 leds on the diagnostic screen they show me values OEM-Code 137 to 160.
that doesn't fit with the excel-sheet!

Is it possible that the screen-set adds some OEM-Codes?

I am using the PBJ-screenset...

5
General Mach Discussion / Re: Mach3 / Pokeys 57u Questions
« on: March 30, 2017, 08:54:34 AM »
Thanky you, Tweakie, that works fine!

I made a little macro called "start.m1s" with contens of

Code "G00 Z30"
DoSpinCW()
DoOEMButton(1000)

Now i get a safe height and auto-spindel-start!
Great!

Is there a list of all OEMButton, LED and so on - commands?
I am asking this, because i would like to get the states of LPT2 In/Outputs too (in diagnostic screen)

Wolfram.

6
General Mach Discussion / Mach3 / Pokeys 57u Questions
« on: March 30, 2017, 03:02:01 AM »
I have some questions, maybe you can help….

My system:

 PC: Athlon64 3400+, 2GB Ram, 2x LPT PCI-Card
1x Pokeys 57u
1x Siemens Micromaster Vector FU
ISEL Spindel 22000U/min
Mill: X630 Y450 Z220 Portal
Motors: X 1.8Grad/2A, Y1/Y2 1.8Grad/2A, Z1/Z2 1.8Grad/2A, A 1.8Grad/2A 12:64

I have Limitswitches only for  Xmin and Ymin connected, but i want  Xmax,Xmin, Ymax,Ymin, Zmax,Zmin .

1) Is it possible to use POKEYS for all Limitswitches or does it have tob e the LPT?
how to set it up for use with Pokeys?

2) How to setup the mill stopping when a limitswitch ist pushed?

3) are Softlimits for Maschinekoordinaten?

4) I want to start the spindel when push start button even there are no M3 or S… codes and stop it after program

6) Is it possible to connect 7segment LED for DROs on POKEYS ?

7) Why does Mach3 do a reset after using a wizzard? ...and how to setup so the enable-line stays on?




Thank you,
Wolfram.

Pages: 1