Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 03:01:58 AM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  mach3 and beam saw
Pages: 1 2 »   Go Down
Print
Author Topic: mach3 and beam saw  (Read 885 times)
0 Members and 1 Guest are viewing this topic.
Csabika
Active Member

Offline Offline

Posts: 18


View Profile
« on: May 23, 2010, 03:17:41 PM »

Helo!

Make old machine control exchange on a saw, Mach3 controls it and DSPMC - Ethernet Motion Controller
The problem:
a macro would be needed what does a process if it is X the value of an axis smaller than 150 mm ,
so X let an axis go onto a size there let him wait give one M9 code, and let him go to the back 200mm
I tried to do it, but since 0 are his starting values x axis, the mach does nothing at the time of a departure

Regards Csaba
Huh
Logged
Csabika
Active Member

Offline Offline

Posts: 18


View Profile
« Reply #1 on: May 25, 2010, 01:06:10 AM »

There is not a solution, please help me!
Logged
stirling
Global Moderator
*
Offline Offline

Posts: 1,189

UK


View Profile WWW
« Reply #2 on: May 25, 2010, 09:56:31 AM »

Hi Csabika - welcome to the forum.

Can you explain again what you're trying to do? Also can you attach your macro as far as you have got please?
Logged
Csabika
Active Member

Offline Offline

Posts: 18


View Profile
« Reply #3 on: May 25, 2010, 05:06:32 PM »

Hi stirling!

Remake beam saw.
The problem:
Small size the saw takes on the motive construction,
it is necessary to release the sheet after standing for a size because of this

macropump.m1s

CurrentXposition = GetOemdro(842)

If CurrentXposition <= 150 Then
code "M9"
Else
code"G90 x300"
End If

Logged
stirling
Global Moderator
*
Offline Offline

Posts: 1,189

UK


View Profile WWW
« Reply #4 on: May 26, 2010, 02:47:44 AM »

Hi Csabika - Sorry but I'm still not sure what you want to do. But if I describe what your macro is doing it may help you to find a solution.

A macropump driven macro runs every 10th of a second - continually. Therefore when X<=150 it will just execute an M9 over and over again - forever - until something else (your gcode maybe?) moves X over 150. BUT - when X>150 it will execute a G90 X300 over and over again - forever - again until something else moves it less than 150. Then of course your back in the first condition - etc. etc.

Cheers

Ian
Logged
Csabika
Active Member

Offline Offline

Posts: 18


View Profile
« Reply #5 on: May 26, 2010, 03:28:54 PM »

Hi Ian!
Yeah! I do not know the solution because of this.Because, with the first occasion when X<150 runs down then the macro, but the machine leaves so that X=0 and the macro runs immediately already that switches it over to 300 and is frozen off there! I gave a thought to it how I put a switch onto the beam and when the motive construction is so near that the intestine of the saw would cut it X into an axis presses the switch before it and a macro runs down onto the sign of that switch then and it sends it backwards X axis.

thanks!

Csaba

Logged
stirling
Global Moderator
*
Offline Offline

Posts: 1,189

UK


View Profile WWW
« Reply #6 on: May 27, 2010, 10:13:11 AM »

Csabika - can you attach your gcode file please?

Cheers

Ian
Logged
Csabika
Active Member

Offline Offline

Posts: 18


View Profile
« Reply #7 on: May 27, 2010, 11:48:46 AM »

Hi Stirling!

A code detail, a board starts his length:

M3
g0 x2000
m7
m8g04p2
y1500
m9g04p2y0
x800
m7
m8g04p3
y1500
m9g04p2y0
m5
y0
M3
g0 x100
m7
m8g04p2
y1500
m9g04p2y0

It M codes control valves

csabika
Logged
stirling
Global Moderator
*
Offline Offline

Posts: 1,189

UK


View Profile WWW
« Reply #8 on: May 28, 2010, 02:39:28 AM »

Hi csabika - maybe I'm missing the point - but I can't see why you need a macro at all and certainly not a macropump. Your gcode is completely predictable (as is gcode generally) so you KNOW where it's going to be at any time. You don't need to say "IF X < anything" because you commanded it to be there. Just write your gcode to do whatever it is you want with your saw and it will do it.

FWIW - you need to command a Feedrate and use G1 for your cuts. At the moment you are cutting at RAPID (G0) speed - generally not good practice.

Hope this helps - Ian
Logged
Csabika
Active Member

Offline Offline

Posts: 18


View Profile
« Reply #9 on: May 28, 2010, 01:07:21 PM »

Hi Stirling!

I make!
for me a problem ,
If the size is small, A saw cuts into iron
I turned up output1 let an be a pliers, and made macropump
if input gives a sign, releases it the pliers, and an axis goes to the back 200mm
Logged
Pages: 1 2 »   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!