Jump to content

DTI Names iterative


xXJEQTXx

Recommended Posts

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?

.....

P1.thumb.png.c11462737859dd58c8c9eef2f11ae72b.png

Link to comment
Share on other sites

@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.

...........................

image.thumb.png.6384d038352c59e41200bdeef827cf7b.png

................

P2.png.95c8a066f75618dea893dee47cb41252.png

Link to comment
Share on other sites

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?

  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.