Hi Mazahar S. With the upcoming release of CODESYS V3.5 SP16 we added a property to the device communication settings which allows a script to enable/disable the encrypted communication for a device. BR Martin
Hi adam8888. As I said before you can use our Scripting API only inside the CODESYS IDE or any other software which is based on the CODESYS Automation Platform. So again, what is your use case for running the python script inside your own C# application? BR Martin
Hi. I tested it with CODESYS 64 V3.5 SP15 Patch 3 with a newly created standard project and the following python script: from System import Guid app = projects.primary.active_application optimizedCalculator = Guid('{0141eb75-141b-4ea1-9a8c-75f952b22a6c}') try: symbol = app.create_symbol_config(False, False, optimizedCalculator) print('Symbol config created') except InvalidOperationException as e: print('SymbolConfigObject could not be created: ' + str(e)) BR Martin
Hi. Which version of CODESYS do you use? The creation of symbol config object via Scripting was added with CODESYS V3.5 SP10. If you use an older version of CODESYS it will not work. BR Martin
Hi. The python script you created will only work inside the CODESYS IDE or any other software which is based on the CODESYS Automation Platform because the modules used for accessing the IDE and the PLC are only available there. What is your use case for running the python script inside your own C# application? BR Martin