Transfer Object Scripts
When you create a new script of the "Transfer Object" type, three predefined methods are 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. It is therefore 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. 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
| Property | Description |
|---|---|
| Name | Name 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. |
| Property | Description |
|---|---|
| Parameter type | Data type |
| Parameter direction |
|
When you create a new script, the script editor opens automatically.