Austomation Studio 6 DirCreate FB

Hello,
I want to create a folder using DirCreate FB in AutomationStudio6.
But as seen in the picture, I encounter the error ‘20709’.
What should I do?

Thank you.

Do you actually have a USER partition? Does the folder AlarmX on your USER partition exist? Since the default size for the USER partition is 10 MB it should exist, so most likely the folder is missing.

You want to create a dir called “/” ??? :smiley:
Probably recheck your code and what you want to do!

Best regards,

:slight_smile:

I am currently testing in simulation mode.

I took the same code as in my previous AutomationStudio 4.12 project.
AS4.12 also creates it without any problems as seen in the picture.

I set the USER partition to 256.

But is there anything different I need to do in AutomationStudio 6?

Hm ok, good to know, I haven’t tried to create a folder with “/” yet! With AS6 I currently can’t really help, since I haven’t installed it yet… Too afraid what will happen :joy:

But it probably will be something like it. Just test around a little bit and check what happens. E.g. manually create the folder and restart the ARSim. Same error?
If the behaviour is really different between AS4.12 and AS6 I’d create a ticket.

2 Likes

Hi,

just a few things…
In the Path of your “File Device 2”:

  • are you sure you need the “:”? I would delete that and just use “USER_PATH\AlarmX”
  • Is the FB “DirCreate” executable in INIT? I would try it in CYCLIC .
  • 20709 means the FileDevice does not exist. Which would be explainable because the path is incorrect…

After that you could gat an error, that the foldername is incorrect, becaus "" is not valid… but we will see

regards Stefan

2 Likes

I guess you’re right. If you check the exmples here, it’s clearly missing!
6bc04f87-a564-42fe-be38-060045eb83d6

1 Like

It worked only after I removed the : sign. :slight_smile:
Thank you very much.

2 Likes