Hello Guest it is May 20, 2019, 01:39:01 PM

Author Topic: Mach3 / Pokeys 57u Questions  (Read 1512 times)

0 Members and 1 Guest are viewing this topic.

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.

Offline Tweakie.CNC

*
  • *
  •  7,764 7,764
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Mach3 / Pokeys 57u Questions
« Reply #1 on: March 30, 2017, 06:41:32 AM »
Hi Wolfram,

Welcome to the forum.

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

I have not tried this but you could perhaps give it a try.

Using a Mach3 screen designer change the Cycle Start button from OEM to Execute VB Script.
Then within Mach3 insert into the Cycle Start button…

DoSpinCW()
DoOEMButton(1000)

That should turn on the spindle (as M3) then perform the Cycle Start.

To stop the spindle at program end then in Config. / General Config , check the ‘Turn off all outputs’ box in ‘Pgm End or M30 or Rewind’ box.

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
Re: Mach3 / Pokeys 57u Questions
« Reply #2 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.

Offline Tweakie.CNC

*
  • *
  •  7,764 7,764
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Mach3 / Pokeys 57u Questions
« Reply #3 on: March 30, 2017, 10:04:42 AM »
Quote
Is there a list of all OEMButton, LED and so on - commands?

http://www.machsupport.com/forum/index.php?action=dlattach;topic=9312.0;attach=6986

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
Re: Mach3 / Pokeys 57u Questions
« Reply #4 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...

Offline Tweakie.CNC

*
  • *
  •  7,764 7,764
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Mach3 / Pokeys 57u Questions
« Reply #5 on: March 31, 2017, 01:39:32 AM »
Hi Wolfram,

I have no answer to that.  :-\
The "port 1 pins current state" led's are bit of a mute point - sometimes they work and sometimes they don't.

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.
Re: Mach3 / Pokeys 57u Questions
« Reply #6 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?
« Last Edit: April 02, 2017, 06:21:11 AM by mega-hz »
Re: Mach3 / Pokeys 57u Questions
« Reply #7 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...
Re: Mach3 / Pokeys 57u Questions
« Reply #8 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!

Offline Tweakie.CNC

*
  • *
  •  7,764 7,764
  • Super Kitty
    • View Profile
    • Tweakie.CNC
Re: Mach3 / Pokeys 57u Questions
« Reply #9 on: April 06, 2017, 02:01:28 AM »
The use of pound variables is not fully documented in the Mach3 manuals so information is a bit sketchy. Certainly the Common Variables #500 to #999 are written to the .xml file and therefore remembered at switch-off and will keep their values until such time as they are changed.

I have never actually tried it but I am sure that terms like  #var1 or #my_var_1  are not allowed.

Tweakie.
Success consists of going from failure to failure without loss of enthusiasm.  Winston Churchill.