Post by dalfaro21 on Softmotion not working with simulation mode
CODESYS Forge
talk
(Post)
I have a KEB combivis studio software running codesys and I want to make some moves but softmotion is not working on my laptop I hope you can help me!
Last updated: 2024-05-12
Post by kevinm on Data source and safety PLC
CODESYS Forge
talk
(Post)
I am having the same trouble. However, if I change the Login Configuration settings to 'Type: Login using the credentials determined at runtime' then the Connection information continues as 'Connection state: Connecting' and 'Error information: OK'. There is no User Management on the source PLC.
Last updated: 2024-05-16
Post by rafaelbrito on Licensing info not available.
CODESYS Forge
talk
(Post)
Hello, I'm having the same problem. I'm trying to license Codesys running in a Linux container, which I downloaded from the following link (https://hub.docker.com/r/hilschernetiotedge/codesys_control_sl_linux). The same error that you mentioned appears. Is there any solution?
Last updated: 2024-05-22
Post by tortilla on J1939 connection between two devices
CODESYS Forge
talk
(Post)
Hey, I'm pretty new to CoDeSys so I don't know a lot of things yet. I have to create a connection between two devices (CANbus - J1939 connection). The idea for now is to send a message from one to another (one operates on 3.5 SP11 the other one on 2.3) I watched a few videos, worked with the documentation and worked with chatGPT 4o and was able to build the attached file. This part is about the device on 3.5.11: I'm using the J1939LocalECUDiag, TransmitParameterGroup, TransmissionTrigger Function blocks to send the message but my TransmitPG.xBusy / .xDone never turns to True and therefore my message is not sent while TransmitPG.xExcecute is True. I added the two devices in the CANbus in the J1939Manager and addapted the options like I've seen in the documentation. Can anyone explain what's wrong with my code in this casse or give me advices how to properly create a connection between my two devices? Thanks in advance!
Last updated: 2024-05-23
Post by donm on Regarding trend storage access error
CODESYS Forge
talk
(Post)
i have created a project which contain 30 trend and suddenly trend recording is not working. its showing an error 30437."Determination of root pages for recording did not work for 'screen', error:30437" how to solve this issue?
Last updated: 2024-05-27
Post by donm on trend storage access error
CODESYS Forge
talk
(Post)
i have created a project which contain 30 trend and suddenly trend recording is not working. its showing an error 30437."Determination of root pages for recording did not work for 'screen', error:30437" how to solve this issue?
Last updated: 2024-05-27
Post by zer0g on Modbus Client Request Not Processed
CODESYS Forge
talk
(Post)
Hi, I have the same problem as the guys above. Any solution or hint in the right direction is appreciated. Codesys version 3.5.19.2, Lib version: 4.4.0.0. Thank you!
Last updated: 2024-05-29
Post by jaspergain on Non-existing identifiers
CODESYS Forge
talk
(Post)
Hi, I'm using SP19 Patch 5, the software is also updated from SP18 Patch 5, I forgot to mention this. I will try a newer patch to see if it fixes the issue. Thanks for your help.
Last updated: 2024-05-30
Post by culius on Official MQTT-Client: MAX_RECEIVE_BUFFER_SIZE_EXCEEDED
CODESYS Forge
talk
(Post)
Hey Guys, could you give a explaination of how to change the g_udiMaxPacketSize from 6000 to 100000 and g_udiMaxPayloadSize from 4096 to 80000 ? When I go to the library the parameter is not editable. I would really appreciate it :) Kind Regards
Last updated: 2024-06-07
Post by fajean on CODESYS control on RPi starts, shortly runs, then exits
CODESYS Forge
talk
(Post)
I have a Raspberry Pi 4 we have been using for years to run CODESYS for development purposes. I recently have had to re-install the OS (Raspberry OS lite). The only change to the default configuration is not creating the "pi" user during install. I (apparently successfully) installed the 4.10.0.0 control on the Raspberry Pi. We have licences on a dongle. I am able to start the control. systemctl status shows it as running for a little while (exactly, precisely 30 seconds as per my tests, every time), then it becomes exited. I can restart the control, and the same thing happens again. Every time. In the brief moments it is running, I can log in to the PLC. Working fast and restarting the control many times, I have been able to configure users. I have been able to download my application. I have been able to run the application, and stop on a breakpoint. I have been able to connect with the licence manager and confirm the dongle is detected and licences are listed as OK. I see nothing wrong until the service just exits. I have found nothing in the logs. It is like the runtime just terminates with no error code or message after exactly 30 seconds. Any help would be appreciated.
Last updated: 2024-06-13
Post by eschwellinger on Cant login to Rpi4 but can see it in codesys communications settings.
CODESYS Forge
talk
(Post)
your device in the device tree is Pi 64 online you have Pi MC (32bit) - update device in the device tree to Pi MC then it will work.
Last updated: 2024-06-23
Post by s1mon on Two OneWireMaster on one Raspberry PI 5
CODESYS Forge
talk
(Post)
yes sure. Thx for your support! This is the Codesys project stripped down only to my EtherCat and OneWire Configuration. The Project now contains only one OneWire Master on GPIO4.
Last updated: 2025-10-20
Post by andrea199403 on Assigning Modbus addresses to a structure in a dynamic way
CODESYS Forge
talk
(Post)
Hello everyone, I am new to this forum and I am also new to Codesys programming. My problem is this: I have a STRUCT of 64 bool and 30 real, this STRUCT is assigned in the programme 9 times. Now I need to communicate with an HMI via Modbus and I have defined the slave device and created the holding registers for communication. I would like to declare the first call of the STRUCT on the Modbus registers %QX2000.0 to %QX2007.7 for the booleans and on the registers %QW1004 to %QW1034 for the real registers. That said, I would like to change an index and set an offset of 100 bytes for the calls of the other 8 assignments, so that the result is: %QX2100.0 to %QX2107.7 for the booleans and on the %QW1104 to %QW1134 registers for the Real registers, etc. Is there a way to declare this? Thank you very much.
Last updated: 2025-10-21
Post by jtebokkel on VAR_GENERIC unknown token
CODESYS Forge
talk
(Post)
The help says VAR_GENERIC exists, but trying to use it in 3.5.21.30 results in a unknown token error. https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_vartypes_var_generic_constant.html Did this feature get removed or is there something else that needs to be done to enable using generic function blocks?
Last updated: 2025-10-21
Post by eschwellinger on search runtime 4.9.0.0 for pi 3
CODESYS Forge
talk
(Post)
sorry I missed to say how to do this just update the runtime. (extract latest debian package out of the CODESYS package) but 8n this case an update all to the latest version including CODESYS is probably the easiest option now.
Last updated: 2025-10-26
Post by davidbo on How to stay in a method until something is finished.
CODESYS Forge
talk
(Post)
You never stay in a method. You need a block to do that. Something like: VAR button:BOOL:=FALSE; count:UINT:=0; END_VAR IF button THEN //read pressure count:=count+1; IF count>1 THEN button:=FALSE; count:=0; END_IF END_IF
Last updated: 2025-11-04
Post by davidbo on What is the prerequisites for a Raspberry Pi to work with SysSockSetIpAddressAndNetMask()
CODESYS Forge
talk
(Post)
I have done: systemctl stop dhcpcd sudo ip addr flush dev eth0 sudo ip link set eth0 up but a call to SysSockSetIpAddressAndNetMask does not give the eth0 an IP address Why?
Last updated: 2025-11-04
Post by ranadheer on conformation about the CODESYS Extends SL and CODESYS SDK
CODESYS Forge
talk
(Post)
hello everyone would anyone here respond, Is CODESYS Extends SL and CODESYS SDK are same. If both are not same could you please give related data about this. Best Regards Ranadheer
Last updated: 2025-11-10
Post by kalmeyer on Stepper motor control with (SM_Drive_RaspStepper_direct)
CODESYS Forge
talk
(Post)
Is there perhaps a place where I can see examples of programming with different instructions? This would be a great help. Maybe there are some places where ready-made programs are posted that can be downloaded and tested? /Klaus
Last updated: 2025-11-10
Post by nano on What is the prerequisites for a Raspberry Pi to work with SysSockSetIpAddressAndNetMask()
CODESYS Forge
talk
(Post)
have u turned on the Ip-Setter in codesyscontrol.cfg? [SysSocket] Adapter.0.Name="eth0" Adapter.0.EnableSetIpAndMask=1
Last updated: 2025-11-11
Post by davidbo on What is the prerequisites for a Raspberry Pi to work with SysSockSetIpAddressAndNetMask()
CODESYS Forge
talk
(Post)
I have now and it works. I had the idea that it had something to do with codesyscontrol.cfg, but where can I find a description of all the things you can set in codesyscontrol.cfg and its syntax?
Last updated: 2025-11-12
Post by jonasz on Deploy LicenseServer for Linux SL
CODESYS Forge
talk
(Post)
So here's how: I manually installed the following packages: codemeter-lite_8.30.6885.501_amd64.deb codesyslicenseserver_licenseserver_4.18.0.0_all.deb codesyswbmbase_wbmbase_4.18.0.0_all.deb codesyswbmlicensing_wbmlicensing_4.18.0.0_all.deb Of course, the license server appeared immediately. Trying to install it again using Install in the Deploy tab, the same error appears. Of course, the information that such a server is already installed is also there. Configuring PLC, S_PLC, EDGE, and SAFE_TIMER_PROVIDER went smoothly, and basically everything works. I wrote a simple program for S_PLC. I'm loading the programs into PLC and S_PLC. When loading the program into S_PLC, a message appears stating that there is no connection to the S_PLC controller. Timeout error. Restart the controller, attempt to load, and see the above. After changing the cycle time for S_PLC to 50ms, the problem no longer occurs. My question, besides the difficulty of installation for a new user, is what causes the cycle time for S_PLC to be so long, and how can I fix it?
Last updated: 2025-11-14
Post by jonasz on Deploy LicenseServer for Linux SL
CODESYS Forge
talk
(Post)
After carefully studying the documentation, I have a question: is a second hardware-independent time source required for the correct operation of the VirtualSafety system?
Last updated: 2025-11-17
Post by jonasz on Deploy LicenseServer for Linux SL
CODESYS Forge
talk
(Post)
Thank you for your response. Is there documentation for the commands? I spent a lot of time trying to figure this out. I have a potato computer at home, so I'll have to test this later.
Last updated: 5 days ago
Post by reinier-geers on Data to server
CODESYS Forge
talk
(Post)
HI, i want to copy data to a server of a costumor. Whats the easy way ? contoller is V20p5 but also 2 are V9.2
Last updated: 2025-11-11
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.