Hello Guest it is May 11, 2021, 05:01:27 PM

Author Topic: ARC-ON TIMER AND PIERCE COUNTER IN MACH3  (Read 9793 times)

0 Members and 1 Guest are viewing this topic.

Offline TPS

*
  •  2,129 2,129
    • View Profile
Re: ARC-ON TIMER AND PIERCE COUNTER IN MACH3
« Reply #20 on: October 25, 2019, 05:55:06 AM »
if you use machscreen just click on the button, than you will see a selection list, where the button and the DRO is shown, then click
(left mouse button) and hold the button to 'move' the transparent button upwards in the list. hope you understand my bad bavarian english.
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: ARC-ON TIMER AND PIERCE COUNTER IN MACH3
« Reply #21 on: October 25, 2019, 06:05:26 AM »
Understood, I was trying to cover 2 DRO buttons with 1 transparent button and I think that is where my problems were coming from, when I tried to click on one of the buttons to check then the whole transparent button was turning blue and getting darker with each click of the button. I'll try a small transparent button over each of the DRO's and see if that fixes it.

Thank you
Re: ARC-ON TIMER AND PIERCE COUNTER IN MACH3
« Reply #22 on: October 25, 2019, 08:32:31 PM »
Where can I find a list of codes that can be used for changing things?

For example I would like for the button or an led to start flashing yellow at a certain number and maybe go red after a higher number?

Thank you

Offline TPS

*
  •  2,129 2,129
    • View Profile
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.
Re: ARC-ON TIMER AND PIERCE COUNTER IN MACH3
« Reply #24 on: October 26, 2019, 02:48:19 AM »
Thank you again
Re: ARC-ON TIMER AND PIERCE COUNTER IN MACH3
« Reply #25 on: October 28, 2019, 10:41:02 AM »
Ok, not sure what I am doing wrong but I tried both of your timers and on a cut where the torch fires for @20 seconds the timer shows 66 I have tried different ways to show the number but it seems to be off or I am one.

I copied both of your suggestions in the M3 and M5 but it gives me the same numbers?

Any Ideas?
On mach3 the total elapsed time was showing 24 sec and the timer shows 66

Ideally I would like it to display in minutes on the screen.

Thanks
« Last Edit: October 28, 2019, 10:48:06 AM by DWalls »
Re: ARC-ON TIMER AND PIERCE COUNTER IN MACH3
« Reply #26 on: October 28, 2019, 11:37:00 AM »
Ok, I found the culprit and it has nothing to do with your code, you already knew that but I didn't haha
it appears that my post processor is adding an extra line after the M05 and it has another M05 and M30 and for whatever reason the time multiplies for each of those commands, it is easy enough to edit my post and delete the last line but not sure why sheetcam is adding that extra line, also don't understand why the M30 is effecting the time counter?

N0010 (Filename: circle.tap)
N0020 (Post processor: Mach3 plasma no Z.scpost)
N0030 (Date: 28/10/2019)
N0040 G20 (Units: Inches)
N0050 G53 G90 G91.1 G40
N0060 F1
N0070 S500
N0080 (Part: circle)
N0090 (Operation: Outside Offset, LAYER_1, T1: Plasma, 0.04 in kerf)
N0100 G00 X-0.0590 Y4.9645
N0110 M03
N0120 G04 P150
N0130 G01 X-0.0200 Y5.1607 F100.0
N0140 G02 X-0.0200 Y5.1607 I5.1807 J-0.0000
N0150 G03 X-0.1480 Y5.2887 I-0.1280 J0.0000
N0160 M05
N0170 M05 M30




Thanks again

Offline TPS

*
  •  2,129 2,129
    • View Profile
Re: ARC-ON TIMER AND PIERCE COUNTER IN MACH3
« Reply #27 on: October 29, 2019, 11:53:16 AM »
ok, this M5 code should work even if M5 is called twice


M5 code
Code: [Select]
'check that endtime has not been calculated allready
If GetUserDro(1600) <> 99999 Then
'save the cuttime
SetUserDro(1601 , GetUserDro(1601) + ( Timer - GetUserDro(1600)))
'set calculation allready done
SetUserDro(1600,99999)
End If



it is not the M30 witch is acting the Problem, it is the double cáll of M5, then cuttime was calculated (added) twice.
the new code should help.

« Last Edit: October 29, 2019, 11:55:31 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: ARC-ON TIMER AND PIERCE COUNTER IN MACH3
« Reply #28 on: October 30, 2019, 08:41:14 AM »
Should this go before or after the other code that calculates the time?

Maybe I will get a chance to try this in the next few days.

Thank you for your help

Offline TPS

*
  •  2,129 2,129
    • View Profile
Re: ARC-ON TIMER AND PIERCE COUNTER IN MACH3
« Reply #29 on: October 30, 2019, 02:52:04 PM »
no, instead of pls replace


M5 code
Code: [Select]
'save the cuttime
SetUserDro(1601 , GetUserDro(1601) + ( Timer - GetUserDro(1600)))

by

M5 code
Code: [Select]
'check that endtime has not been calculated allready
If GetUserDro(1600) <> 99999 Then
'save the cuttime
SetUserDro(1601 , GetUserDro(1601) + ( Timer - GetUserDro(1600)))
'set calculation allready done
SetUserDro(1600,99999)
End If




anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.