5.5.3 Standard file system support
Standard methods
The SINUMERIK OPC UA server supports the "FileType"/"FolderType" as described in the
OPC UA Specification Part 5, which allows manipulating files and folders via OPC UA. The
folders, "Part Programs", "Sub Programs" and "Work Pieces" are of the
"FileType"/"FolderType" type, which contain the following methods:
Method/Attribute Description
CreateDirectory To create new folders under parent folder.
CreateFile To create new file under parent folder.
Delete To delete folder and file under parent folder.
MoveOrCopy To copy of move files from source to destination
within server filesystem.
You can create, delete, move or copy folders and files using the above methods. When you
create a new folder using "CreateDirectory"’, a new node will be created with "FolderType"
and name provided by the OPC UA client. This folder contains all methods and attributes
specified in above table.
The node in the address space, under which the "CreateDirectory" method is called, is the
"parent" node of the new folder node.
Here, the files are available with the extensions .mpf, .spf and .wpf respectively under Part
Program, Sub Programs and Work Pieces folders of Sinumerik. Each of these files will be of
"FileType" type and consists of following methods and properties:
Method/Attribute Description
Open Opens the file either in read/write mode.
Read Reads contents of the file.
Write Writes data to the file. (if write permission is avail‐
able)
Close Closes the file. (succeeds if file is open)
GetPosition Gets the position of current position of file pointer
while file read/write operation.
SetPosition Sets the position of current position of file pointer
while file read/write operation.
OpenCount Gives the number of file open instances.
Size Gives the file size details.
UserWritable Set to true if current user has access to modify the
content of the file.
Writable Set to false if the file is read only.
Whenever the user creates a new file using the method "CreateFile", a new node will be created
with "FileType" type with a user provided name. This file again contains all methods and
attributes specified in the table above. The node in address space, under which the
Functionality
5.5 File system
SINUMERIK Integrate for Engineering Access MyMachine / OPC UA
58 Configuration Manual, 04/2018, 6FC5397-1DP41-0BA0