Common state machines of function blocks