Post by aufwindsh on Visualization Scaling the Keypad
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hello everyone, is there an option to change the Scaling of the Keypad? I have an 15inch HMI with a resolution of 1920x1080p and the Keypad for the Login of the usermanagement is still to smals to have a great user Experiance. I really appriciate any feedback. Thanks.
    
    Last updated: 2025-08-02
    
    
      
        Post by astrum on OPC UA Information Model Error "Dimensions must be empty"
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hello everyone, does anyone know what this error means: Internal Error in code generation for http://opcfoundation.org/UA/DI/: Dimensions must be empty. I use the standard information models from Codesys and haven't even called the Information Model, but my program can't compile. the only thing I did was to insert the Communication Manage.
    
    Last updated: 2025-08-11
    
    
      
        Post by timvh on Current Visu name without Current Visu Variable
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      To change the current visualization for (all) webclients: Add the library “Visu Utils” and use the following example code: VAR xChangeVisu: BOOL; fbChangeVisu : VU.FbChangeVisu; END_VAR // Change to Visu2 when setting xChangeVisu to TRUE fbChangeVisu( xExecute:= xChangeVisu, xDone=> , xBusy=> , xError=> , itfClientFilter:= VU.Globals.OnlyWebVisu, //itfFilter, eError=> , sVisuName:= 'Visu2'); IF fbChangeVisu.xDone OR fbChangeVisu.xError THEN xChangeVisu := FALSE; END_IF
    
    Last updated: 2025-08-13
    
    
      
        Post by davemansell on explicit cast ENUM to UINT and vice versa
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      This is from sometime ago but below might help someone else; this could be done via POINTERS. Make sure you protect for NULL pointers etc if you take this approach. // DECLARATION myEnumValue : enumMyEnum; u8 : USINT; pmyEnumValue : POINTER TO enumMyEnum; pu8 : POINTER TO USINT; // CODE pu8 := ADR(u8); pmyEnumValue := pu8; myEnumValue := pmyEnumValue^; // dereference the pointer
    
    Last updated: 2025-08-21
    
    
      
        Post by davemansell on explicit cast ENUM to UINT and vice versa
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      This is from sometime ago but below might help you could do this via POINTERS. Make sure you protect for NULL pointers etc if you take this approach. // DECLARATION myEnumValue : enumMyEnum; u8 : USINT; pmyEnumValue : POINTER TO enumMyEnum; pu8 : POINTER TO USINT; // CODE pmyEnumValue := pu8; myEnumValue := pmyEnumValue^; // dereference the pointer
    
    Last updated: 2025-08-21
    
    
      
        Post by raamkumar on exple1
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      ```structured text VAR bStartButton : BOOL; // Start button input bStopButton : BOOL; // Stop button input bMotorRunning : BOOL := FALSE; // Motor running status END_VAR // Motor control logic IF bStartButton AND NOT bMotorRunning THEN bMotorRunning := TRUE; // Start motor END_IF; IF bStopButton THEN bMotorRunning := FALSE; // Stop motor END_IF; // Output to motor driver (replace with your actual output) // Assume 'qMotor' is a boolean output to the motor driver. qMotor := bMotorRunning;
    
    Last updated: 2025-08-23
    
    
      
        Post by nilanjan on I want to show the current recipe name in the visualization screen
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      I am having some trouble showing the current recipe name in visualization i am not using the RecipeManCommands i am using the inbuild visualization feature of Saving and Loading recipes. I need it so the user would have a track on which recipe is being used currently.
    
    Last updated: 2025-08-24
    
    
      
        Post by sandro66 on Application-based license Modbus Channels
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi, I imported an old project created with version 3.51.20.50 into the new version 3.51.21.20. I'm using ModbusFB.ClientTCP v4.5.0.0. Strangely, I can no longer download the project due to a licensing issue I didn't have before. The number of Modbus channels has gone from 1 to 54!, and there's no license that would work. Can anyone tell me where I'm going wrong? Thanks Sandro
    
    Last updated: 2025-08-27
    
    
      
        Post by antonz on CoDeSys v3.5: creating libraries for both 32-bit and 64-bit controllers
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Thanks Tim. I would think it somehow is relevant when creating a compiled library, but that may very well not be the case. If I understand you correctly, then the same compiled library created from my source code would work for both 32 bit as well as 64 bit controllers.
    
    Last updated: 2025-09-01
    
    
      
        Post by beavel on Opening and saving files with fileOpenSave dialog
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      1 + Replying in hopes of getting an answer here. I would also like to modify the look of the FileOpenSave Dialog. I have successfully adjusted the looks of the User management Dialogs but can not find a library file to adjust this particular one. Any help would be helpful. @thk @eschwellinger @sheberle .
    
    Last updated: 2025-09-08
    
    
      
        Post by onstage on Unable to add EL6751 to Control RTE V3 on W11 IoT LTSC using Eng. V3.5 SP21
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      For reference, it was just me being unfamiliar with EtherCAT in CoDeSys. Anyone with knowledge who would have opened the ScanResult screenshot would have identified that the preceding EK1100 was the device missing in the library. Bottom line - Do something else for a while and then get back at it with fresh eyes!
    
    Last updated: 2025-09-08
    
    
      
        Post by gseidel on Cam Blending
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi ustad41, cams can be buffered using the BufferMode input of MC_CamIn. If the end- and start-velocity of two buffered cams are not zero, there will be no stop. Not sure this answers your question. Cams can be changes on the fly by aborting the active cam. Please see [0] for details on switching cams. [0] https://content.helpme-codesys.com/en/CODESYS%20SoftMotion/_sm_cam_switch_between_cams.html Best regards, Georg
    
    Last updated: 2025-09-08
    
    
      
        Post by timvh on PHOENIX CONTACT Axioline PLCnext project in CodeSys  SodftPLC
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      1) Based on your first screenshot. Do NOT filter on "Phoenix". Then first select the Ethernet adapter (of CODESYS) and add this to your device. 2) Then to this Ethernet adapter add a Profinet Controller of CODESYS. 3) Then to this Profinet Controller, add your Phoenix Profinet coupler/adapter.
    
    Last updated: 2025-09-09
    
    
      
        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 rickwot809 on Codesys Soft PLC OPC UA server
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Enabling Anonymous Login 1. Navigate to 'Device' > 'Communication Settings' > 'Device'. 2. Next, click on 'Change Runtime Security Policy'. 3. In the new window, find and check the box for 'Allow anonymous login'. After completing these steps, you should be able to communicate with the OPC UA server.
    
    Last updated: 2025-09-11
    
    
      
        Post by gseidel on can not new a cam table in codesys V3.5 SP20
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi liai, is it possible, that SM3_Basic is missing in the library manager? (It should be inserted automatically when adding a Cam table, along with the other motion libs.) You can add it manually and see if that solves the compile errors. Best regards, Georg
    
    Last updated: 2025-09-19
    
    
      
        Post by gseidel on can not new a cam table in codesys V3.5 SP20
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi liai, I tried it with a fresh CODESYS SP21 Patch 2 installation and SoftMotion 4.18, but cannot reproduce the compile errors. Could you please upload a project archive that has the errors? Then I can have a deeper look. https://dl.codesys.com/s/q4KcbKCcZndg6oR Best regards, Georg
    
    Last updated: 2025-09-24
    
    
      
        Post by snhatton on How to write a for loop in ladder?
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi there, little late to the party, but you could also use the ST block for in-line ST code and implement a for loop as you normally would. ST Block is super handy if you just need a small amount of in-line structured text code without creating a new POU. Hope this helps!
    
    Last updated: 2025-10-06
    
    
      
        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 snhatton on OPC UA: How to change NodeId ?!
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      You can change the node id by adding the following to /etc/CODESYSControl.cfg: [CmpOPCUAProviderIecVarAccess] CustomNodeName=MyPLC123 Then restart the runtime and the new Node name will appear with the connection. I don't know if it's possible to remove the |var| from the name. I hope this helps!
    
    Last updated: 2023-12-11
    
    
      
        Post by nz-dave on Bool turning on in case stament in wrong state?
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      pretty sure its not. ive done a cross reference and only have one write that sets it to true. Only way i can stop it is to remove the function block call from the main pou that is running said case. its got me stumped:/
    
    Last updated: 2023-12-16
    
    
      
        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 martinlithlith on Raspberry Pi: List of available drivers / libraries
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi! I'm still on the hunt for drivers for example TCA9548 and a list or somewhere where all devices for raspberry is gathered. as this post is quite old I'm hoping/gussing that there is somewhere where work after 2021 is gathered? Or has the raspberry part if the community slowed down on creating device drivers?
    
    Last updated: 2023-12-31
    
    
      
        Post by pmasip on Codesys Control for Raspberry Pi 4.10.0.0 - Raspberry Pi OS > 2023-12-05
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      So none of the images from the 64bit archive work with any Codesys Control versions? I have tried the last Pi OS with every Codesys Control version and they don't work. I was wondering if there's any stable combination of versions.
    
    Last updated: 2024-01-04
    
    
      
        Post by tvm on Cannot pass array of constant size to a function as a reference
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      It will be a reference, because it's a VAR_IN_OUT. it's a little weird debugging the array online. It just shows as a POINTER TO INT, and you can't actually see the array from the function side. But you can still work with it as a normal array, not a pointer.
    
    Last updated: 2024-01-09
    
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.