GenerateFileForWriteis used to start the write file transaction. A successful call of this Methodcreates a temporary FileType Objectand returns the NodeIdof this Objectand the file handle to access the Object.
Signature
GenerateFileForWrite(
[in] BaseDataTypegenerateOptions
[out] NodeId fileNodeId
[out] UInt32 fileHandle
);
Argument |
Description |
generateOptions |
The optional parameter can be used to specify server specific file generation options. To allow such options, the Servershall specify a concrete DataTypein the Argument Structurefor this argument in the instance of the Method. If the DataTypeis BaseDataType, the Client shall pass Null for this argument. Examples for concrete DataTypes are OptionSetUsed to provide a bit mask for file use selection StructureCan be used to provide a structure with create settings e.g. firmware update settings EnumerationCan be used to provide a list of options like file handling options |
fileNodeId |
NodeId of the temporary file. |
fileHandle |
The fileHandle of the opened TransferFile. The fileHandle can be used to access the TransferFile Methods Writeand Close. |
Method Result Codes (defined in Call Service)
Result Code |
Description |
Bad_UserAccessDenied |
See OPC 10000-4for a general description. |
Table 15specifies the AddressSpacerepresentation for the GenerateFileForWrite Method.
Table 15– GenerateFileForWrite Method AddressSpace definition
Attribute |
Value |
||||
BrowseName |
GenerateFileForWrite
|
||||
References |
NodeClass |
BrowseName |
DataType |
TypeDefinition |
ModellingRule |
HasProperty |
Variable |
InputArguments |
Argument[] |
PropertyType |
Mandatory |
HasProperty |
Variable |
OutputArguments |
Argument[] |
PropertyType |
Mandatory |
Conformance Units |
|||||
Base Info TemporaryFileTransferType Base |