Hello Guest it is June 10, 2024, 08:32:34 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 - Fredrich

Pages: 1 2
1
Brains Development / Re: Execution M00 for Brains
« 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.

2
Brains Development / Re: Execution M00 for Brains
« 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

3
Brains Development / Re: Execution M00 for Brains
« 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.

4
Brains Development / Re: Execution M00 for Brains
« 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.

5
Brains Development / Re: Execution M00 for Brains
« 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.

6
Brains Development / Re: Execution M00 for Brains
« on: May 15, 2023, 03:52:48 PM »
Tomas, apparently the link you gave me is damaged or for something it won't let me access this information.
What do you mean by VB macro converter?
What I want to say and maybe I don't explain it well is that I need the program to pause when it detects the input signal input1, it is to prevent the gcode from continuing to play in the program until the mortiser tool is removed from the zone work, until the break is resumed. It would work very much like the MPG function... Only MPG won't be of any use to me in this case either.
Excuse my ignorance on the subject, maybe I'm still a bit fresh on this.

Kind regards,
Fred.

if you have a look in here:

http://support.machsupport.com/de/downloads/files/using-mach3-mill/download

chapter 10.7.12 explains, what G31 will do.

basicly G31 will stop movement triggered by an input signal.
it will not continue after input signal goes off again.
this wil have to be done by logic within a macro, the benfit is that the movement will
be stopped imediately.

i don't know where your GCode is coming from, but someting like a GCode "converter",
VB macro, might be the way to go.

can you post a sample GCode to see how it looks like.

7
Brains Development / Re: Execution M00 for Brains
« on: May 15, 2023, 01:38:31 PM »
Is it possible to execute G31 with the pulse of input1 and pause the G code? or will it also be added to the queue?

Kind regards,
Fred.
i was affraid that this problem will come up, because code from macros is added into the queue.

so as Graham mentoined, G31 will be the road to go.

8
Brains Development / Re: Execution M00 for Brains
« on: May 15, 2023, 08:48:43 AM »
Hello Thomas, how are you again? I hope it's ok!
I'm testing the script you gave me and it seems to work correctly, that's great.
At this moment I have another problem, apparently the macro is executed when the G code finishes running, let's say; While the axes are running the coordinates this macro appears to be invalid. Maybe I did some wrong configuration...
I add that input1 is also being emulated when activating oemtrigger#1.

Thank you very much for your help, you are being very useful for me.
Kind regards,
Fred.

sorry, my fault:

Code: [Select]
If IsActive (OEMTRIG1) Then
      Code "M00"
      While (IsActive(Input1))
         Sleep(100)
      Wend
End If

9
Brains Development / Re: Execution M00 for Brains
« on: May 14, 2023, 09:03:46 PM »
Hello Tomas. how are you?
I hope it's ok. I have been trying to execute this macro and I have been able to, I have the following error, when executing the macro it says "script compile error m334", according to my deduction it is that some configuration or an error in the development of the M334... I have it exactly as I want you have developed it. When I run the macro the axes don't stop moving while the G code runs.

Kind regards,
Fred.

10
Brains Development / Re: Execution M00 for Brains
« on: May 10, 2023, 01:35:12 PM »

Tomas,
In this case I can't find the function to add a macro to the OEMTrigger


Hi Fred,

your code snipped will freeze the system because of your Do Loop.

you can try to use a OEMTrigger to run a macro.
how this is done i explained here:
https://www.machsupport.com/forum/index.php?topic=46414.msg293415#msg293415

but i am affraid that all this will be to slow anyhow.

without knowing exactly what the machine should do, it is very hard to think about possibilties.

Pages: 1 2