Jump to content

Problem with VisiLogic Help file (SD File Info)


Recommended Posts

  • MVP 2021

While reviewing the VisiLogic Help file in order to gain an understanding of the SD File Info FB, it looks to me like there is either some copy/paste error or just a mistake.

The problem is the description for the Status Messages and the Success Bit. The Status Messages in the Help file don't match what I'm actually getting when online, and the Success Bit refers to "data is successfully written to the Block", which makes no sense with this function.

Perhaps the problem is with the FB itself. The purpose of this FB is to determine if a file exists. It works fine if the file exists, but if the file does not exist, then instead of resetting the Exist Bit and clearing out the other parameters, it just goes into error with a status of 4 (dec). A status of 4 is Bit 3 - No SD card found, or the card is locked. Neither of these conditions are true. After checking for the file, the Success Bit remains off unless the file exists. This also makes no sense.

@Cara Bereck Levy, could you take a moment to look at this? FYI (though I don't think it matters) I'm using version 9.8.80.

image.thumb.png.201979ec8bd0f927584b77f737e2d7ae.png

Link to comment
Share on other sites

  • MVP 2021

I haven't played with this to check, and can't at present, but did you do the 8.3 format exactly?  Anything SD spits the dummy if this is not adhered to, with often strange results.  Not doing this often catches me out. 

 

Link to comment
Share on other sites

  • MVP 2021
1 hour ago, Ausman said:

I haven't played with this to check, and can't at present, but did you do the 8.3 format exactly?

Great question. My file name is actually 7.3. I'll add a character and see if it makes a difference.

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