Hello Guest it is December 14, 2024, 11:47:22 AM

Author Topic: Execution M00 for Brains  (Read 12070 times)

0 Members and 1 Guest are viewing this topic.

Re: Execution M00 for Brains
« Reply #20 on: May 17, 2023, 09:46:12 AM »
Hello Thomas, how are you? I hope it's ok. I am attaching the G code, which is the working model of the machine... The movement of the Y and A axis are the ones that definitely pause and resume the program.
I also attached an approximate video of what I need to develop.

https://www.youtube.com/watch?v=3EzxVWbfzBE
https://www.youtube.com/watch?v=uTg2jy6O4uw

Kind regards,
Fred.

the link downloads a file named Mach3Mill_1.84.pdf. pls check your download folder.

anyway, i do not know a possibility to pause a program by digital input.

with a vb macro converter i mean a VB macro witch reads the original GCode and
creates new program with use of G31.

that's why i asked for a sample GCode file witch will be used on the machine.

Offline TPS

*
  •  2,536 2,536
Re: Execution M00 for Brains
« Reply #21 on: May 18, 2023, 04:14:57 AM »
Hello Fred,

how is the stroke driven ? Hydraulic or excenter drive or?

usualy there is more then one stroke per a position,but does not matter ?

so the sequence would be

-ckeck stroke is up
-Y-axis to a save positon for turn
-turn A-axis
-Y-axis to the first position
-stroke down
-Y-axis back
-stroke up
-Y-axis to the next position
-stroke down
-Y-axis back
-stroke up

and so on until Y-axis depth is reached
then if necessary the same for next a position.
« Last Edit: May 18, 2023, 04:16:33 AM by TPS »
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: Execution M00 for Brains
« Reply #22 on: May 19, 2023, 11:27:12 AM »
Hello Thomas, how are you?
He's eccentric...
And in this case, what would the g code look like?
My other question is, how does the control know not to move until the tool stops making the pass?
To all this, for this reason I wanted to make the signal enter through a sensor to execute M00 and that the program is in a state of pause until the tool is withdrawn..

Kind regards,
Fred.


Hello Fred,

how is the stroke driven ? Hydraulic or excenter drive or?

usualy there is more then one stroke per a position,but does not matter ?

so the sequence would be

-ckeck stroke is up
-Y-axis to a save positon for turn
-turn A-axis
-Y-axis to the first position
-stroke down
-Y-axis back
-stroke up
-Y-axis to the next position
-stroke down
-Y-axis back
-stroke up

and so on until Y-axis depth is reached
then if necessary the same for next a position.
« Last Edit: May 19, 2023, 11:38:55 AM by Fredrich »

Offline TPS

*
  •  2,536 2,536
Re: Execution M00 for Brains
« Reply #23 on: May 19, 2023, 02:13:12 PM »
OK inthis case you will need two signal's

-excenter in top position
-excenter in bottom position

-how will the excenter drive be controlled? simple On/OFF by relay?

-what will do the feed forward, if there is more then one stroke at a position ? Y-Axis?

-has it to do a small step backward's when the stroke goes up?

question's and more question's.
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: Execution M00 for Brains
« Reply #24 on: May 19, 2023, 08:15:43 PM »
Tomas, your help at this time is greatly appreciated.
The machine does not need to be withdrawn because the tool mechanically withdraws itself by returning to the top of the eccentric.
This is when I need that when the tool is on the material, it does not move, that it remains paralyzed until the eccentric is at the top...
On the other hand, the eccentric drive is indifferent to mach3, it works manually depending on the operator.
Deals a single hit for every 4 hundredth advance. I am available for any kind of question you want to ask.

Kind regards,
Fred.

OK inthis case you will need two signal's

-excenter in top position
-excenter in bottom position

-how will the excenter drive be controlled? simple On/OFF by relay?

-what will do the feed forward, if there is more then one stroke at a position ? Y-Axis?

-has it to do a small step backward's when the stroke goes up?

question's and more question's.

Offline TPS

*
  •  2,536 2,536
Re: Execution M00 for Brains
« Reply #25 on: May 20, 2023, 10:18:31 AM »
so you will only need a simple macro.

for example m123.m1s

Code: [Select]
If IsActive (Input1) Then
      Sleep(100) 'wait for input to go off
End If
Sleep(100)
If Not IsActive (Input1) Then
      Sleep(100) 'wait for input to go on again
End If


and GCode would look like:

Code: [Select]
m3
m7
f300
g0a0
g1y-20
g0y-15
m123
g0a20


g1y-20
g0y-15
m123
g0a40

.....

then macine wil go to position an wait for Input1 to be OFF and ON again
« Last Edit: May 20, 2023, 10:20:07 AM by TPS »
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: Execution M00 for Brains
« Reply #26 on: May 20, 2023, 11:31:09 AM »
Hello Thomas, how are you?
Does this macro have to be configured as a macrobomb? How did we try it before or just create the macro, enter the values ​​and it will automatically run itself?

Kind regards,
Fred.

so you will only need a simple macro.

for example m123.m1s

Code: [Select]
If IsActive (Input1) Then
      Sleep(100) 'wait for input to go off
End If
Sleep(100)
If Not IsActive (Input1) Then
      Sleep(100) 'wait for input to go on again
End If


and GCode would look like:

Code: [Select]
m3
m7
f300
g0a0
g1y-20
g0y-15
m123
g0a20


g1y-20
g0y-15
m123
g0a40

.....

then macine wil go to position an wait for Input1 to be OFF and ON again

Offline TPS

*
  •  2,536 2,536
Re: Execution M00 for Brains
« Reply #27 on: May 20, 2023, 01:16:55 PM »
no, you have to create a macrofile in your macrofolder (normaly C:\Mach3\macros\ your profile name) with
the name M123.M1S, plain Textfile (notepad or simular), then copy the posted code into the file.

the GCode will call the Macro:

g1y-20
g0y-15
M123
g0a40

and the code in the macro will "wait"/"pause" until Input1  goes OFF and ON again.
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: Execution M00 for Brains
« Reply #28 on: October 31, 2023, 10:41:29 AM »
Hi Thomas,
It has been of great help to me for this project. The shroud is working correctly thanks to you and those who were able to give me a hand.

I finally managed to make it work with M1 which is activated with an external signal.
What I couldn't achieve was to generate that macro we talked about so I could make the machine do it automatically. I figure that later I'll be able to sit down and experiment a little more with this.
I leave the link so you can see how the project turned out.
Kind regards,

https://www.youtube.com/watch?v=DytJubEY_OM

Fredrich.





no, you have to create a macrofile in your macrofolder (normaly C:\Mach3\macros\ your profile name) with
the name M123.M1S, plain Textfile (notepad or simular), then copy the posted code into the file.

the GCode will call the Macro:

g1y-20
g0y-15
M123
g0a40

and the code in the macro will "wait"/"pause" until Input1  goes OFF and ON again.