Field 877 Active Modal States at Initilisation

If you have a question about the software please ask it here.

Re: Field 877 Active Modal States at Initilisation

Postby Vmax549 » Thu Aug 09, 2018 11:35 pm

I just tried it 3 times in a row here and it did not update to G18 after pressing Reset. I can run teh M99998 from teh MDI and it works fine just not on startup.

Version 2106.

I will try it as well on another setup I have here.

(;-) TP
Vmax549
 
Posts: 1104
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Re: Field 877 Active Modal States at Initilisation

Postby cncdrive » Thu Aug 09, 2018 11:35 pm

It works fine here.

Code: Select all
exec.Callbutton(513);
exec.Code("G18");
cncdrive
Site Admin
 
Posts: 2113
Joined: Tue Aug 12, 2014 11:17 pm

Re: Field 877 Active Modal States at Initilisation

Postby Vmax549 » Fri Aug 10, 2018 12:53 am

Tried another system no go.

M99998

exec.Code("G18");
exec.Wait(100);

Then I manually hit reset.

I would guess the only way it works is IF you program reset BEFORE teh G18. Which here IS a safety concern that the Reset is automatically turned on on startup.

The safety protocol we use is the machine cannot be auto engaged on startup. The operator ONCE he verifies teh machine is safe to travel hits teh reset button and you do a Refhome routine and THEN you are good to go.

(;-) TP
Vmax549
 
Posts: 1104
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Re: Field 877 Active Modal States at Initilisation

Postby cncdrive » Fri Aug 10, 2018 1:21 am

Yes, what I've coded is exactly what I sad to do.
I think that executing code with manually removing the reset is at least as dangerous if not more than this solution.
Another solution would be to make the macro to wait for the reset to happen, but I do not feel it safer at all.
There is also a 3rd way to not remove the reset just make the UCCNC think it is removed, but I don't want to post that solution as I don't want people to know about it and to let them use that solution.
cncdrive
Site Admin
 
Posts: 2113
Joined: Tue Aug 12, 2014 11:17 pm

Re: Field 877 Active Modal States at Initilisation

Postby Vmax549 » Fri Aug 10, 2018 1:37 am

Manually resetting Reset has been safe over here for at least teh last 40 years that I know of. It is standard practice to make SURE teh machine is clear for travel then hit Reset. It does an auto refhome then is ready to go.

I have worked with a LOT of OEMs that have rigid safety functions they build into their machines and it has kept them out of trouble for 30-40 years now. Most modern controller have safety functions built in that you can access. Such as door open, setup mode, startup modes , etc

BUT different strokes for different folks , 8-)

(;-) TP
Vmax549
 
Posts: 1104
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Re: Field 877 Active Modal States at Initilisation

Postby cncdrive » Fri Aug 10, 2018 1:58 am

What I don't feel safe is a possible unexpected motion when the user removes the reset which is also not safe if the macro removes the reset.
But for a G18 there is no motion, so it does not really matters. But if you think it is unsafe then you can simply make the macro to wait for the reset to happen to execute the G28 or whatever else g-codes.
And yes, I understand that automatically removing the reset without doing anything else can be also a safety issue.
cncdrive
Site Admin
 
Posts: 2113
Joined: Tue Aug 12, 2014 11:17 pm

Re: Field 877 Active Modal States at Initilisation

Postby Vmax549 » Fri Aug 10, 2018 1:06 pm

The difference in our thinking is I do a Manual intervention of teh process. The OP has to make a decision to start teh machine. Part of the decision is to make sure it is clear and ready to move.

I see no difference between " manually " pressing reset and manually pressing Cycle Start. The OP is responcible in both cases to insure teh machine is safe to move.

(;-) TP
Vmax549
 
Posts: 1104
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Re: Field 877 Active Modal States at Initilisation

Postby cncdrive » Fri Aug 10, 2018 1:08 pm

Terry,

I'm just saying that however the OP is responsible, but if the OP don't know if removing the reset will trigger a movement is kind of dangerous for both the machine and for the operator.
Ofcourse this is not an issue with a G18, because it causes no motion...
cncdrive
Site Admin
 
Posts: 2113
Joined: Tue Aug 12, 2014 11:17 pm

Re: Field 877 Active Modal States at Initilisation

Postby Vmax549 » Sun Aug 12, 2018 8:36 pm

" There is also a 3rd way to not remove the reset just make the UCCNC think it is removed, but I don't want to post that solution as I don't want people to know about it and to let them use that solution."

That sounds like teh perfect solution for Prestartup safety functions with UCCNC.

Being able to perform safety functions before teh reset is actually reset and teh machine go active.

HUM ????

(;-) TP
Vmax549
 
Posts: 1104
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Re: Field 877 Active Modal States at Initilisation

Postby kig23 » Wed Aug 15, 2018 10:10 am

Hi,
here is other solution to set G18 from constructor macro (M99998). Just put the code in the constructor macro.

Code: Select all
new Thread(delegate () {
    SetGcode ();
   }).Start();

#Events

private void SetGcode ()
{
   while (AS3.GetLED (25));
   Thread.Sleep (500);
   
    exec.Code ("G18");
}


When you press Reset, G18 will be set. Hope the code is usful.
kig23
 
Posts: 72
Joined: Sat Mar 31, 2018 6:58 am

Previous

Return to Ask a question from support here

Who is online

Users browsing this forum: No registered users and 0 guests