Jump to content

Problem with VisiLogic Help file (SD File Info)


Recommended Posts

  • MVP 2023

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 2023

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

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.