Create a folder or Directory with Structured Text

moumie

Level-1
Beiträge
8
Reaktionspunkte
0
Hi , How can I create a folder with Structured text.
In codesys I am using the SyslibFi library, but with that I can only create file.

Suppose I want to create a folder or directory named 'Docs'.

Var

FileOk := DWORD;

End Var

FileOk := SysFileOpen( 'Docs/', 'w') ;

FileOk return 0 meaning failure to create 'Docs'
 
According to the naming sheme I see that you are using V2.3, is that correct?

The Vendor of the plc provided me theese libaries.

It is a while ago, currently I am only using V3.5.
 
Für die Nutzung dieser Website sind Cookies erforderlich. Du musst diese akzeptieren, um die Website weiter nutzen zu können. Erfahre mehr…