#condition := (Value1 > 0 OR NOT Tag1) AND Tag2; IF #condition_positive_edge THEN some_code(); END_IF;