Methods

A method is an action or subprogram that an event performs under certain circumstances.

An event performs a method when:
  • an event occurs at runtime
  • an event required by a runtime C# script occurs at runtime
  • a request from an OPC UA client occurs at runtime
  • a C# script runs at design time
You can associate multiple methods with a single event. When the event occurs, the methods are performed in the order in which they were added to the event at design time. A method can have properties or input or output arguments. Use input arguments to specify values that the method displays when the event occurs, such as incrementing the value of a graphic object. Output arguments are values that the method returns. As with variables, the value of an argument can be fixed or dynamic