Personal Data

Username:
ckhassan
Joined:
2022-08-25 14:56:06

Projects

  • No projects to display.

User Activity

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    Hi i-campbell. Thanks for the helpful link. Maybe you can help me with this problem too: When I iterate through the library references and separate out the managed libraries and try to access methods or properties on them, if the version of a library in the library manager is not installed on the PC, the script will fail with "Obejct reference not set to an instance of an object." It seems that "catching" the exception with something like isinstance(libRef.managed_library, ScriptLibManObject.ManagedLib)...

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    Hello, Here's the scenario: 1. A for loop in a python script is used to cycle through and print out the name of the Library References in a python script using the Library Manager "references" property. If a Library Reference.is_managed property is true, and if the version of that library that is set in the Library Manager is not installed on the machine, the the script fails with "Object reference not set to an instance of an object." code #This is an excerpt from the code. #The error occurs when...

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    Hello, Using a python script, how can we get the exact versions of the libraries that are used in a Codesys program? Currently, using the libman object to get and display the libraries reports all of the versions that are installed on the machine instead of just the versions of the libraries that are used in the Codesys program. For example, let's say that myLib version 1.0.0.0 and myLib v2.0.0.0 are both installed on the machine. I have a Codesys program that uses myLib version 1.0.0.0 (as set in...

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    Hello @snhatton, Thank you for the very helpful reply! Using VAR PERSISTENT RETAIN is a great idea!

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    Hello, It is possible to get a string value from the user when a Test Manager test script is executed. But is there a way to store the string value that the user entered so that in subsequent executions it will use the value the user entered? (So it's like a Test Manager test script variable that persists so that each time the script executes, it defaults to the value that was entered the last time the script was executed.) For example (just for the purpose of this discussion), let's say a test script...

  • Modified a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    Hello, It seems that SysFile.SysFileGetStatus and SysFile.SysFileGetStatus2 never return FS_EOF. The code below is the part of my program that should reads from a file until FS_EOF. Using Codesys in debug mode, I have verified that all of the contents of the file are indeed being read, but even after all of the contents of the file have been read, and the call to SysFileRead is returning 0, the call to SysFileGetStatus2 continues to return FS_OK instead of FS_EOF...forever. Am I attempting to use...

  • Modified a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    Hello, It seems that SysFile.SysFileGetStatus and SysFile.SysFileGetStatus2 never return FS_EOF. The code below is the part of my program that should reads from a file until FS_EOF. Using Codesys in debug mode, I have verified that all of the contents of the file are indeed being read, but even after all of the contents of the file have been read, and the call to SysFileRead is returning 0, the call to SysFileGetStatus2 continues to return FS_OK instead of FS_EOF...forever. Am I attempting to use...

  • Posted a comment on discussion Engineering πŸ‡¬πŸ‡§ on CODESYS Forge

    Hello, It seems that SysFile.SysFileGetStatus and SysFile.SysFileGetStatus2 never return FS_EOF. The code below is the part of my program that should reads from a file until FS_EOF. Using Codesys in debug mode, I have verified that all of the contents of the file are indeed being read, but even after all of the contents of the file have been read, and the call to SysFileRead is returning 0, the call to SysFileGetStatus2 continues to return FS_OK instead of FS_EOF...forever. Am I attempting to use...

View All