Hello, Thanks for the input @kaare_t and @Clear.Mind, here comes the output :)
# I see now why i should include the rising edge detector here. But what's the difference between PLS and PLS_M? GX Works 2 help is silent on this matter.
# As to the last issue. How the sequence can jump from STEG=3 to STEG=4 without NIVÅ_FÖRRÅDS_KÄRL < NIVÅ_FÖRRÅDS_KÄRL_TOMT ? As mentioned there seems to be a correlation between IN and Q on TON_2 turning false and STEG turning 4, skipping over the criteria LESSTHAN.
Cheers // DA