Post by thn-power on Updating OPC UA Core Nodeset on PLS
CODESYS Forge
talk
(Post)
Hi After much trail and error I think I found the root cause to my OPC UA problem. The problem is that I cannot manage to build and download a program with a a custom OPC UA Information model. We use a Weidmueller WL2000 PLS, but the problem also exsist on the Win V3 PLC. Our custom information model is based on the latest versions of the OPC UA Core Nodeset v 1.05.03 (2023-09-20) and UA/DI nodeset 1.04.0 (2022-11-03) Those nodesets are installed in the Codesys Information Model Repository (3.5.19.6) However, when trying to build I get the following error. [ERROR] Untitled1: Communication Manager [Device: PLC Logic: Application]: The information model http://opcfoundation.org/UA/ is required by http://bos.org/ with a minimal publication date from 15.12.2023 but the device has only a model from 15.09.2021 installed. Probably the information model from 15.09.2021 is missing in the information model repository. [ERROR] Untitled1: Communication Manager [Device: PLC Logic: Application]: The information model http://opcfoundation.org/UA/DI/ is required by http://bos.org/ with a minimal publication date from 03.11.2022 but the device has only a model from 09.03.2021 installed. Probably the information model from 09.03.2021 is missing in the information model repository. Build complete -- 2 errors, 1 warnings : No download possible I think the problem is that the UA Core nodeset is implemented in the PLC firmware (at least that in Siemens S7), and that only includes the "old" nodeset from 2021-09-21 etc. So the question is, how (or if?) can I transfer the new nodeset to the PLS? I have created separate Information models under Communication manager with the newer code nodesets (UA and DI). But it seems that the compiler does not recognize them being excising, neither in the Codesys IDE or on the PLC. Would have guessed that this is a common issue, sine many manufacturers use the latest versions of the OPC UA standard, and that it would be a solution to the problem.
Last updated: 2024-09-20
Post by paulpotat on Can't open license manager with raspberry CM4
CODESYS Forge
talk
(Post)
Hello, I have a problem when opening the license manager for my raspberry pi (CM4 model) with runtime 4.13.0.0. I select "Device" --> "Soft Container" and click on my device in the scan window but I get this error message : Licensing info not available. There is no dongle attached to this device. I can't install licenses anymore, and I don't understand why is CodeSys looking for a dongle when I specified I wanted to use a Soft Container. Can somebody help me please ? Best regards
Last updated: 2024-10-04
Post by jwhaley on C0007 Errors
CODESYS Forge
talk
(Post)
I ended up figuring it out It wasn't in my code. It kept taking me to 2 of my visualizations but it wasn't going to anything specific. Figured out it was some arrows that I had made to buttons for a mouse click to go to the other visualizations. I removed the text in the assign box but didn't remove the action "change shown Visualization from the list. If I deleted the images all together, the error went away. That's how I thought to go look at that.
Last updated: 2024-10-10
Post by xabier on Problem Update new version Master ethercat
CODESYS Forge
talk
(Post)
Hi, I have a project in Codesys...and i need update a new version of amster ehtercat and i have a problem. The origianl version with create of project was 3.5.13.10 I can change version to Master Ethercat 3.5.13.10 to 3.5.16.70 but i canΒ΄t update the last version 4.4.0.0 (I attached the screen "Version Master OK-NO OK"). In the moment update to the last version appear a lot of error("Version Master NO OK") Can anyone help me please?
Last updated: 2024-10-25
Post by ben1 on How to write multiple coils (Modbus FC15)
CODESYS Forge
talk
(Post)
When you say it does not work, does nothing happen or do you get an error? I have not used this function in codesys but from my past experience with Modbus I believe the coils need to be contiguous, which may be why yours is failing? Have you tried using Write Registers (16) to do the job? Or is their data in-between you do not want to edit in the transaction?
Last updated: 2024-11-17
Post by dagi89 on CAA File open Problems
CODESYS Forge
talk
(Post)
Dear All, i am using Runtime CODESYS Control Win V3 - X64 Version 3.5.20.40, by using CAA file library (3.5.19.0) seems not fasible to open a file n 'C:\ciao.txt' or others absolute path. The error on File Open is 5114 File Operation Danied.. here below the implemented code and the windows file's properties. I use to implement codesys in RPI and this operation is immediate... Can someone help me in it?? Thanks in advance Dagi89
Last updated: 2024-12-21
Post by dogulas on OPC UA C# client connecting to OPC UA CODESYS server
CODESYS Forge
talk
(Post)
Ok, for the sake of completeness in case anyone else has this problem. I can tell you that what finally worked for me was to change the line: // create an ExtensionObject to wrap the value to be written ExtensionObject extensionObject = new ExtensionObject( new ExpandedNodeId("GVL_StructA", 5), structAData ); to: // create an ExtensionObject to wrap the value to be written ExtensionObject extensionObject = new ExtensionObject( new ExpandedNodeId("GVL_StructA|defaultbinary", 5), structAData ); I'm sure there are many other problems that could cause this very generic error, but this was my problem.
Last updated: 2024-12-30
Post by teichhei on The selected container ... does not fit your ticket
CODESYS Forge
talk
(Post)
Update, installed 3.5.19.70 with the same result. The error message is as useful as a chocolate fire guard. The container SN is in the 130-xxx range which should work. The Version, Chip, Rev number don't mean anything to me. There is no SD Card installed. I've also reinstalled a fresh Wago FW22 image, Deployed PFC200 SL and Edge for Linux, still the same result.
Last updated: 2025-01-09
Post by pernockham on Inheritence of struct,
CODESYS Forge
talk
(Post)
Interesting, thanks! Didnt know about ANY before, and will sure find a use-case for it. Im not sure it will help me here though, it seems to me that an ANY will not accept a string assignment? I actually think that the "ALIAS" should work, that was a hard found error. I had a fair bit of scratching my head looking for misdirected pointers before I understood what was (not) happening. I will use the work-around of individual structs instead.
Last updated: 2025-03-08
Post by atone on Set DeviceID of an IO-Link Sensor at Runtime
CODESYS Forge
talk
(Post)
I need to be able to change (set) the DeviceID of an IO-Link sensor (see DeviceID.png) at runtime. I tried with both ProfinetCommon.PN_PortConfiguration and ProfinetCommon.IOL_PortConfiguration, but I get an error for both when I try to read the port configuration (see PN_PortConfiguration.png). Does one of those FBs is the right one for my purpose? Do I possibly make a mistake when assigning the parameter IOLD_ID/IOLM_ID?
Last updated: 2025-03-19
Post by agentcousto on (no subject)
CODESYS Forge
talk
(Post)
Hello, I have developed a Python script that I run to import XML files into my project. For this, I use the Python function import_xml(). Everything was working fine when I was using Codesys platform plugins version 2.6.1.2320, but since I upgraded to versions 2.7 and even 2.8, some files are no longer imported correctly. After some research, I identified that all the files containing variables of the type "POINTER TO" are affected. I have attached a screenshot of the error I am encountering. Do you know about this bug? Do you plan to fix it?
Last updated: 2025-03-26
Post by kuegerls on OpC UA server on Raspberry Pi MC SL - Certificate Issue
CODESYS Forge
talk
(Post)
Hello, I have set up an OPC UA server following several guides, including this one: https://revolutionpi.com/documentation/tutorials/opc-ua-codesys-nodered/. The license for the runtime is installed on the device. However, I am unable to create a certificate for the OPC UA server in the security screen. I always get the error message: "The certificate has not been created by the device." Does anyone have an idea what might be causing this issue? Any help would be greatly appreciated! Thanks in advance! Best regards, Stefan
Last updated: 2025-04-02
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 sercan on Does G75 work when SMC_NCInterpreter is used?
CODESYS Forge
talk
(Post)
When a G75 command is received in a SoftMotion+CNC project, SMC_NCInterpreter does not generate any error commands, but the command does not continue execution! There is information about SMC_NCDecoder in the documentation of the G75 command. Is this command only supported by SMC_NCDecoder? Can the G75 command be used with SMC_NCInterpreter? Forexample: G75 ; RUNNING G01 X$Settings.X$ Y$Settings.Y$ Z$Settings.Z$ ; - G75 ; - G01 X100.0 Y200.0 Z300.0 ; -
Last updated: 2025-05-09
Post by sercan on Does G75 work when SMC_NCInterpreter is used?
CODESYS Forge
talk
(Post)
When a G75 command is received in a SoftMotion+CNC project, SMC_NCInterpreter does not generate any error commands, but the command does not continue execution! There is information about SMC_NCDecoder in the documentation of the G75 command. Is this command only supported by SMC_NCDecoder? Can the G75 command be used with SMC_NCInterpreter? Forexample: G75 ; RUNNING G01 X$Settings.X$ Y$Settings.Y$ Z$Settings.Z$ ; - G75 ; - G01 X100.0 Y200.0 Z300.0 ; -
Last updated: 2025-05-09
Post by sercan on Does G75 work when SMC_NCInterpreter is used?
CODESYS Forge
talk
(Post)
When a G75 command is received in a SoftMotion+CNC project, SMC_NCInterpreter does not generate any error commands, but the command does not continue execution! There is information about SMC_NCDecoder in the documentation of the G75 command. Is this command only supported by SMC_NCDecoder? Can the G75 command be used with SMC_NCInterpreter? Forexample: G75 ; RUNNING G01 X$Settings.X$ Y$Settings.Y$ Z$Settings.Z$ ; - G75 ; - G01 X100.0 Y200.0 Z300.0 ; -
Last updated: 2025-05-09
Post by sercan on Does G75 work when SMC_NCInterpreter is used?
CODESYS Forge
talk
(Post)
When a G75 command is received in a SoftMotion+CNC project, SMC_NCInterpreter does not generate any error commands, but the command does not continue execution! There is information about SMC_NCDecoder in the documentation of the G75 command. Is this command only supported by SMC_NCDecoder? Can the G75 command be used with SMC_NCInterpreter? Forexample: G75 ; RUNNING G01 X$Settings.X$ Y$Settings.Y$ Z$Settings.Z$ ; - G75 ; - G01 X100.0 Y200.0 Z300.0 ; -
Last updated: 2025-05-09
Post by sercan on Does G75 work when SMC_NCInterpreter is used?
CODESYS Forge
talk
(Post)
When a G75 command is received in a SoftMotion+CNC project, SMC_NCInterpreter does not generate any error commands, but the command does not continue execution! There is information about SMC_NCDecoder in the documentation of the G75 command. Is this command only supported by SMC_NCDecoder? Can the G75 command be used with SMC_NCInterpreter? Forexample: G75 ; RUNNING G01 X$Settings.X$ Y$Settings.Y$ Z$Settings.Z$ ; - G75 ; - G01 X100.0 Y200.0 Z300.0 ; -
Last updated: 2025-05-09
Post by glutenaron on Safety drive EL6900 and mitsubishi
CODESYS Forge
talk
(Post)
Hi, Im wokring to get my servo mitsubishi mr-j5-g40-rnj1 working with my safety drive. I have as you can se in the picture Ek1100 koppler and EL6900 as safety plc. My questien is how do i connect the safety_drive to the SM3_Drive_ETC_Mitsubishi_MelServo_J5_Axis1 down below? I get the error ((Logical I/Os]: The logical device 'Safety_Drive' is not mapped to any physical device.)) but how do i map this? regard
Last updated: 2025-05-13
Post by gabrielarffa on Modbus TCP/IP having problems with global variables
CODESYS Forge
talk
(Post)
I'm using Modbus TCP/IP to communicate Codesys with Elipse E3 as the master for a college project. I have made a list of global variables to organize the programming in two different POUs. The problem is, when I try to do the mapping of variables, the program informs me of an error due to the identifiers having a "." on their names. Do I have to reorganize my code to make it an unified block or is there a way to declare their names without changing all the code structure?
Last updated: 2025-05-20
Post by gabrielarffa on Modbus TCP/IP having problems with global variables
CODESYS Forge
talk
(Post)
I'm using Modbus TCP/IP to communicate Codesys with Elipse E3 as the master for a college project. I have made a list of global variables to organize the programming in two different POUs. The problem is, when I try to do the mapping of variables, the program informs me of an error due to the identifiers having a "." on their names. Do I have to reorganize my code to make it an unified block or is there a way to declare their names without changing all the code structure?
Last updated: 2025-05-20
Post by lbouchard on CANOpen SIL2 error: UNSAFESTACK_NOT_OPERATIONAL
CODESYS Forge
talk
(Post)
Update: I still have no idea what was causing my issues, but it went away as soon as I identified that another device on the CAN was generating a Sync message at 16#7F. Changing this to be on 16#80 made the problem go away. I have no idea why this solves the problem and would love to hear from anyone who knows why these two things might be related.
Last updated: 2025-05-26
Post by wbj0t on Update project from SP20 to SP21
CODESYS Forge
talk
(Post)
Hello everyone. I have a problem: I installed new version of codesys IDE. When I try open project in this new version, I have many errors about Visu: rectalnge/button/frame/etc does not exist. How update properly project? 20+ pages of visu pages from 100+ frames and all visu elems looks like "Error image". It is not problem of SP20->SP21. Any update has problems from visu side.
Last updated: 2025-06-09
Post by berkdan on SMC_ReadNCFile2 is always busy
CODESYS Forge
talk
(Post)
Hey tk96 Thank you for your help. I have found the reason why fbreader stuck. It was not the program but it was the gcode itself. G21 command blocks the reader. And multiple G codes in a line also blocks the reader. My code was: N010 G21 G17 G90 -> Blocked the reader When i change it to: N010 G90 N020 G17 Then it worked. The only thing i did not get is why the reader did not thwor error. ErrorId was SMC_NO_ERROR. Anyway, it is now working. Thanks again.
Last updated: 2025-06-17
Post by arwie on Use MC_Home without enabling the drive for homing method 35
CODESYS Forge
talk
(Post)
Is it possible to use MC_Home without enabling the drive (MC_Power)? On the drive the homing method 35 (Homing on current position) has to be executed. The drive has to stay disabled due to safety. This is explicitly allowed by the drive. Unfortunately MC_Home reports the error SMC_REGULATOR_OR_START_NOT_SET when executed. Are there other options to start homing, if not with MC_Home?
Last updated: 2025-06-25
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
.