Hello Guest it is April 12, 2021, 07:13:35 PM

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

0 Members and 1 Guest are viewing this topic.

Re: ARC-ON TIMER AND PIERCE COUNTER IN MACH3
« Reply #10 on: October 24, 2019, 03:48:20 AM »
Awesome, so I will just cut and paste that into my M5 file and create the DRO for it and it should work?

I have been trying to get my pierce counter and reset working all night and I think that it should now but I won't know for sure until I hook it up in the morning.

Thanks again.

Offline TPS

*
  •  2,102 2,102
    • View Profile
Re: ARC-ON TIMER AND PIERCE COUNTER IN MACH3
« Reply #11 on: October 24, 2019, 03:54:40 AM »
yes i thinks it should work.

piercecounter will be in DRO 1602
cuttime in DRO 1601
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 #12 on: October 24, 2019, 04:07:54 AM »
I made my DRO "User Defined:950" and it wouldn't work until I tried the 1602 like you suggested and it worked. I have since found out that whenever I label it below 1000 it doesn't work and as long as I'm above 1000 then it works.

Thanks again

Offline TPS

*
  •  2,102 2,102
    • View Profile
Re: ARC-ON TIMER AND PIERCE COUNTER IN MACH3
« Reply #13 on: October 24, 2019, 04:18:58 AM »
UserDro's start at 1000, i allways use them above 1100 because some at the 1000 aeria are used by Standard Screen set.
anything is possible, just try to do it.
if you find some mistakes, in my bad bavarian english,they are yours.

Offline TPS

*
  •  2,102 2,102
    • View Profile
Re: ARC-ON TIMER AND PIERCE COUNTER IN MACH3
« Reply #14 on: October 24, 2019, 04:34:06 AM »
here is a easier Version:

M3 code
Code: [Select]
'Save the starttime in seconds
SetUserDro(1600, Timer)

'increment the piercecounter
SetUserDro(1602,GetUserDro(1602)+1)

M5 code
Code: [Select]
'save the cuttime
SetUserDro(1601 , GetUserDro(1601) + ( Timer - GetUserDro(1600)))
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 #15 on: October 24, 2019, 04:38:57 AM »
UserDro's start at 1000, i allways use them above 1100 because some at the 1000 aeria are used by Standard Screen set.

That explains why it was giving me fits, I was going off of an old post on another forum from over 4 years ago maybe longer so maybe user dro's were less back then.
Re: ARC-ON TIMER AND PIERCE COUNTER IN MACH3
« Reply #16 on: October 25, 2019, 01:24:25 AM »
Is there any way to protect the DRO so that you can't change the number, read only if you will? it doesn't really matter because the way that it is now eliminates the need for a reset button, just wondering?

Thanks again for your help, the counter is working fine, I'll work on the timer next.

Offline TPS

*
  •  2,102 2,102
    • View Profile
Re: ARC-ON TIMER AND PIERCE COUNTER IN MACH3
« Reply #17 on: October 25, 2019, 04:37:56 AM »
i don't know a "direct" way to make a dro read only, but you can put a transparent button (witch has no functionality) over the DRO
to "protect" it for Input.
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 #18 on: October 25, 2019, 04:46:00 AM »
Man, you are awesome, what don't you know about setting this up. I'll try that

Thank you again.
Re: ARC-ON TIMER AND PIERCE COUNTER IN MACH3
« Reply #19 on: October 25, 2019, 05:16:03 AM »
I placed a transparent button over the DRO but I am still able to enter a value in the DRO, what am I missing to make sure that the transparent button is  on top?