this can be closed BTW
I think this is the same or similar to https://forge.codesys.com/lib/counit/tickets/58/ I figured out that this was occurring because assert was being called continuously
Seems to work now. Can this be closed?
Request: Tutorial for Jinkins and example Python Scripts
AccessViolation Exception thrown in FB_AssertResultStatic.AddAssertResult()
Struct datatype Documentation is confusing
I don't understand the point of this. Isn't just better to use __SYSTEM.AnyType instead of making your own type? Also if you wanted to make it an object, shouldn't you just wrap a FB around __SYSTEM.AnyType and then have some conversion Methods? Maybe I am missing the purpose of this code. Maybe add more details on how you would use MyMappingFB
I don't understand the point of this. Isn't just better to use __SYSTEM.AnyType instead of making your own type? Also if you wanted to make it an object, shouldn't you just wrap a FB around __SYSTEM.AnyType and then have some conversion Methods?
awesome! thank you sir.
Will you please rerelease this under MIT or MPL2? GPL is a cancer.
I also would like to now how to clear the PLC Device Log. @eschwellinger are you saying there is no way to clear the log? When I am debugging I want to clear the log, it would make things some much easier to find.
I just opened it in 3.5.18.4 and it didn't even give me that prompt at all. So I was able to see the code.
I figured that, but in 3.5.19.2 it has that option grayed out. Actually all options in that dialog are grayed out
I figured that, but in 3.5.19.2 it has that option grayed out. Actually all options in that dialog are grayed out On Mon, Aug 14, 2023, 1:41 PM i-campbell no-reply@codesys.com wrote: Workaround is to select "Remove git connection from project", and then "Continue with this version." [tickets:#2] https://forge.codesys.com/lib/colist/tickets/2/ Extra Dialog messages when downloading binary of library* Status: open Milestone: 2.0 Created: Sun Oct 17, 2021 01:02 PM UTC by i-campbell Last Updated: Mon...
Is there a work around for this? I was wanting to look at the the source code. Specifically the IList and IElement interfaces.
Is there a way to programmatically inject a source position in to the log like an Exception does, so they you can double click on it and have it take you to the source code position? I know there there is the POSITION operator but that doesn't do the same thing. __POSITION()
Is there a way to programmatically inject a source position in to the log like an Exception does, so they you can double click on it and have it take you to the source code position? I know there there is the __POSITION() operator but that doesn't do the same thing
That's fine with me I added a comment to that snippet with an improved version that doesn't throw an exception if the property already exists
That's fine with me I added a comment to that snippet with an improved version that does throw an except if the property already exists
this is an improved version that doesn't throw an exception if the property already exists def CreateAllProperties(fbname, shouldAddMonitor = False): # get current project project = projects.primary # find the function block fb = project.find(fbname, True)[0] # get the declaration text declaration = fb.textual_declaration # iterate all lines in the declaration for i in range(declaration.linecount): line = declaration.get_line(i) # get this declaration line stripped = line.strip() # strip out white...
Here is an updated version that works in Codesys 3.5.19.2 That old version didn't like the line fb.create_property(propname, proptype) def CreateAllProperties(fbname): # get current project project = projects.primary # find the function block fb = project.find(fbname, True)[0] # get the declaration text declaration = fb.textual_declaration # iterate all lines in the declaration for i in range(declaration.linecount): line = declaration.get_line(i) # get this declaration line stripped = line.strip()...