Post by jvfred on CodesysHMI.exe: Start Error
CODESYS Forge
talk
(Post)
I have used Codesys HMI SL on several projects. Today I turned my PC on to start building another project and received the following error message when I tried to start my device: "CodesysHMI.exe: Start Error One of the following licenses is required: CodeMeter 101597:13 Failure reason: CmContainer Entry not found, Error 200 CodeMeterAct 5000304:13 Failure reasons: CmContainer Entry not found, Error 200" I have tried reloading HMI SL and even updated to the current version with no success. I am using HMI SL version V3.5.20.10. Any help would be greatly appreciated.
Last updated: 2024-11-01
Post by pernockham on Persistence Manager: Config File not found?
CODESYS Forge
talk
(Post)
Thats what I did. The files existed originally, but when I had problems logging in as described I deleted those files (if they in some way had been corrupted causing my problems to login?). After that I have not managed to get the system to re-created these def-files. I manually created the folder structure (from CODESYS file browser) but this has not helped.
Last updated: 2024-11-02
Post by jddaigle on TargetVisu controls are incorrectly positioned
CODESYS Forge
talk
(Post)
Hello, I'm trying to run TargetVisu on my Linux IPC, and while it does work, the controls are misaligned compared to my WebVisu. Both visualizations are full-screen on a Debian 12 VM with a resolution of 1280x768. The WebVisu is running in Firefox. Are there any configuration I should adjust to ensure the controls align properly between the two? Any guidance or troubleshooting tips would be greatly appreciated! Thank you.
Last updated: 2024-11-03
Post by trusty-squire on Display Units/Scale on Path3D visualization
CODESYS Forge
talk
(Post)
Hi, Is it possible to display the units along the X,Y axis of the Path3D element? It correctly shows the CNC path to be followed, but there's no indication of scale or size of what's being displayed. I looked at the documentation and my first inclination is that this is not possible, and the option option would be to somehow recreate the Path3D functionality into the XY Chart visu element - which is not ideal. Any suggestions or pointers would be appreciated!
Last updated: 2024-11-08
Post by jinlee on Dynamic I/Os Mapping
CODESYS Forge
talk
(Post)
Hi guys, Recently, I am working at the Dynamic I/Os mapping feature in Ecockpit or Codesys v3.5. I have been trying the libraries. However, it looks like it will not work as I wanted. I want to build the PLC which can detect all the I/Os itself and from there, I can do something on these channels. For example, the current setup is one digital input card, one digital output card and one analogue input card. Then, I want to add one more card into the setup e.g. one more digital input. Then, wago screen can detect this and we can assign them to tasks for example to control digital output. May I know is it possible ? Kind regards
Last updated: 2023-08-18
Post by sunfloweeerrry on Edgelogix-rpi-1000-cm4102032 SPI port connection to PiFace I/O Driver in CodeSys.
CODESYS Forge
talk
(Post)
Please anyone help there is not a lot reference about this.
Last updated: 2023-08-21
Post by eschwellinger on Raspberry Pi Control SL MC - Restoring License not working anymore!
CODESYS Forge
talk
(Post)
you need to use 'my question ' in the CODESYS store
Last updated: 2023-08-24
Post by smercante on Unable to Import PLC Open XML from Easy Remote IO
CODESYS Forge
talk
(Post)
Hello dear. I have the same problem. Could you solve it? Do you use GLV variables?
Last updated: 2023-08-24
Post by jegerjon on Same program to more than one PLC
CODESYS Forge
talk
(Post)
I guess you could archive the project, open the archive and go online. Is that suffiecient for your use case?
Last updated: 2023-08-25
Post by gregor on PFC 200 - codesys V3.5
CODESYS Forge
talk
(Post)
As far as I know, only if someone downloaded sourcecode to the PLC.
Last updated: 2023-08-25
Post by arnaud on eCockpit - unable to start simulation
CODESYS Forge
talk
(Post)
Hi there! I'm using eCockpit WAGO software to develop HMI's for multiple projects. As I recently starting this, my knowledge on the software is somewhat limited (so maybe my question is a simple one). For most of my projects I can simulate the application and start it to test the code and HMI. However for two projects, I can initiate the "simulation activation" but I cannot start it. Nothing happens when I press start and the visualization shows "The online visualization is waiting for connection. please start the application". - I don't see any errors in the messages - Initially the project are made by a colleague, which moved on. I guess I'm forgetting something, like missing a setting. I appreciate any help I can get. If you need more information to help me out, let me know. Thanks!
Last updated: 2023-08-25
Post by eschwellinger on Problems connecting to Codesys 4.9.0.0 runtime on my Wago PFC200
CODESYS Forge
talk
(Post)
I've send out a workaround for this.. Best Regards Edwin
Last updated: 2023-08-26
Post by totorovic on CSVReaderInit returns error : INVALID_HANDLE
CODESYS Forge
talk
(Post)
Hello, Can we please have some details about the error : INVALID_HANDLE? So we can try to avoid it.
Last updated: 2023-08-28
Post by eschwellinger on v3.5 SP19 - Modbus TCP Devices - Channel Limit?
CODESYS Forge
talk
(Post)
Guess you could just add two modbus slaves with the same ip, to enlarge the 10 channel limit.
Last updated: 2023-08-28
Post by reinier-geers on Trun off webvisu
CODESYS Forge
talk
(Post)
How do i see if Webvisu is active and how to shot down if i dont want webvisu?
Last updated: 2023-08-29
Post by eschwellinger on new feature: list/view plclogs from the plcs
CODESYS Forge
talk
(Post)
Since 1.31.0.0 version there is this really helpful feature to browse the plclogs remote via CODESYS Automation server:
Last updated: 2023-08-30
Post by hwillems on Ranges, Lambdas, on Fixed arrays of structs
CODESYS Forge
talk
(Post)
I do datastructures and algorithms in Codesys. For example a Struct of Person with thing's like IdNumber, Name, Age etc. as example. Now i do all kind of calculations, filters. So i have this pretty big Fixed Array with Structs. On this struct i want to do simple stuff you can do easily in C++/Python/Rust etc. For example i want to do this: AvererageAge := Average(Peoples.Age); Then it will return the average of all members ages. Or Sort struct on age etc. Or sort on alphabetical Name. Or use Lambda functions to filter/mutate out things like, filter out everybody above 18 years old. Or remove people who it's name start with "A". Currently i have to write my own custom function for example sorting on Age. And make a super specific function based on that particulare datastructure. Here an Example: (*Before calling this FIlter method, set the mNodeFilterSwitch to the desired filter.*) CASE mNodeFilterSelect OF (********************************[ Status Filters ]***********************************) NodeID: FOR x := ACS_OUT_BEGIN TO ACS_OUT_END BY 1 DO FOR y := ACS_IN_BEGIN TO ACS_IN_END BY 1 DO IF marrNode[y].Status.oiNodeID > marrNode[y + 1].Status.oiNodeID THEN mNodeTemp := marrNode[y + 1]; marrNode[y + 1] := marrNode[y]; marrNode[y] := mNodeTemp; END_IF; END_FOR; END_FOR; Started: FOR x := DES_OUT_BEGIN TO DES_OUT_END BY -1 DO FOR y := DES_IN_BEGIN TO DES_IN_END BY -1 DO IF marrNode[y].Status.oxStarted > marrNode[y - 1].Status.oxStarted THEN mNodeTemp := marrNode[y - 1]; marrNode[y - 1] := marrNode[y]; marrNode[y] := mNodeTemp; END_IF; END_FOR; END_FOR; Starting: FOR x := DES_OUT_BEGIN TO DES_OUT_END BY -1 DO FOR y := DES_IN_BEGIN TO DES_IN_END BY -1 DO IF marrNode[y].Status.oxStarting > marrNode[y - 1].Status.oxStarting THEN mNodeTemp := marrNode[y - 1]; marrNode[y - 1] := marrNode[y]; marrNode[y] := mNodeTemp; END_IF; END_FOR; END_FOR; END_CASE; I have like 30+ of these in the enum. Not really DRY code right? These are custom made bubble sort filters in a function. You pass in the Datastructure, and say what function you want. (This is an enum collection of sorting functions) And then the Array with Nodes of Structs gets ordered. Why can't we have Iterators and Lambda's and build in standard functions like regular languages? Also i use bubble sort because it's the easiest to implement because i can't get this to code DRY. Problem with ST (Even the new one with classes) that it's very limited for programming datastructures and algorithms. Yes you still not want dynamic memory and you need to choose the correct algorithm so you know the most extreme edge cases regarding the time it takes to execute the algorithms.(Real-time execution) How are other people dealing with this? Here for example saw some software using an adjusted ST language and having FOR EACH possibility: https://www.fernhillsoftware.com/help/iec-61131/structured-text/st-for-each.html You can then build your own custom Iterator functions. I wish the IEC 61131-3 standard would be more expressive and having more standard modern features, but still keep close to the fact of no dynamics memory and real-time systems.
Last updated: 2023-08-31
Post by jari-koivuluoma on JSON_Utilities_SL JSONFileWriter error NULL_POINTER
CODESYS Forge
talk
(Post)
FB jsonFileWriter gives a NULL_POINTER error, why? JSONByteArrayWriter works fine so the JSONData FB should be fine. The device is CODESYS Control Win V3 x64 in simulation mode. Codesys version is V3.5 SP16 Patch 5 JSON_Utilities_SL version is 1.3.0.0 Src: ST_TestStruct1a; TXT: WSTRING(10000); MakeJSON : BOOL := TRUE; SrcJSONData: JSON.JSONData; jsonFileWriter : JSON.JSONFileWriter; IF MakeJSON THEN MakeJSON := FALSE; // Struct data to JSONData FB F_TestStructToJSON(ADR(Src),ADR(SrcJSONData)); // Writing to file jsonFileWriter( xExecute := TRUE, sFileName := 'c:\JSONTEST\JSON.txt', eEncoding := JSON.Encoding.UTF_16, xAsyncMode := TRUE, jsonData := SrcJSONData ); // Waiting to finish WHILE jsonFileWriter.xBusy DO ; END_WHILE // To text jsonArrayWriter( xExecute := TRUE, pwData := ADR(TXT), udiSize := SIZEOF(TXT), jsonData := SrcJSONData, xAsyncMode := FALSE, ); END_IF
Last updated: 2023-09-08
Post by eschwellinger on Project compiling error in Simulation mode
CODESYS Forge
talk
(Post)
I fear you need to update if you need a solution for this.
Last updated: 2023-09-08
Post by necatibilgin on How to access files correctly in Linux
CODESYS Forge
talk
(Post)
This may help you. https://forge.codesys.com/forge/talk/Engineering/thread/3da9ded84e/?limit=250#62b3
Last updated: 2023-09-12
Post by transmin01 on EL6751 Canopen_Manager issue
CODESYS Forge
talk
(Post)
Fixed, in the end it just required the target to be rebooted. DOH! Regards Trevor
Last updated: 2023-09-12
Post by timvh on Get the numer of day
CODESYS Forge
talk
(Post)
For a demo application related to date/time, see: https://forge.codesys.com/prj/codesys-example/date-and-time/home/Home/
Last updated: 2023-09-14
Post by eschwellinger on EtherCat Master cannot open network adaptor on Win10x64 target
CODESYS Forge
talk
(Post)
you need to have either Winpcap (versions < CODESYS 3.5.19.0) or Npcap installed
Last updated: 2023-09-20
Post by aott33 on Webvisu NO load
CODESYS Forge
talk
(Post)
After loading, it seems to be quite responsive. It's just the initial loading that is taking a long time.
Last updated: 2023-09-21
Post by hki75 on FILE_OPERATION_DENIED
CODESYS Forge
talk
(Post)
mmm.. I moved my file to /var/opt/codesys/PlcLogic directory but I still getting FILE_OPERATION_DENIED.. Did I miss something? file rights are 0755
Last updated: 2023-09-27
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
.