OK. I have a twist. My TON is a multi-instance and I want to reset it within the FB that is using it. So I don't THINK that I have access to the variables that you refer to.
First... does that make sense?
and then do you have any suggestions?
FUNCTION BLOCK : masterfb
VAR
my_instanced_timer : TON;
END_VAR
BEGIN
//Call of timer
my_instanced_timer(IN:= true, PT:=T#3m);
//Acess of a variable
IF my_instanced_timer.ET > T#3s THEN
//Do something or nothing
;
END_IF;
END_FUNCTION_BLOCK
OK. I will test again on Monday. I hope it doesn't matter but I should make sure that I note that my "clearthedelay" is a one-shot rising (PD).
Here is what i recall seeing in the DB:
Q: False
ET: stopped with a value less than PT (what ever it was when I "clearthedelay")
STATE: B#16#2
STIME: some "random" time
ATIME: the "random" time above plus a tiny bit more than the PT time (maybe 10 ms or so)
I do have a back up plan that just uses relay logic to do what I want (it is not as consise as LD[AR]'s but I didn't think I could "take over" the timer's Q output like that)