If you have variables that are not defined in the test, but you need to include them in the code for your state machine, then you must define them as local variables. For example, local variables are counter variables for loops or auxiliary variables.

Local variables are not norm names and are valid only in the program in which they are defined.

  • All data types besides pabasic are available as data types, described in the PAscript documentation.
  • The general rules for defining global variables apply.
  • Local variables are initialized with optional user-defined initialization values or with in PAscript specified default values. Also for local variables, there is NO section initialization for variable initialization.
  • The definition happens in the Local Variables window.
  • The Local Variables window opens in the code view when you click in the Explorer on the Local Variables node.