Transfer Object Scripts
When you create a new script of the type “Transfer object”," 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. This 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. This is the code that is executed when this object serves as the source of a data transfer. |
You can create 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 a source for an SQL INSERT statement. |
| Property | Description |
|---|---|
| Parameter Type | Data Type |
| Parameter Direction |
|
When you create a new script, the script editor opens automatically.