Transfer object script
When you create a new script of type transfer object, there are three predefined methods available:
Methods in the transfer object
Method | Description |
------ | ----------- |
Initialize | The method is called once when the OPC Router is started. |
Write | The 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. |
Read | The 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
Parameter | Description |
---|---|
Name | Name of parameter |
Array | Yes / No — Determines if it's an array. Arrays can be used as output or SQL sources. |
Type of parameter | Data type |
Direction of parameter | Output: 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.