I copied the code from https://help.codesys.com/webapp/_cds_access_cds_func_in_python_scripts;product=codesys;version=3.5.15.0 into a local file, "PrintDeviceTree.py". When I open the project in the IDE and execute the script file, it prints six messages, as expected. When I run the script from the command line, I get an error. It doesn't matter if I precede the command with "start /wait" or run it from a batch/command file. My goal is to be able to run a single script against any arbitrary project,...
We changed the compiler and visualization profile for a project from 3.5.16.2 to 3.5.15.2. We were able to clean up various errors and warnings, but these remain. We can't tell where the errors are. Double-clicking on an error usually leads the user to the problem area, but not in this case. How can we identify and resolve these errors?
I have a project with two CANbuses. I have measured the bus load of each bus using PCAN Explorer. Bus load is ~55% for one bus and ~40% for the other. Sadly, the CANbus Status tab for each bus always shows 16%, which is obviously wrong. How can I get the correct bus load? The PLC is a CrossControl CCpilot XM2. Device Information: Name: CODESYS Control, x86 From CrossControl Vendor: CrossControl AB Categories: PLCs Type: 4096 ID: 162a 0001 Version: 3.5.9.30 Order number: ??? Description: CODESYS Control...
I have a project with two CANbuses. I have measured the bus load of each bus using PCAN Explorer. Sadly, the CANbus Status tab for each bus always shows 16%, which is obviously wrong. How can I get the correct bus load?
I was able to work around this problem by quitting and restarting Codesys.
My company delivered an application on a controller a few years ago. I just added some capabilities to the application. The existing controller (at the customer site) has an older version of the Codesys runtime than the controller I have. I get a warning when I login to the device - The device version "3.5.4.20" in the project is older than the connected device. It is recommended to cancel the operation and manually update the device to version "3.5.9.30". If I ignore this warning, everything appears...