not sure if I understand correctly what is the issue. Can you provide more information?
Can you share screenshot of the project part and a sketch of desired behaviour?
Is the issue about setting binary inputs sequentially which produces more logs to be written?
I see. In that case the simplest approach is to use the TSE block (three state element), which moreorless combines two comparators with hysteresis.
you are right, it is necessary to force the valve to fully closed position once in a while. The SRTF function block is not the best one for your needs. I'd go for the ATMT state machine or simply use an ISSW switch to send logic 1 to the DN (CLOSE) input.