Post by imdatatas on Import from XML problem
CODESYS Forge
talk
(Post)
Hello Everyone, When I try to import some POUs that were previously exported from another project as an XML file, I get an error like in attached image and the process does not complete. "There are no objects in the export file..." I am using SP21 Codesys IDE and I do not know which version this XML (*.export) file was previously exported with. Has anyone encountered the same problem? Regards, imdatatas
Last updated: 2025-04-26
Post by richard-wang on Codesys recipe manager - what does it do?
CODESYS Forge
talk
(Post)
Hi All Thanks for sharing this information. For whom may not know why always get error code 16#4000 or 16#4002 while performing Recipe commands, the root cause is There is a line need to be inserted in CODESYSControl.cfg file, which is PlaceholderFilePath.1=/var/opt/codesys/PlcLogic/ I am using Pi, therefore the above path is set to my pi unit, after adding above line to my cfg file, all the Recipe commands work fine. But I still do not know how and when this file got modified though.
Last updated: 2024-04-29
Post by darko7417 on When running as a service, CodesysControl doesn't write log files to the disk (and other CmpLog related issuess)
CODESYS Forge
talk
(Post)
I run CODESYS runtime as a service and use CmpLog (the LogAdd2 function) to log different events to a file. I have done this many times before on various projects and hardware, and it works fine. On this particular system, I have CODESYS 3.5.20.40 running on a Windows 11 PC. The CODESYSControlService autostarts (with Local System credentials, the default), and the application runs fine. However, the configuration file is not read (or at least not the one that should be, or not the CmpLog section), and log files are not written to the disk. I would be thankful if anyone knew why this is happening and how to fix it. A note to CODESYS people: you must provide more information on the codesys configuration file, CODESYSControlService.exe and other major components and system behaviour. You created the service and various features (i.e. logging), but haven't explained how they work, which, in my opinion, is below standard for industrial automation software. These are my observations: - When running as a service, the config file is not read (none of them), or at least the CmpLog section is not read. I checked the log using Codesys IDE, and the CmpLog parameters are not the ones I have set in any of the config files. Which CmpLog config values does the service use, and where does it read them from? I have no idea, but it's not the config files. Here are the codesys config files I located on the PC's disk: o C:\Program Files (x86)\CODESYS 3.5.20.40\GatewayPLC\CODESYSControl.cfg (only 2 lines in this config) o C:\Program Files (x86)\CODESYS 3.5.20.40\GatewayPLC\AppDataFiles\CODESYSControlWinV3\CODESYSControl.cfg o C:\Users\SRV\AppData\Roaming\CODESYS\CODESYSControlWinV3\C4DBB537\CODESYSControl.cfg o C:\Program Files (x86)\CODESYS 3.5.20.40\GatewayPLC\tempCFG\CODESYSControl.cfg - When I run codesys as an app (e.g. by clicking the icon), this config file is read C:\Users\SRV\AppData\Roaming\CODESYS\CODESYSControlWinV3\C4DBB537\CODESYSControl.cfg and log files are written ok. The icon target is "C:\Program Files (x86)\CODESYS 3.5.20.40\GatewayPLC\CODESYSControlService.exe" -d o the -d option, I think, starts a cmd-like window showing service debug output (the output shown in log in the IDE) o the -i option, again I think, means install the service - I tried adding -d to service start parameters in the registry, but it started only once and after that it refused to start. Knowing what -d does and which other options are available would be great (e.g. can I make the service read a different config file). - Syslog UDP logging works fine in any case. - These are my CmpLog parameters ~~~ [CmpLog] Logger.0.Name=PlcLog3 Logger.0.Filter=0xFFFFFFFF Logger.0.Enable=1 Logger.0.MaxEntries=10003 Logger.0.MaxFileSize=50003 Logger.0.MaxFiles=33 Logger.0.Backend.0.ClassId=0x0000010B ;sends logger messages to SysOut Logger.0.Backend.1.ClassId=0x00000104 ;writes logger messages in a file Logger.0.Backend.2.ClassId=0x00000135 ;sends logger messages as UDP syslog Logger.0.Type=0x314 ;Set the timestamp to RTC ~~~
Last updated: 2025-02-27
Post by psychoengineer on Cannot Save CSV File on Windows Computer Using CODESYS and Control Win
CODESYS Forge
talk
(Post)
I am currently working on a project using CODESYS and Control Win on a Windows computer. I've encountered an issue where I am unable to save a CSV file. I have followed the standard procedures and used the appropriate file handling functions, but the file is not being created or saved as expected. IF xStartTest THEN sFileName := '\logs.txt'; sFileName := CONCAT(gvl.g_sMainDirectory, sFileName); sFileNameCopy := '\CAAFileCopy.txt'; sFileNameCopy := CONCAT(gvl.g_sMainDirectory, sFileNameCopy); //eWriteState := FILE_OPEN_TRIGGER; xTestDone := FALSE; xError := FALSE; xStartTest := FALSE; END_IF VAR_GLOBAL g_sMainDirectory : STRING := 'C:\LogFiles'; // file path for CSV file END_VAR Despite this, the file does not appear in the specified directory, and no error messages are being generated. I've checked the directory permissions and ensured that the path is correct. Has anyone else experienced a similar issue or have any suggestions on how to resolve this? Any help would be greatly appreciated. Thank you!
Last updated: 2024-07-04
Post by monw on Unable to Re-Import Native XML Exported Using CODESYS Script API
CODESYS Forge
talk
(Post)
When exporting a Logical Device or Logical Exchange GVL using the native XML export functionality of the CODESYS Script API, I encounter the following error upon re-import: "Error in IEnumeratorOfTWrapper. Current. Could not cast: System.String in System.Char" I am using CODESYS V3.5 SP21 Patch 2. Is there a known solution or workaround for this issue? Notably, importing the same XML file through the CODESYS Engineering IDE's menu import works without error.
Last updated: 2025-09-12
Using a physical keyboard with visu shows wrong character
CODESYS Forge
talk
(Thread)
Using a physical keyboard with visu shows wrong character
Last updated: 2021-03-16
Compiling CoDeSys project using the command line interface
CODESYS Forge
talk
(Thread)
Compiling CoDeSys project using the command line interface
Last updated: 2021-01-27
Using ScriptEngine in C# for Creating Codesys Project
CODESYS Forge
talk
(Thread)
Using ScriptEngine in C# for Creating Codesys Project
Last updated: 2019-06-24
Time Measurement between two events with V2.3 using Wago750-890
CODESYS Forge
talk
(Thread)
Time Measurement between two events with V2.3 using Wago750-890
Last updated: 2020-12-26
How to select invisible control using mouse?
CODESYS Forge
talk
(Thread)
How to select invisible control using mouse?
Last updated: 2017-10-06
Using it with beckhoff CX9020 and getting PLC disconnections
CODESYS Forge
talk
(Thread)
Using it with beckhoff CX9020 and getting PLC disconnections
Last updated: 2013-09-09
AWS IoT Core connection using AWS certificates
CODESYS Forge
talk
(Thread)
AWS IoT Core connection using AWS certificates
Last updated: 2023-10-18
Using Hilscher CIFX Cards as EtherCAT Masters in CODESYS
CODESYS Forge
talk
(Thread)
Using Hilscher CIFX Cards as EtherCAT Masters in CODESYS
Last updated: 2024-07-02
Using the Wago 750-658 CAN Gateway
CODESYS Forge
talk
(Thread)
Using the Wago 750-658 CAN Gateway
Last updated: 2024-07-23
Calculate Time Between Two Events Using RTC
CODESYS Forge
talk
(Thread)
Calculate Time Between Two Events Using RTC
Last updated: 2024-08-14
Using Codesys 3.5 with Wago 750-8202
CODESYS Forge
talk
(Thread)
Using Codesys 3.5 with Wago 750-8202
Last updated: 2024-10-14
Checking or changing objects dimensions using code.
CODESYS Forge
talk
(Thread)
Checking or changing objects dimensions using code.
Last updated: 2024-11-19
Not Possible to connect using control SL
CODESYS Forge
talk
(Thread)
Not Possible to connect using control SL
Last updated: 2025-01-10
Using Latch Variable in Alarm as input from text list
CODESYS Forge
talk
(Thread)
Using Latch Variable in Alarm as input from text list
Last updated: 2025-03-06
Using an Axis of an Axis Group in Torque Conctrol
CODESYS Forge
talk
(Thread)
Using an Axis of an Axis Group in Torque Conctrol
Last updated: 2025-09-09
Error using function block "Write alias address"
CODESYS Forge
talk
(Thread)
Error using function block "Write alias address"
Last updated: 2025-10-01
Having trouble using the Web Client SL library
CODESYS Forge
talk
(Thread)
Having trouble using the Web Client SL library
Last updated: 2025-10-07
Creating a continuous counter using structured text language
CODESYS Forge
talk
(Thread)
Creating a continuous counter using structured text language
Last updated: 2022-02-18
Using the stepper02 lib with advanced FB
CODESYS Forge
talk
(Thread)
Using the stepper02 lib with advanced FB
Last updated: 2010-06-02
Accessing a library object without using the namespace
CODESYS Forge
talk
(Thread)
Accessing a library object without using the namespace
Last updated: 2018-08-17
To search for an exact phrase, put it in quotes. Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it. Example: docs -help
To search on specific fields, use these field names instead of a general text search. You can group with AND or OR.