Hey! I am trying to generate a function block with properties from a list with script engine. Codesys/ScriptEngine creates both the Get and the Set accessor. I cannot find a way to delete the Set method/accessor. Anyone encountered the same problem or have a solution for this? for prop_name, prop_type in list: property = pou.create_property(prop_name, prop_type) get = pou.find("Get", recursive=True)[i] get.textual_declaration.replace("") get.textual_implementation.replace(prop_name + " := " + struct_name...
Hey! I am trying to generate a function block with properties from a list with script engine. Codesys/ScriptEngine creates both the Get and the Set accessor. I cannot find a way to delete the Set method/accessor. Anyone encountered the same problem or have a solution for this? for prop_name, prop_type in list: property = pou.create_property(prop_name, prop_type) get = pou.find("Get", recursive=True)[i] get.textual_declaration.replace("") get.textual_implementation.replace(prop_name + " := " + struct_name...
Turned out to be an easy fix in the end. I went in to the Library Manager and hit download missing libraries. Then boom, problem solved!
Hello, I'm encountering a few error messages when I try to set up a project for my raspberry pi. I followed the first steps youtube guide from codesys. The installation of the runtime package to the pi went fine. However, when I try to make a simple program to upload to the device I get the following errors: ------ Build started: Application: Device.Application ------- Typify code... [ERROR] test: Application [Device: PLC Logic]: C0077: Unknown type: 'DED.CAADiagDeviceDefault' [ERROR] test: Application...