Hello,
is there any easier way to detect rising edge in ST language than below example?
By FBD language are prepared P or N coils.
IF I1 = true AND M1=FALSE THEN
M1 := TRUE;
ELSIF I1 = FALSE AND M1=TRUE THEN
M1 := FALSE;
END_IF;
Other way would be simple user block written in FBD.