1. In PAconfigurator, create a name of the type PAscript.
  2. Create a new group of the type Graphical programming.
  3. Open this group so the user interface opens.
  4. Define the local and global variables you want to use.
  5. Define which PAscript libraries you want to use.
  6. Create the states and transitions that you need for your state machine.
  7. Add all necessary additional elements to the state machine.
  8. Write the PAscript code for the states and transitions.
  9. Call the state machine using one of the following options:
    • In a task
    • In an operation table
    Alternatively, define the operation group for its execution using the Execute programs operation.