Introduction
Mount network server (SMB) from PLC.
This manual describes how you can use the PLC to mount a network server (SMB), create a folder or read the content of a directory.
You will find some example code for download in this How-to.
Requirements
ctrlX CORE and active connection to a windows system
Windows folder is already created and the corresponding settings has already been made -> See How-to Mount SMB network folder
PLC App and PLC programming experience
PLC examples
PLC code for mount network folder.
Add MountSMB function block from library manager
This function block mounts an external network-server (SMB)
PLC code for reading the content of the given path
Add IL_DirReadAsync function block from library manager
With each flank at the ReadNext input, the next content of the path is read.
PLC code for create folder in the given path
Add IL_DirSetCurrentAsync function block from library manager