FUNCTION_BLOCK MECH1_DIAG

Hover on a highlighted element
to pop up its description (if any).

ECC
ALGORITHM COUNT_UP IN ST :
COUNT := COUNT + 1;
END_ALGORITHM

ALGORITHM RESET IN ST :
COUNT := -1;
END_ALGORITHM

An instance of this Basic Function Block type provides diagnostics for unidirectional motion, e.g., for one direction of a bidirectional mechanism as modeled by an instance of the MECH2_MDL type. A timeout fault FLT is triggered if the mechanism fails to reach the END sensor within N occurrences of an event at the CLK input after the FWD command is received.