Jump to content

Display SD card memory on screen


Recommended Posts

  • MVP 2023

You should understand that the number calculated in sdw59 is not the remaining volume, but the volume expressed in elementary particles of 512 bytes.

Therefore, first put the number of sdw59 with a huge (maximum number of digits) length on the PLC screen.

Then, after seeing what you got - multiply it by 512 bytes (start with a simple calculator) - you will have a number that corresponds to the free space in bytes.

It is number that you must convert into megabytes and then gigabytes and display on the screen.

By doing all the listed actions hidden in the program, you should get what you want in gigabytes. However, there is a problem - whether the numbers with which you will work will overflow.

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