CAA File

suyash
2023-06-08
2023-06-10
  • suyash - 2023-06-08

    Hello folks!

    I am using CODESYS V3.5 SP18 Patch 2 for Development. I have recently encountered a strange issue which I didn't face in the past. I am using CAA File library for file handling and when I use Open, Read, Write Close(File) FBs, I don't get the xExecute, xBusy, xError variables that are a part of the FB. In fact I see them in the documentation of the Input assistant.

    Just to ascertain, I typed the OPEN FB's instance with a dot to see the list of it's internal variables and the above mentioned variables were not seen.

    I have attached screenshots for the same.

    Seeking your help! Thanking you in anticipation!

    FYI, This is a repeat post under the appropriate forum. Earlier, I had posted in Runtime Forum.

    BR,
    Suyash Thatte

     
  • TimvH

    TimvH - 2023-06-09

    If they don't appear automatically when you use the input assistant to call the FB, then you can still add them manually.

    Maybe a bug in SP18 P2. In SP18 P3 I don't see this.

     
    • suyash - 2023-06-09

      Hi Tim,
      Thanks for your reply!

      I did try entering it manually but it considered it as a syntax error. Also recently upgraded to the latest CoDeSys development version - CODESYS V3.5 SP19 Patch 1. Also upgraded the CAA library to its latest version. Yet no success.

      BR,

       
  • TimvH

    TimvH - 2023-06-10

    I found out it only happens when you do this in a POU which is added to the POU Pool. If you add this POU to the application tree, this doesn't happen. It will be fixed with compiler version 3.5 SP20.

     
    πŸ‘
    1
    • suyash - 2023-06-10

      Thanks a lot Tim!! You are right!πŸ‘πŸ‘

       
    • suyash - 2023-06-10
       

      Last edit: suyash 2023-06-10

Log in to post a comment.