Jump to content

Data Table from SD Card


Recommended Posts

dear,

how often you have to record data?

usualy I do in this way...at the startup of the PLC i check if a specific file exist...if not I create it; if exist I count how many rows are already stored and save this value in a variable; to do this last I create and use  a DT with a single row to store (append) and read from file. Every time that I will append a new row on the file I will increase the relative counter to have the max readable rows.

I create a screen with the field of the DT that I let be read and I navigate in the file starting from row 0 to the value of the variable.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...