Machsupport Forum

Mach Discussion => Mach Screens => Topic started by: Seba on September 27, 2019, 01:11:48 PM

Title: LIcznik
Post by: Seba on September 27, 2019, 01:11:48 PM
Witam .
Proszę o pomoc , jak mam zrobić w Mach Screens  zliczanie wykonanych elementów ?
Pozdrawiam
Title: Re: LIcznik
Post by: ZASto on September 27, 2019, 05:22:34 PM
English, please :)
Title: Counter
Post by: Seba on September 28, 2019, 01:55:23 AM

Witam .
Proszę o pomoc , jak mam zrobić w Mach Screens  zliczanie wykonanych elementów ?
Pozdrawiam
Hello .
I am asking for help, how should I do counting of elements in Mach Screens?
best regards
Title: Re: LIcznik
Post by: RICH on September 28, 2019, 04:46:44 AM
Seba,

Not sure what you mean by "counting of elements".

If  that relates  to your other topic

https://www.machsupport.com/forum/index.php?topic=41800.msg273153#msg273153 (https://www.machsupport.com/forum/index.php?topic=41800.msg273153#msg273153)

Then you  can use a screen editor called MachScreen by K.Dietz to modify a screen set used by Mach.

LINK: https://kd-dietz.com/ (https://kd-dietz.com/)

RICH
Title: Re: LIcznik
Post by: Seba on September 28, 2019, 05:06:31 AM
Hello
Exactly, I want the machu3 to have a counter and show how many elements I did, that is, each time g-cod counts and pops up on the desktop
Title: Re: LIcznik
Post by: ZASto on September 28, 2019, 07:39:35 AM
Graham already explained in your other topic: https://www.machsupport.com/forum/index.php?topic=41800.msg273153#msg273153
Title: Re: LIcznik
Post by: Seba on September 28, 2019, 07:57:01 AM
I am asking for a more detailed explanation or some prtsc how to do it because I do not quite understand
Title: Re: LIcznik
Post by: RICH on September 28, 2019, 12:01:41 PM
Seba,
How to do screen modifications starts with  you  downloading the screen editor.
I gave you the link. Then view / study the tutorials and videos on that site.

I assume you are using the standard Mach3 mill screen which is 1024.set.
Make a copy of that file and place it in a safe place.

Now you must go through a learning curve,
Open the mill screen using MachScreen. 
Click the Help Tab and review all the help.
Play around with all the controls, etc, but don't save anything when you exit MachScreen.

I suggest you download and review the Mach Customization Guide and Macro Programmers reference Manual.

 Ask questions after you do the above.

Yes, someone can do what you want quickly ,BUT, it's better that you learn.

Have some fun with the learning curve ,

RICH

 
Title: Re: LIcznik
Post by: Seba on September 28, 2019, 12:22:55 PM
I have already done all of this, I have adapted the macha3 desktop to my needs, but I would like to add it to count the number of finished g-cods
Title: Re: LIcznik
Post by: Seba on September 28, 2019, 02:19:33 PM
what I'm doing wrong
Title: Re: LIcznik
Post by: ZASto on September 28, 2019, 03:11:53 PM
T1M6
G17

G0X09.048Y08.090Z0
G0X0.000Z0.000
#1200=#1200+1
M30

Do you see where you made a mistake?

In the other topic of yours Graham wrote:

Quote
Then on the end of every g-code file just before the M30 enter

#1200 = #1200 +1
Title: Re: LIcznik
Post by: Seba on September 28, 2019, 05:08:38 PM
But a g-code error pops up
Title: Re: LIcznik
Post by: ZASto on September 29, 2019, 03:41:13 AM
But a g-code error pops up

Code: [Select]
T1M6
G17

G0X09.048Y08.090Z0
G0X0.000Z0.000
#1200=[#1200+1]
M30
%

This one does not throw error :)

When you have math operations, they have to be enclosed in square brackets. Notice the percent (%) sign at the end of the program. If your program does not have CRLF after M30, this is the way to be on the safe side, % is anyway ignored.

HTH
Title: Re: LIcznik
Post by: Seba on September 29, 2019, 05:00:50 AM
Thank you very much but I still don't count the number of completed items
Title: Re: LIcznik
Post by: ZASto on September 29, 2019, 02:34:51 PM
Thank you very much but I still don't count the number of completed items
Not incrementing DRO, user variable incrementing.
But, you can write a macro and add it to your macro folder and it works perfectly:

Code: [Select]
count = getuserdro(1200)
count = count + 1
detuserdro(1200, count)

Save it as M900.m1s

then add it to your GCode program:

Code: [Select]
T1M6
G17

G0X09.048Y08.090Z0
G0X0.000Z0.000
M900
M30
%

It increments DRO 1200 every time before rewinding program.
Title: Re: LIcznik
Post by: Seba on September 29, 2019, 02:58:48 PM
Thank you very much for help .
And how do I add a macro?
Title: Re: LIcznik
Post by: Seba on September 29, 2019, 03:31:46 PM
Is that how I was supposed to do it?
Because it still doesn't work
Title: Re: LIcznik
Post by: ZASto on September 30, 2019, 02:38:57 AM
Ok, typing error :(
last line in macro should be setuserdro...

I realy don't like when people do blind copy/paste.
Title: Re: LIcznik
Post by: Seba on September 30, 2019, 03:18:17 PM
Hello
Thank you very much, everything works beautifully, I am very grateful. Again thank you very much  :) :) :) :) :) :) :) :) :) :)
Title: Re: LIcznik
Post by: Seba on September 30, 2019, 03:21:00 PM
Tomorrow I will insert a screenshot of how it all looks
Title: Re: LIcznik
Post by: ZASto on September 30, 2019, 06:39:01 PM
You're welcome, Sebastian.
Title: Re: LIcznik
Post by: Seba on October 01, 2019, 03:31:12 PM
Once again, thank you. I'm sending a desktop photo. If you are in Poland, I invite you for a beer. Regards
Title: Re: LIcznik
Post by: Seba on October 02, 2019, 10:49:28 AM
Hello, I still have one question, everything works beautifully but when I load the g-cod program it is already counting me how to eliminate it so that mach 3 does not check g-code
best regards
Title: Re: LIcznik
Post by: Overloaded on October 02, 2019, 11:57:31 AM
 :)   ....   in General Config.
Title: Re: LIcznik
Post by: Seba on October 02, 2019, 02:17:40 PM
You are great thank you very much.
I still have one stupid question and is it possible to send a production report by e-mail automatically?
And how did you like the movie I sent chocolate typewriters
Title: Re: LIcznik
Post by: ZASto on October 02, 2019, 04:22:57 PM
Movie is nice, but I could not taste the letters :D
Title: Re: LIcznik
Post by: Overloaded on October 02, 2019, 04:32:08 PM
You are great thank you very much.
I still have one stupid question and is it possible to send a production report by e-mail automatically?
And how did you like the movie I sent chocolate typewriters
You are quite welcome !  :)
The chocolate screen looks really nice, and makes my mouth water .... almost as much as beer does. Yum Yum.
I can't help you with the auto email report, sorry. (there goes my "great" status  :P .... again  ;D
Cheers,
 :)
Title: Re: LIcznik
Post by: Overloaded on October 02, 2019, 05:17:21 PM
Movie is nice, but I could not taste the letters :D
The movie ! ! !
Where is the movie !
I need to see the chocolate movie !
;D  ;D  ;D  :)  >:D
Title: Re: LIcznik
Post by: ZASto on October 03, 2019, 10:40:53 AM
https://www.youtube.com/watch?v=fi79UQxfP4A

Here.
Don't lick monitor :D
Title: Re: LIcznik
Post by: Overloaded on October 03, 2019, 01:46:18 PM
 :) Mmmmmmmm, hold my beer  ;D
Title: Re: LIcznik
Post by: Seba on October 04, 2019, 04:28:22 PM
https://youtu.be/El7OySPwIGA
This is a chocolate typewriter.
Title: Re: LIcznik
Post by: Tweakie.CNC on October 05, 2019, 01:59:31 AM
Hey, come on guys - stop feeding Russ chocolate  ;D ;D

Tweakie.
Title: Re: LIcznik
Post by: ZASto on October 05, 2019, 10:40:16 AM
Why not? It tastes soooo goooooood :)
Title: Re: LIcznik
Post by: Overloaded on October 05, 2019, 08:47:37 PM
Hey, come on guys - stop feeding Russ chocolate  ;D ;D

Tweakie.
;D ;D
Its OK ….. I'm officially on a liquid diet now. :)
Title: Re: LIcznik
Post by: Tweakie.CNC on October 06, 2019, 01:26:43 AM
Why not? It tastes soooo goooooood :)

I didn't like to say before but it make him hyperactive.  ;D ;D