Skip to main content
Version: 5.5

Transfer Object Scripts

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 serves as the destination 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.

You can create the parameters and variables via the "Settings – Manage Parameters" menu. You can define the following properties for the parameters:

Properties of parameters

PropertyDescription
NameName of the parameter
Array

Yes | No

Specifies whether the parameter is an array. You can use an array as an output parameter, for example, as the source for an SQL insert.

PropertyDescription
Parameter typeData type
Parameter direction
  • Input: Input parameter. In connection project planning, this parameter can serve as the target of a data transfer.
  • Output: Output parameter. In connection project planning, this parameter can serve 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 designer and is only used within the script.

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