Text this: A generic approach to the automated startup and shutdown of processing units using sequential function charts