xXJEQTXx Posted July 4 Report Share Posted July 4 Hello, guys, I want to create a function (ladder) that allows me to store a DTI in the SD, for this I used the image block, but by placing the string from the RTC function to ASCII V2 as a name through a String-ASCII type structure, but I get a writing error, could someone explain the reason a little better? And if it is possible to put the date or the hour or minute by name in the DTI? ..... Quote Link to comment Share on other sites More sharing options...
Saragani Posted July 5 Report Share Posted July 5 -6 means: Write file error Are you sure you have an SD Card present? If yes, please check if the SD Card is locked Quote Link to comment Share on other sites More sharing options...
xXJEQTXx Posted July 5 Author Report Share Posted July 5 @Saragani Thank you for answering my question, regarding your question, yes, of course I do, I have access to the SD, I have activated the permissions for the SD (see image) and previously I had already uploaded these types of files, but instead After using a tag like the one in the initial image, it used some names that I assigned to it ("Output_1_temperature", "Output_Temperature", "Temperature"), the error arose when using the tag of a string type structure with the date or hour. ........................... ................ Quote Link to comment Share on other sites More sharing options...
Saragani Posted July 5 Report Share Posted July 5 Well, after further looking in your code, I see that C is the filename, and the value you use is 18:07 The file system in the PLC, just like in Windows, does not allow certain characters to be used in a file name. In Windows you cannot create a file that contain the character : since it is being used for targeting drives, for example d: (Well, I tried giving and example of c and then a colon, and it replaced it with a smiley) @NoamM Can you please provide a list of forbidden characters? I know that the SD Card is formatted as FAT32, but I'm not sure if that affects the forbidden characters, or the Operating System on the Panel. Anyway, @xXJEQTXx, Since filenames can be transferred to your computer, I would avoid any character that Windows doesn't like: < (less than) > (greater than) : (colon ) " (double quote) / (forward slash) \ (backslash) | (vertical bar or pipe) ? (question mark) * (asterisk) Besides that, there are also specific forbidden filenames in Windows (Case insensitive): . .. CON AUX PRN NUL COM1, COM2, ... COM10 LPT1, LPT2, ... LPT10 Don't use those filenames and characters and you are OK. For a Directory, as much as I remember, it cannot end with . (dot) @NoamM Are those also the restriction in the PLC? 1 Quote Link to comment Share on other sites More sharing options...
xXJEQTXx Posted July 5 Author Report Share Posted July 5 @Saragani, that was the mistake, thank you very much. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.