M66 IF Request in Subroutine

More
23 Nov 2023 19:36 #286363 by rmu
Replied by rmu on topic M66 IF Request in Subroutine
ok you have to describe in detail what the signal levels are when, what is expected and what is happening. i checked the thread, you only say "it works" or "it doesn't work".

i'm pretty sure the variable is written like it should, so something else is going on.

Please Log in or Create an account to join the conversation.

More
23 Nov 2023 19:40 - 23 Nov 2023 19:43 #286365 by CNC_ANDI
when O104 is not ok then -1 will be written
when O104 is ok then +1 will be written
when O105 is not ok +1 is written
when O105 is ok +1 is written

the 2 sensor are ok when it changes to high

sensor 1 high ok drawbar is open
sensor 2 high ok tool is clamped

but the drawbar (sensor 1) most be close before i can check sensor 2 (clamped tool)
Last edit: 23 Nov 2023 19:43 by CNC_ANDI.

Please Log in or Create an account to join the conversation.

More
23 Nov 2023 20:58 - 23 Nov 2023 20:59 #286372 by rmu
Replied by rmu on topic M66 IF Request in Subroutine
the waiting time is large enough? in the "doesn't work" case it times out?
Last edit: 23 Nov 2023 20:59 by rmu.

Please Log in or Create an account to join the conversation.

More
24 Nov 2023 13:06 #286398 by CNC_ANDI
so i think the waiting time from 0.5 seconds are enaugh. but i will check it with 1 seond

G4 P1.0
M66 P29 L3 Q1 ; check for tool
O105 if [#5399 LT 0]
(abort, failed tool not clamped)
O105 endif
G0 G53 Z0

Please Log in or Create an account to join the conversation.

More
24 Nov 2023 17:15 - 24 Nov 2023 17:19 #286416 by rmu
Replied by rmu on topic M66 IF Request in Subroutine

when O104 is not ok then -1 will be written
when O104 is ok then +1 will be written
when O105 is not ok +1 is written
when O105 is ok +1 is written

the 2 sensor are ok when it changes to high

sensor 1 high ok drawbar is open
sensor 2 high ok tool is clamped

but the drawbar (sensor 1) most be close before i can check sensor 2 (clamped tool)

 

That is somewhat incomplete and contains at least one significant typo.
You say the second M66 doesn't write the parameter, so that means the in case the first if doesn't abort the second also doesn't abort but should abort, right?
Last edit: 24 Nov 2023 17:19 by rmu.

Please Log in or Create an account to join the conversation.

More
25 Nov 2023 15:03 #286463 by CNC_ANDI
when sensor 2 is not at high it have too abort but i can check sensor 2 not before the drawbar is closed and sensor 1 is low

Please Log in or Create an account to join the conversation.

More
26 Nov 2023 02:27 #286521 by tommylight
Spammer booted.
Thank you.

Please Log in or Create an account to join the conversation.

Time to create page: 0.079 seconds
Powered by Kunena Forum