how read analog value from Arduino Uno in Raspberry pi through I2 C protocol
CODESYS Forge
talk
(Thread)
how read analog value from Arduino Uno in Raspberry pi through I2 C protocol
Last updated: 2022-05-30
Write float value in modbus register and Read value whit comma from codesys
CODESYS Forge
talk
(Thread)
Write float value in modbus register and Read value whit comma from codesys
Last updated: 2018-05-28
Raspberry Pi USB HID RFID Reader - read ID in plc program
CODESYS Forge
talk
(Thread)
Raspberry Pi USB HID RFID Reader - read ID in plc program
Last updated: 2024-01-25
Unexpected behavior in cyclic encoder read method during INT overflow (wrap-around)
CODESYS Forge
talk
(Thread)
Unexpected behavior in cyclic encoder read method during INT overflow (wrap-around)
Last updated: 2025-05-13
Is possible to transform a .sqlite file generated by a Trend Recording object to a .csv file?
CODESYS Forge
talk
(Thread)
Is possible to transform a .sqlite file generated by a Trend Recording object to a .csv file?
Last updated: 2017-12-22
Post by xlfll on How to use libdoc to implement libraries in multiple languages
CODESYS Forge
talk
(Post)
po file to generate translation file mo, how to mo file into lmd file into the compilation library? This is not clearly described in the codesys help. Does anyone know? codesys help:https://content.helpme-codesys.com/en/LibDevSummary/localization.html#deployment-of-translated-documents
Last updated: 2025-03-13
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 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 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
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
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
Using only a Task Group and license question
CODESYS Forge
talk
(Thread)
Using only a Task Group and license question
Last updated: 2021-10-14
CAN Message programming using Codesysy V2.3
CODESYS Forge
talk
(Thread)
CAN Message programming using Codesysy V2.3
Last updated: 2014-06-13
External library in C: using windows.h
CODESYS Forge
talk
(Thread)
External library in C: using windows.h
Last updated: 2011-02-28
Unable to send data over RS232 (using serial_interface_01.lib)
CODESYS Forge
talk
(Thread)
Unable to send data over RS232 (using serial_interface_01.lib)
Last updated: 2017-01-12
CodeSys on a signle board using Samsung S3C2440A (ARM920T)
CODESYS Forge
talk
(Thread)
CodeSys on a signle board using Samsung S3C2440A (ARM920T)
Last updated: 2011-10-01
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
.