Skip to main content
Version: 5.3

Script Transfer Object

Script Transfer Object

When you create a new script of the "Transfer object" type, three predefined methods are available:

Methods in the transfer object

MethodDescription
InitializeThe method is called once when the OPC Router is started.
WriteThe method is called after another transfer object has written data to this transfer object. It is therefore the code that is executed when this object is the target of a data transfer.
ReadThe method is called before another transfer object reads data from this transfer object. It is therefore the code that is executed when this object serves as the source of a data transfer.

Use the "Settings - Manage parameters" menu to create the parameters and variables. You can define the following properties for the parameters:

Properties of parameters

NameParameter Name
ArrayYes
ParameterData type
Parameters direction

  • Input: Input parameter. In connection configuration, this parameter can be used as the target of a data transfer.
  • Output: Output parameter. In connection configuration, this parameter can be used as the source of a data transfer.
  • Both: The parameter is both an input and output parameter.
  • None: Variable, that is not visible to the connection projector and is only used within the script.

When you create a new script, the script editor opens automatically.