Create a folder or Directory with Structured Text

moumie

Level-1
Beiträge
8
Reaktionspunkte
0
Zuviel Werbung?
-> Hier kostenlos registrieren
Hi :confused:, 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.
 
Zurück
Oben