Post by gunstr on CODESYS control on RPi starts, shortly runs, then exits
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Thank you very much for the quick answer! The RPi hw were delivered last week so it's probably a resent version. I found an old scrapped board (2 years or so) with a broken GPIO that I tested with the same SD card image and with that board Codeys can run for the full 2h demo period without issues. Then I went back the the new board to test the 4.17.0.0 release but the installation fails... [INFORMATION] Standard output: create and install daemon [INFORMATION] Standard output: codesyscontrol started [WARNING] Unable to detect Raspberry Pi Architecture. Setting armv6l as default, you can change this through the settings panel. [INFORMATION] Standard output: codesyscontrol stopped [ERROR] Expected exit value of command failed: expected 0, received 1 [WARNING] Error setting the Raspberry Pi Architecture [ERROR] Error installing codesyscontrol Do you have any idea what could be the reason? I'm using an OS image including Python drivers for LCD and some I/O:s from last year to keep things stable, but also after upgrading with sudo apt update && sudo apt upgrade I still get the same error Reverting back to 4.15.00 works fine: [INFORMATION] Standard output: create and install daemon [INFORMATION] Standard output: codesysedge started [INFORMATION] Successfully installed codesyscontrol [INFORMATION] Successfully started CODESYS Edge Gateway for Linux [INFORMATION] Successfully started CODESYS Control for Raspberry Pi SL but as before the Codesys services stops after 30 seconds. And I noticed that the Codesys control stops and is not reachable also if I have no application loaded.
    
    Last updated: 2025-09-02
    
    
      
        Post by alexgooi on Execute a .py file with Codesys
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hello yann, In the past I have experimented with the execution of Linux commands using Codesys. Maybe this article helps: https://www.linkedin.com/pulse/run-linux-commands-from-codesys-jouke-aalvanger When you are able to execute Linux commands in Codesys, you can run the Python script.
    
    Last updated: 2025-09-03
    
    
      
        Post by gseidel on The default ramp type selection in SoftMotion V4.18.0.0 is Quadratic
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi imdatatas, thanks for your feedback. This change was intentional, as the quadratic ramp type has many advantages over the trapez ramptype. Sorry to hear it causes problems in your situation. Can you please shortly explain the nature of the problems? Best regards, Georg
    
    Last updated: 2025-09-08
    
    
      
        Post by ranadheer on PHOENIX CONTACT Axioline PLCnext project in CodeSys  SodftPLC
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Thank you Pernockham, I am using Windows SoftPLC and the device is CODESYS Control Win V3 x64. In the above attached example, the file is Linux-based. This is an external add-on file in the CODESYS installer (CODESYS Control for PLCnext SL). I am trying to implement it without this add-on file.
    
    Last updated: 2025-09-09
    
    
      
        Post by kio123 on SysFileOpen not working
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      I have exactly the same problem and tried entering “ForceIecFilePath=0” in the file “CODESYSControl.cfg” ([SysFile]). Unfortunately, this was unsuccessful. Can anyone help in the meantime, e.g., with some sample code or with the FAQ that TimvH refers to above (link no longer works)? Many thanks and best regards
    
    Last updated: 2025-09-15
    
    
      
        Post by totorovic on Project loses 'Download time' information
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hello, Today I have the problem again. The code in my IDE is the same as the code in the runtime but I cannot Log in to the PLC without download. Juste because the Download information is 'None'. And I don"t know how is managed this information bu Codesys. I'M WAITING SINCE 17 MONTHS, CAN I PLEASE HAVE A ANSWER FROM CODESYS?
    
    Last updated: 2025-09-18
    
    
      
        Post by imdatatas on The default ramp type selection in SoftMotion V4.18.0.0 is Quadratic
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Dear @gseidel, Thank you for your clarification. I fully agree that the quadratic ramp type may have certain technical advantages. However, the main problem is backward compatibility and consistency across projects. In many automation projects, application developers rely on the fact that creating a new axis object will behave exactly the same way as in previous versions. With SoftMotion V4.18.0.0 and later, if an application developer adds an axis and overlooks the changed default, the motion function blocks behave differently than expected. In particular, since the Jerk value in SM3_Basic function blocks is ineffective in trapezoid ramp type, users are accustomed to leaving this parameter empty in their projects. In many existing projects, this variable has not even been assigned. When the default is changed to quadratic, the Jerk parameter suddenly becomes relevant, which can cause errors or unexpected behaviour in the field. From a user perspective, a default setting should always be the “safe” and “expected” option, while alternative options (like quadratic) can be selected manually if desired. Keeping the default as trapezoid ensures compatibility with existing projects and prevents unexpected issues, while still allowing users to benefit from quadratic ramps if they explicitly choose so. For these reasons, I kindly ask you to reconsider making trapezoid the default again. This would significantly reduce the risk of unexpected behaviour in future projects while still preserving the advantages of the quadratic ramp type for those who actively select it. Of course, the final decision is entirely at your discretion. Best Regards, imdatatas
    
    Last updated: 2025-09-26
    
    
      
        Post by jy77812 on Visualization XY Charter Question
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hello. I'm using Visualization XY Chart, and when I mark a circle through XY position data, a blue line is displayed in the circle with a red circle. At this time, can't I set the blue line not to be seen in the circle? Currently, whenever XY position is drawn, the line follows.
    
    Last updated: 2025-10-02
    
    
      
        Post by dogulas on numeric text box control
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Ok, this is how I made a numeric text field: use a Text Field properties -> Texts -> Text := %f (or %d or whatever you need) properties -> Text variables -> Text variable := (your numeric variable) properties -> Input configuration -> OnMouseDown -> Configure: Write Variable Input type := VisuDialogs.Numpad Use another variable (your numeric variable) Min val Max val etc. Please tell me there is an easier way to do this.
    
    Last updated: 2025-10-02
    
    
      
        Post by arjunk on How to correctly create a device descriptor (.devdesc.xml) for a custom Linux ARM64 PLC in CODESYS 3.5.21.20?
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi, I’m evaluating CODESYS for our devices. If I buy a standard runtime and the Toolkit, can I create a custom device descriptor so users can select my device (instead of just “CODESYS Control for Linux ARM64 SL”) when starting a new project? Has anyone done this or know if it’s possible? Thanks!
    
    Last updated: 2025-10-07
    
    
      
        Post by ulad on SPI Communication
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hello. I created a project that uses SPI. This project is working well. I can see with an oscilloscope that the SPI pins are actually changing. But when I resave this project in the IDE and open it later in the system, I see a constant error. What do I need to fix? What am I doing wrong? Thank you.
    
    Last updated: 2023-12-23
    
    
      
        Post by svn123 on In Simulation Mode, logic is not executing
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      I stopped the simulation and tried to rebuild. "Cloned Task0.task0. Priority already in use" error was shown after rebuilding. I used Build-Clean All option and rebuilt again. Now the logic started working. But I am not still sure what caused the error in first place. If somebody knows about this error, please enlighten me. Thanks svn
    
    Last updated: 2023-12-25
    
    
      
        Post by anderson on function block output
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      so it is not possible for me to use the function blocks and through them I can select the digital outputs of the PLC so that pulses and direction are output, or some function block that does this reading and in it I can program the pulse and direction outputs for the drive?
    
    Last updated: 2024-01-09
    
    
      
        Post by oscardm on Problem  install codesys 3.5.17 SP 30 with Codesys Installer
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi, I have a problem with codesys installer: if install a package on the codesys 3.5.17 SP17, and i try to install a package, for example SVN package, the codesys installer report the "digital signature expired error". Anyone have an idea for resolution ? Thanks for your feedback
    
    Last updated: 2024-01-12
    
    
      
        Post by hfelek on *SOURCEPOSITION* App = [Application] area=0, offset = 0 on default example
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hello, I am trying to run CmpTemplate component provided by Codesys for version 3.5.17. I call MyExternalFunction from the component but I get error as shown below. I see component is loaded successfully on runtime logs. I feel like I am missing something basically.
    
    Last updated: 2024-01-15
    
    
      
        Post by smartcoco on Add visual background FB blocks.
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Can you add a background FB block to the visualization page, and loop through this FB block when the page is in display mode. This FB block requires two more functions, one for executing when the page is displayed and the other for executing when the page is closed.
    
    Last updated: 2024-01-16
    
    
      
        Post by fcmtw on SDO generation
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi, When I'm adding a CANOpen device in my WAGO CANOpen Manager, CODESYS automaticaly generates some SDO's that I can't directly disable. From what those SDO's are generated ? I'm not finding anything about it in the EDS files. Also, is there a way to disable the automaticaly generated SDO and execute the manualy created ones ? Regards, Florian
    
    Last updated: 2024-01-23
    
    
      
        Post by rkohser on Python Script for Finding "Last saved with" Value
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi jkilburn, I have the exact same issue and thought I would search a solution on this forum. I see you did not get any answer, did you find a solution on how to extract the last saved version of codesys from the project file ? Roland
    
    Last updated: 2024-01-29
    
    
      
        Post by nano on Modbus TCP/IP slave communication errow
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      please tell us the exact error message from diagnostic. U can view it at devicetree in the node-element diagnostic from modbus-configuration. u also can activate the function auto-reconnect in master and increase a little bit the timeout and the repetition to male thw communication a little bit more robust
    
    Last updated: 2024-02-04
    
    
      
        Post by ronaldcom-pac on Gif in WebVisu 
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      I am looking for some help with using Gifs in the WebVisu of codesys 3.5.18.40 as the model we tried with ladder logic does not animate the Gif and leaves as the first image of the Gif. Is there a way for ST or LL for it to be animated?
    
    Last updated: 2024-02-08
    
    
      
        Post by mondinmr on Direct Pointers in IOMapping for EtherCAT with IoDrvEthercatLib.ETCSlave_Dia
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Thank you for the response! It's a path I had already considered, however, while it has always worked for me on inputs, it doesn't on outputs, because if I enable the option to update all IOs at every scan, the IO tasks overwrite each other. However, I have found something very interesting which I am posting below.
    
    Last updated: 2024-02-13
    
    
      
        Post by gurkan on OPCUA array max length?
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      We are using codesys 3.5.16.30 and we have a array with strings of length 5000. We are having issues subscribing to this variable from an OPCUA client. Is there any limit in the OPCUA Server in codesys for how long an array can be on the opcua server?
    
    Last updated: 2024-02-16
    
    
      
        Post by dav3 on Exception auf Raspberry, CMCommCycleTask Tainted
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hello, I don't really know what my problem was, but it's working for me at the moment. All i did was to change my code because of some REAL_TO_INT conversions, like i wrote above. And later a complete new Pi setup (because of 64x support with 4.10.0.0 now).
    
    Last updated: 2024-02-16
    
    
      
        Post by durstloescher on Library Documentation DocScripting
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi, I am currently creating a documentation for our library with DocScripting. In the process, I noticed that Visu images are created before the merge and transform, i.e. "screenshots" of the different Visus. Unfortunately, these are not used in the later process (Merge/Transform). Is there a way to set it up so that they are found in the html file?
    
    Last updated: 2024-02-19
    
    
      
        Post by reinier-geers on SysFileOpen does not work after update to V3.5 SP19 Patch 5
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      At 19.1 the hFile_test should be RTS_IEC_HANDLE and always open-write - close in one cycle udi_handle: RTS_IEC_HANDLE; //handle-number. Is created by SysFileOpen udi_handle:=SysFileOpen(sFileName,Sysfile.AM_WRITE_PLUS, ADR(udi_ErrorCode)); udi_RetValWrite:=SysFileWrite(udi_handle, pRemBuffer, szRemBufSize, ADR(udi_ErrorCode)); //closing file IF udi_RetValWrite < szRemBufSize THEN ui_Error:=cWriteError; END_IF//error writing data udi_ErrorCode_Close:=SysFileClose(udi_handle);
    
    Last updated: 2024-02-19
    
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.