Post by sachem on SysFileGetTime problem
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Good morning. I'm working with a Weidmuller controller using Codesys. My project use OPC-UA to communicate an application in my pc with the controller. Yesterday, I installed the license of the controller and test it, and the communication works perfect. I use the communication with anonymous login, and works fine. But, hours later, the anonymous login don't work, and the controller only allows connection via OPC with username and password. Someone know why this happend? Thanks
    
    Last updated: 2024-04-09
    
    
      
        Post by valenting on Problem with Licenced Software Metrics
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi, I tried with another project, using codesys SP20 with the latest visualization installed, I can install the application on my device but it doesn't work I get an exception "invalid license metrics" and the app won't run See attached the metrics in project and allowed by license, and the logs What am I supposed to do ? Everything is in the newest version and the values are lower than allowed and nothing works...
    
    Last updated: 2024-04-26
    
    
      
        Post by robpqs on Visual error with cut/shredded texts
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hello, This is an old topic but it might help. This can/should be solved by either of the solution below 1. disabling the "Support client animations and overlay of native elements" option in the visualization Manager (which is handy) 2. disabling the "Hardware acceleration" of the browser. Saw it happening on some clients/PC and on other it works fine with the same webvisu... (Version 3.5.19.20 with visu package 4.4.0.0) Hopefully it will be fixed it in a next release. I haven't tested the 4.5.0.0 visu packages yet. RP,
    
    Last updated: 2024-05-27
    
    
      
        Post by bartg on Open a POU in the editor via scripting
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi, I would like to automate opening some specific pous and visualisations in the codesys environment I found out that I can open it by using : system.commands["42f6acb9-bd6e-42e7-94bb-6e2a03973b83"].execute() But the POU has to be selected in the Devices or POUs navigator. Does anyone know how I can select a specific POU in the navigator? Or how I can open a specific POU? I can retreive the guid of the POU. Thx
    
    Last updated: 2024-05-30
    
    
      
        Post by rabaggett on No Visu on RasPi
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hello, I have been having trouble getting a visualization to show up on the RasPi. I have previously used both WAGO touchscreen and Windows ControlWin and had no trouble. The visu does not show on the Raspi screen on start of the program and attempts to view in a browser both on the Raspi (Chromium) and from my laptop (Brave,Chrome,Firefox) running Codesys development fail. The visu shows correctly in Codesys development when online. (Win 11) The control code that is active is operating correctly. Raspi Codesys runtime is licensed. What am I missing? Thanks!
    
    Last updated: 2024-06-20
    
    
      
        Post by rossanoparis on After un upgrade of "CODESYS Control for Raspberry Pi MC SL" from v4.7 to v4.9 SysFileOpen function stopped working
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hello at all. After un upgrade of "CODESYS Control for Raspberry Pi MC SL" from v4.7 to v4.9 SysFileOpen function stopped working. I'm not able to read or write files from the PLC application. Before this upgrade all worked fine. I've read this thread [ https://forge.codesys.com/forge/talk/Engineering/thread/3da9ded84e/ ] Despite I followed that indications I couldn't get my code working again. Perhaps I'm missing something or I didn't understand how to use placeholders at all. Is there a different syntax to use for "SysFileOpen" in order to use placeholders? Thanks in advance for your help. Information Compiler: CODESYS V3.5 SP19 Patch 2 Runtime: codesyscontrol 4.9.0 HW: KUNBUS RevPi Connect S Below the paths I want to access (The entire CODESYSControl_User.cfg file is attached) [SysFile] PlaceholderFilePath.1=/home/pi/hpca/bin, $hpcabin$ PlaceholderFilePath.2=/home/pi/hpca/cfg, $hpcacfg$ PlaceholderFilePath.3=/home/pi/hpca/logs, $hpcalogs$ PlaceholderFilePath.4=/home/pi/hpca/resources, $hpcares$
    
    Last updated: 2023-08-22
    
    
      
        Post by simotion on Codesys Softmotion Win V3 x64
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      I have a project in Codesys v3.5 sp19 patch2 that contains softmotion virtual axes. I want to simulation the code (softmotion) on the simulated plc on the pc. The controller in the project is a Codesys Softmotion Win V3 x64. I have started up the Codesys Softmotion Win 64 on the pc. However it seems a 3.5 sp14 controller. When trying to download the project, I get a message that target system is different from connected system (3.5.19 vs 3.5.14). How do I set the connected system to 3.5.20 (there seems no way to set the target system to 3.5.14
    
    Last updated: 2023-10-04
    
    
      
        Post by appling on License status of Linux 64Bit runtime via CLI
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi, I have a Linux 64Bit system with a Codesys application running on it. It stops after 2hours and a few minutes, which makes me think something is wrong with the installed license. (in my last timing it stopped after 2h4min, on the codesys website it is stated that runtimes without a license stop after 2h) I installed the license via a USB license dongle that I activated on my workstation with the Codesys IDE a while ago. Now the system is shipped at not accessible physically, only remotely via SSH. So is there a way to check the status of the License of the Codesys runtime when it is running on the system? Running the codesyscontrol script with "status" just tells me that it is running, but does not provide any license information. Best regards
    
    Last updated: 2023-12-04
    
    
      
        Post by mubeta on Reset problem with CMZ SD/SVM drive
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      In a recent project with SoftMotion 4.15.0.0, where I integrated two SD drives from CMZ (from catalogue EDS and not imported), on CANopen bus, I found that the SoftMotion MC_Reset function does not reset the drive faults. Even if the drive is in fault, either on the device or on the drive at the CoDeSys level, the function does not reset, instead reporting the error code: no error to reset. Finally, I had to connect the reset bit of the ControlWord directly to a tag in my program. Something I never had to do on other drives: Lexium, etc. all reset simply with MC_Reset.
    
    Last updated: 2024-07-24
    
    
      
        Post by lukebouchard on NVL generating ADwin packets instead of UDP?
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Using Codesys 3.5 SP11 32bit to program a pair of IFM CR711S controllers. They each have an NVL sender and are set up to receive each others messages. One is transmitting properly but not receiving, the other is receiving the first's messages just fine. When I look at the traffic in wireshark, I can see the one transmitting properly as UDP packets on the subnet and port I had specified. The Second is transmitting on the right subnet and port, but is sending 'ADwin Config' packets. Has anyone run into anything simmilar? From some reading on ADwin from google, nothing is enlightening. Both are set up in the same way, have their own ports and List Identifiers. I have deleted the NVL files and regenerated them, cycled power, and even deleted and remade the NVL's so many times.
    
    Last updated: 2024-08-24
    
    
      
        Post by yannickasselin on codesys VLAN tagging
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      I ordered a cheap managed switch and tested it as soon as I received the switch. It works great! I even went a bit further. As you can see in the screenshot, I created 2 Codesys containers. Each one having 2 fieldbuses. The first one has EtherCAT and EtherNet/IP and the second one has EtherCAT and Modbus/TCP. All going through the same ethernet port from the PC to the switch. The switch splits it up into 4 different networks. The hardest part was to figure out how to configure the switch. @eschwellinger, thank you very much.
    
    Last updated: 2024-09-17
    
    
      
        Post by andrax on CodeSys Raspberry pi I2C driver not found
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Ok, with debug you suppress the errors, but that doesn't help you any further. You can find information about the missing drivers here https://forge.codesys.com/forge/talk/Runtime/thread/8981ce928a/ and here https://github.com/stefandreyer/I2C-Multiplex I'll have to have another look at which library you need. But you can easily find out. Create a completely empty project and insert the TCA9548. You don't need the board. Then look in the library and resolve all conflicts If you can compile the project without errors, delete the TCA9548 and insert the ADS1115. The driver should then also run. Small bonus: with the TCA9548 you can expand your network as you wish and use identical sensors multiple times
    
    Last updated: 2024-11-08
    
    
      
        Post by hyys12 on CODESYS 3.5 dicovery of PLC modules
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      I have a WAGO PLC, to which I am establishing a connection. Here I use the autodiscover to register the connected modules. Now, I have tested the in-/outputs of the different modules, to verify they are consistent with how they are physically connected to the PLC in regards to how CODESYS has numbered them. Will CODESYS always number the modules closest to the PLC itself lowest, and the one furthest away, the highest? I am rather new to the program, so I both hope my question makes sense, as well as not being completely obvious. Thanks!
    
    Last updated: 2024-12-06
    
    
      
        Post by edson-bueno on IFM Controller Connection Issue
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi, Could you please send an print of your ethernet adapter info? Ip addr Subnet Mask Default Gateway Also, check if the gateway service is active in your windows. Win+R > services.msc > Look in the list CODESYS Control Win V3 x64 Gateway OR CODESYS Gateway V3 Hook up the M12 code D into the ETH port, supply the controller, it should apperars to you. Make sure when you try to connect with the controller, the target of your project has to match with the controller. Otherwise, click on the device in the devices tree > Communications Settings tab > Device > Options > And disable "Filter Network Scans by Target ID". Good luck.
    
    Last updated: 2025-05-29
    
    
      
        Post by andrax on Save Recipe on Paspberry
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Unfortunately not. The folder does not work. There are neither error messages nor any other indication that this may be due to missing rights. I have searched the entire forum and also tested the Codesys example. The simple recipe management generally does not work! The Raspi crashes with the extended recipe management from the example. I have now found another sample that works. https://forge.codesys.com/forge/talk/Engineering/thread/61c6a04b79/ Many thanks to mcodem. After some trial and error I have found out: xcreate must be called at least once at runtime. After that xload_write and xread_save work All other functions do not work. It is also possible to save to the /home/Documents folder. So it is not due to the rights. It would be nice if Codesys would check where the problem really lies.
    
    Last updated: 2023-12-30
    
    
      
        Post by adaffern on Runtime on Raspberry pi5 stops after 15 seconds
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi Guys, I'm new to CODESYS on the pi and I'm struggling to get it working. My issue is that the runtime keeps stopping after approximately 15 seconds. I have installed the runtime package 4.11.0.0 on the pi, trying on both a 64 bit and 32 bit OS. Looking at old forums it all references the 4B and the fact they used 32 bit Debian bullseye (the last version of raspberry pi os) however the pi 5 doesn't offer this version when I try select it in the imager. Has anyone managed to get running using the pi 5? Any help would be greatly appreciated. Thanks, Adam
    
    Last updated: 2024-06-10
    
    
      
        Post by timl on Application has invalid license metrics
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hallo, ich habe eine Control for Linux SL auf der ich einen TCP Modbus Master anlege, mit dem ich einen Slave auslesen möchte. Das Anlegen funktioniert soweit alles, sobald ich beim ModbusTCPSlaveE/A-Abbild in den Channel eine Variable einfüge, damit ich den Channel auslesen kann, kommt es beim übertragen auf die SPS zu einem Ausnahmefehler. Im Anhang noch eine Bilder der Fehlermeldung und der installierten Lizenzen. CODESYS Version ist V3.5 SP19 Patch 4 Meinem Verständnis nach ist die Modbus Lizenz mit in der Control Standard L inbegriffen und auch in der Lizensierten Softwaremetrik sehe ich keine überschreitung meiner Lizenzbegrenzungen. Daher verstehe ich nicht wieso ich diesen Fehler bekomme und eine auslesung via Modbus nicht möglich ist. Gruß Tim
    
    Last updated: 2024-05-08
    
    
      
        Post by macman on Codesys 3.5 OPC UA Client to Kepware OPC UA Server
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi, I have problem with connecting Wago PLC WAGO 750-8212/0025-0002 configured as OPC UA client to Kepware OPC UA Server. I am using Codesys 3.5.19.70. What I did so far. To the Codesys project I added object Data Source Manager and configured connection OPC UA like below: pic 1 Then I can browse the OPC server tags in “Variables” tab after prior trust on the server side of the client certificate created in the “Communication” tab: pic 2 Additionally second certificate has been created in Codesys for runtime process in “Security screen” as well as the server certificate was approved here: pic 3 But when I compiled project, downloaded it to PLC and go to RUN I can’t read selected in “Variables” tab, OPC Server tags. I am getting such error (ID: 7001): pic 4 All two PLC certificates has been trusted in OPC server (Kepware) side: pic 5 and Kepware server configuration look like this: pic 6 I can easily connect using third party OPC UA client UaExpert to Kepware server without problem. In attachment I added also log from Kepware OPC UA server. pic # - this specifies the number of a concrete graphic from one of the collective in attachment
    
    Last updated: 2025-04-02
    
    
      
        How to configure CODESYSControl_User.cfg in order to use a specific network card for OPCUA Server
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      How to configure CODESYSControl_User.cfg in order to use a specific network card for OPCUA Server
    
    Last updated: 2023-08-28
    
    
      
        Post by martinlithlith on CODESYS Control for Raspberry Pi SL on Raspberry Pi 4b
    
    
       CODESYS Forge
    
    
      talk
    
    (Post)
    
    
      Hi! Thanks for your reply! I'll have a go then!
    
    Last updated: 2023-09-06
    
    
      
        Ethercat scan for devices not picking up EL7041 as a softmotion axis
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      Ethercat scan for devices not picking up EL7041 as a softmotion axis
    
    Last updated: 2023-09-18
    
    
      
        Is it possible to replace a table row header for a text in a text list?
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      Is it possible to replace a table row header for a text in a text list?
    
    Last updated: 2021-10-21
    
    
      
        Which kinds of data is transferred with 'Scan for devices' command?
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      Which kinds of data is transferred with 'Scan for devices' command?
    
    Last updated: 2020-12-14
    
    
      
        Codesys 3.5.19 Control Win x64 - network adapter for EtherCAT master not working
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      Codesys 3.5.19 Control Win x64 - network adapter for EtherCAT master not working
    
    Last updated: 2023-11-22
    
    
      
        Migration von "CODESYS Control for PFC200 SL" zu WAGO FW26 "CODESYS V3.5.19.2"
    
    
       CODESYS Forge
    
    
      talk
    
    (Thread)
    
    
      Migration von "CODESYS Control for PFC200 SL" zu WAGO FW26 "CODESYS V3.5.19.2"
    
    Last updated: 2023-11-23
    
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.