Skip to main content
Version: 5.2

Transfer object script

When you create a new script of type transfer object, there are three predefined methods 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. So it is 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. So it's the code that gets executed when that object serves as the source of a data transfer.

You use the “Settings - Edit parameters” menu to create the parameters and variables. You can set the following properties for the parameters:

Properties of parameters

ParameterDescription
NameName of parameter
ArrayYes / No — Determines if it's an array. Arrays can be used as output or SQL sources.
Type of parameterData type
Direction of parameterOutput: used as source
Both: input and output
None: used only inside script, not visible.

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