7.6 RecipeTransferType
7.6.1 Overview
This ObjectType is a subtype of TemporaryFileTransferType defined in OPC 10000-5 and is used for transferring a recipe.
The RecipeTransferType overwrites the Methods GenerateFileForRead and GenerateFileForWrite to specify the concrete type of the generateOptions Parameter of the Methods.
Figure 13 shows the hierarchical structure and details of the composition. It is formally defined in Table 49.

| Attribute | Value | ||||
| BrowseName | RecipeTransferType | ||||
| IsAbstract | False | ||||
| References | NodeClass | BrowseName | DataType | TypeDefinition | ModellingRule |
|---|---|---|---|---|---|
| Subtype of the TemporaryFileTransferType defined in OPC 10000-5 | |||||
| HasComponent | Method | 0:GenerateFileForRead | -- | -- | Mandatory |
| HasComponent | Method | 0:GenerateFileForWrite | -- | -- | Mandatory |
7.6.2 RecipeTransferType Methods
7.6.2.1 GenerateFileForRead
This method is used to start the read file transaction. A successful call of this method creates a temporary FileType Object with the file content and returns the NodeId of this Object and the file handle to access the Object.
Signature
GenerateFileForRead ([in] RecipeTransferOptions generateOptions[out] NodeId fileNodeId[out] UInt32 fileHandle[out] NodeId completionStateMachine);| Argument | Description |
| generateOptions | The structure used to define the generate options for the file, described in Section 12.11. |
| fileNodeId | NodeId of the temporary file |
| fileHandle | The fleHandle of the opened TransferFile. The fileHandle can be used to access the TransferFile methods Read and Close. |
| completionStateMachine | If the creation of the file is completed asynchronously, the parameter returns the NodeId of the corresponding FileTransferStateMachineType Object. If the creation of the file is already completed, the parameter is null. If a FileTransferStateMachineType object NodeId is returned, the Read Method of the file fails until the TransferState changed to ReadTransfer. |
| Attribute | Value | ||||
| BrowseName | GenerateFileForRead | ||||
| References | NodeClass | BrowseName | DataType | TypeDefinition | ModellingRule |
|---|---|---|---|---|---|
| HasProperty | Variable | InputArguments | Argument[] | PropertyType | Mandatory |
| HasProperty | Variable | OutputArguments | Argument[] | PropertyType | Mandatory |
7.6.2.2 GenerateFileForWrite
This method is used to start the write file transaction. A successful call of this method creates a temporary FileType Object with the file content and returns the NodeId of this Object and the file handle to access the Object.
Signature
GenerateFileForWrite ([in] RecipeTransferOptions generateOptions[out] NodeId fileNodeId[out] UInt32 fileHandle);| Argument | Description |
| generateOptions | The structure used to define the generate options for the file, described in Section 12.11. |
| fileNodeId | NodeId of the temporary file |
| fileHandle | The fleHandle of the opened TransferFile. The fileHandle can be used to access the TransferFile methods Write and CloseAndCommit. |
| Attribute | Value | ||||
| BrowseName | GenerateFileForWrite | ||||
| References | NodeClass | BrowseName | DataType | TypeDefinition | ModellingRule |
|---|---|---|---|---|---|
| HasProperty | Variable | InputArguments | Argument[] | PropertyType | Mandatory |
| HasProperty | Variable | OutputArguments | Argument[] | PropertyType | Mandatory |