Post by t-probst on Strong Private Key Protection for Encryption Certificates
CODESYS Forge
talk
(Post)
Hello, We are trying to implement an automated method of adding of a certificate and private key to the Windows certificate store for encrypting CODESYS projects. We want to do this so that users do not have to deal with details of certificates at all and to prevent user error. We are keen on enforcing strong private key protection since it ensures that a password is required for the certificate to be used to decrypt a CODESYS project. When we add a certificate to the certificate store and enable strong key protection using the Microsoft Management Console Certificates snap-in, it works as expected. However, through this method the user may mistakenly not enable strong private key protection. For the certificates we create programmatically (using Microsoft’s Cryptography Next Generation API in .Net 7) bag attributes are added to the certificate and key by the API. These bag attributes are as follows: Bag Attributes localKeyID: 01 00 00 00 subject=C = xx, ST = xxx, O = xxx, OU = xxx, CN = xxx issuer=C = xx, ST = xxx, L = xxx, O = xxx, OU = xxx, CN = xxx -----BEGIN CERTIFICATE----- [encoded certificate] -----END CERTIFICATE----- After using this certificate with bag attributes to encrypt a CODESYS project, it can’t be decrypted, showing this error: "The specified project could not be loaded. Possible reasons might be: - The project file is corrupted or invalid - The project has been saved with a newer version of the programming system. If this is the case, you can open the project in the corresponding version. Choose "Save as..." with the appropriate storage version, and retry again. - You may not have the necessary permissions to lad the project" We know that the bag attributes are causing the issue because if we manually edit the certificate file to remove them before using the certificate to encrypt a project, the project can be decrypted as expected. However, we are unable to automatically enforce strong key protection using this method. Here is a link to a StackOverFlow question that we have posted recently for this issue: https://stackoverflow.com/questions/76922355/enforcing-strong-private-key-protection-for-x509certificate2-objects-in-net-mod Any help is greatly appreciated.
Last updated: 2023-08-22
Post by arnog on Two drives on one axis, Gantry Robot
CODESYS Forge
talk
(Post)
Hi TK_Jenssen did you found a solution I am setting up the samelike gantry only with two z-axes which are mounted on fix position with an X axes between the two z-axes. The movement and position of both z-axes must be very well aligned and calibrated. Maybe also to be adjusted by programming. Can you sent an example of your solution?
Last updated: 2023-08-25
Post by e60newbie on NETVAR_UDP
CODESYS Forge
talk
(Post)
Hallo Forums Gemeinde, hat jemand von euch eine Idde ob und wie es möglich sein könnte die Einstellungen was für die Netzwerk variablen Liste nötig sind, also Broadcast IP, Port usw., über die Application einzustellen? Ich müsste je nach Projekt immer die IP anpassen, da auf den Anlagen die Software Identisch bleibt, wäre es für mich viel einfache diese Einstellungen über den Code einzustellen. Wenn man so im Forum sucht gibt es nicht viel was NetVar angeht... Grüße Andy
Last updated: 2023-08-29
Post by rossanoparis on How to configure CODESYSControl_User.cfg in order to use a specific network card for OPCUA Server
CODESYS Forge
talk
(Post)
Thank you @eschwellinger Even tough I think the content of the link you provided is a bit messy. To bind OPCUA server to a specific adapter, I should have had insert the following section. [CmpOPCUA] NetworkAdapter=eth0 But it doesn't work, I had to insert the following section instead to get the right configuration. [CmpOPCUAServer] NetworkAdapter=eth0 Regards Rossano
Last updated: 2023-08-29
Post by ellcap on Symbol Configuration, I'm doing it wrong
CODESYS Forge
talk
(Post)
if you're here because you are making the same mistake as me, I just resolved it. I mistakenly thought I didn't need to write the word attribute in the column labeled attribute. changed this 'symbol' := 'read' to this attribute 'symbol' := 'read' The last two in this clip are still wrong: I recongize this is probably a big "duh". That's ok. I like to fail out loud in hopes it helps someone else from looking silly.
Last updated: 2023-08-31
Post by dasch on Webvisu auf Iphones
CODESYS Forge
talk
(Post)
Moin, ich arbeite an einer Visualisierung einer Fernbedienung, die auf mobilen Geräten laufen soll. Bei Iphones ist uns die Eigenheit aufgefallen, dass bei langem druck auf einen Button, die gesamte Seite markiert wird und dann kopiert werden kann. Manchmal popt auch die kleine Lupe auf, die einem helfen soll den Courser genauer zu platzieren. Weiß jemand ob man dieses Verhalten vielleicht durch zusätzliche Einträge in der webvisu.htm unterdrücken kann? Gruß, Daniel
Last updated: 2023-09-04
Post by dasch on eCockpit - unable to start simulation
CODESYS Forge
talk
(Post)
This is a known bug in e!Cockpit. See Release notes of V 1.11: 1 e!Cockpit Release Version 1.11 (2022-07) ATTENTION: If a library that uses asynchronous tasks (e.g. WagoAppConfigTool, WagoAppCloud or function modules such as Dali-Master) is dragged into the project, the simulation cannot be started. It is already sufficient to add the library to the project (an FB does not even have to be instantiated). I guess you are using one of these libraries/modules in your project. We e.G. often use PWM modules, these are also affected.
Last updated: 2023-09-05
Post by e60newbie on EVL/EVC auf IFM CR711S
CODESYS Forge
talk
(Post)
Hallo, wir sind etwas Ratlos mit der Handhabung der EVL/EVCs in Verbindung mit IFM CR7xxs Steuerungen. Uns ist aufgefallen, bzw. schon mehrfach passiert, dass ein Programmierer ein Projekt fertig stellt, dieses auf Freigegeben stellt und abschließt. Wenn ein zweiter Programmierer das Projekt öffnet und sich in die Steuerung einloggen möchte ist dies nicht möglich ohne Download. Es wird dann immer angezeigt, dass sich die EVC geändert haben obwohl im Programm nichts verändert wurde. Gibt es eine Einstellung was wir eventuell falsch habe? Wir kennen das so nicht von anderen Sicherheitssteuerungen. Grüße
Last updated: 2023-09-06
Post by macros8 on Alarm Management - latched variable represented as Text list
CODESYS Forge
talk
(Post)
Hi all, in Alarm management you can latch some variable to show value within the alarm msg. It´s very useful sometime. But I´m wondering whether there is any possibility to represent that value as Text list. It´s quite common in other HMI tools and this is very useful in case of using some ErrorID for detail specification of error. Unfortunately I could not find any way how to do it but I believe that exists :) Thanks a lot. M.
Last updated: 2023-09-06
Post by martinlithlith on Device User Logon and No device is responding.. Pi4b codesys 3.5 SP19 2 + (64-bit)
CODESYS Forge
talk
(Post)
Hi! Im slowly starting to loose it and i need som help! After a few night of reading up and testing i´m still stuck as a rock and you guys and girls are my last resort for this project. Basic facts; Win 11 Codesys 3.5 SP19 2 + (64-bit) Raspberry pi 4 model b 2 gb Raspian release 11 aarch64 What keeps me up late at night; Username and Password when trying to connect to device and device only beeing connectable for a few seconds. Some of the things I have tried; Username and passord; Credientials from the raspberry Administrator Administrator admin admin Admin Admin administrator administrator Usernames and passwords that I sometimes use (this was a longshot i know, but i was running out of ideas and energy). :) Epand filesystem, activating i2c, spi, 1-wire I can start the gateway and start the runtime. I cant install the edgearm64, arm64 runtime package eventhough I guess i should, i get code [ERROR] Error output: dpkg: error processing archive /tmp/codesysedge_edgearm64_4.8.0.0_arm64.deb (--install): [ERROR] Error output: package architecture (arm64) does not match system (armhf) [ERROR] Error output: Errors were encountered while processing: [ERROR] Error output: /tmp/codesysedge_edgearm64_4.8.0.0_arm64.deb code as a respons. I have tried to Reset Origin Device - no change. I have tried to remove the /etc/CODESYSControl_User.cfg [CmpUserMgr] but i could not find it and i was not sure if i should add it instead but i did not want to mess somthing up. I have tried to create a second gateway with the specific ip if the pi, that did not help. Could it be that i´m currently connected to the pi through WIFI? I can ping the pi and I can connect and control it through VNC. When i scan to select gateway target (scan edge gateway) i find 17-21 devices but can find the pi throug the mac adress. I started of trying to use the "CODESYS Control for Raspberry Pi SL" (I have a license sience earlier) as i read somewhere that this could be used on a Pi4 as well but now i´m trying with the MC SL, no changes, same problem. Right now - gateway version 4.8.0.0 (edgearmHF, armhf), Runtime Package 4.5.0.0 (raspberry, armhf). Any sugestions are very welcome! As mentioned above, theese are some of the things that i have tried/done - but i have been going at this for a while. Best, Martin
Last updated: 2023-09-10
Post by janderson on Ethercat scan for devices not picking up EL7041 as a softmotion axis
CODESYS Forge
talk
(Post)
it appears that the different revisions have different PDOs. I am currently trying to use the rev25. I have tried to use the rev24 (the device repository entry not from 'scan for devices') and i keep getting 'invalid output mapping' or 'invalid input mapping' in the ethercat log. I cant even get the bus to run from the device description that comes from 'scan for devices'...
Last updated: 2023-09-18
Post by janderson on Ethercat scan for devices not picking up EL7041 as a softmotion axis
CODESYS Forge
talk
(Post)
it appears that the different revisions have different PDOs. I am currently trying to use the rev25. I have tried to use the rev24 (the device repository entry not from 'scan for devices') and i keep getting 'invalid output mapping' or 'invalid input mapping' in the ethercat log. I cant even get the bus to run from the device description that comes from 'scan for devices'...
Last updated: 2023-09-18
Post by manuknecht on Detect "Cancel" Press in FileOpenSave Dialog
CODESYS Forge
talk
(Post)
When using the FileOpenSave dialog and using the Visu_FbFileListProvider FB as an In/Output I could not manage to detect the difference of pressing the "Load" button on the dialog vs. pressing the "Cancel" button. In both cases, the selected file is updated if the dialog is closed when checking using the Visu_FbFileListProvider.GetSelectedFileName() command. How can I prevent reading or writing of a file when the "Cancel" button was pressed?
Last updated: 2023-09-19
Post by timvh on When Keyboard Key is in Hold, then Webvisu is extreme slow and latent
CODESYS Forge
talk
(Post)
I'm not really sure what you are trying to do, but maybe you are referring to using the CmpCharDevice library? When you "open" the connection to a device, you can pass flags. What helped me is to set the non-blocking flag. I'm not sure if this is what you are referring to, but maybe it helps: dFlags: DINT := CmpCharDevice.ACCESS_MODE.O_RDONLY + DINT#4000; // see details for flags: http://linux.die.net/man/2/open, + DINT#4000 is for non-blocking hDevice := CmpCharDevice.CDOpen(szFilename, dFlags, Result);
Last updated: 2023-09-20
Post by nico01 on Integer with comma in visualization
CODESYS Forge
talk
(Post)
Hello everyone, I created a visualization with a lot of REAL, with one or two digits after the decimal point. This causes me problems in terms of rounding and memory... is it possible to display an integer with a comma, like with PROFACE or SIEMENS? It's just an "abuse" of display, the comma is just on the visualization. This limits the memory (16 versus 64 bytes) and rounding is easier to manage... See print screen on proface software THANKS
Last updated: 2023-09-20
Post by aott33 on Webvisu NO load
CODESYS Forge
talk
(Post)
Thanks, I will check the PLC Log when the PLC is connected again. I will update my findings here. Since I don't have access to the Linux Panel PC at the moment, I tested inside my development VM with the same Linux OS. I have no issues or delays connecting to the WebVisu using my Linux VM. Two main differences: 1. My host Computer has a faster processor compared to the panel PC. 2. There are no devices connected in my dev environment. I will continue testing when I have connection to the panel PC.
Last updated: 2023-09-23
Post by docker on Canopen connection. Unknown node id.
CODESYS Forge
talk
(Post)
hi, i am currently trying to adapt an i/o device for a project. the node id is unknown and there is no eds file available. no data is being emitted from the device as a giveaway, the baudrate is known but useless without the node id. is there an sdo request available to determine the id? i cannot get the device to leave pre op status even with a global nmt request. please help. no hair left.
Last updated: 2023-09-25
Post by timvh on Specify Input Configuration "OnDialogClosed" Action to only react to certain Dialogs
CODESYS Forge
talk
(Post)
What maybe helps is the Visu Dialog ST demo project: https://store.codesys.com/en/visu-dialog-st.html This has an application IECOpenDialog where dialogs are opened using the VU.FbOpenDialogExtended function blocks. The fbOpenConfigurationDialog call has a reference (interface) to the "close listener" FB of which it's method is automatically called when the dialog is closed. This way you can create specific function blocks for each dialog when it is closed and do what you want with the data that might have been changed.
Last updated: 2023-09-28
Post by tehthoams on Library Search not working
CODESYS Forge
talk
(Post)
Hello All! Having a strange issue. When adding a library, I'm unable to search. Each time a window pops up 'creating the search index' and then has 0 results. I have the same behavior when using the library repository and pressing the 'Find' button. I wonder if there is a way to reset or fix this issue? It is making it very difficult to search and find proper libraries to add to my project. Much appreciated.
Last updated: 2023-10-17
Post by davidbo on RPI How to login for a copy of the SD image
CODESYS Forge
talk
(Post)
I had one RPI device where I could login. I copied the SD-flash over to another SC-flash. This new SD-flash was inserted in the new device. I can boot the new device but I cannot login why? How can I install an application on this new device? Control 4.4.0.0 cat os-release PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)" NAME="Raspbian GNU/Linux" VERSION_ID="11" VERSION="11 (bullseye)" VERSION_CODENAME=bullseye ID=raspbian ID_LIKE=debian HOME_URL="http://www.raspbian.org/" SUPPORT_URL="http://www.raspbian.org/RaspbianForums" BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
Last updated: 2023-10-18
Post by hgpiepel on CSV Datei in einem freigegebenen Netzlaufwerk speichern
CODESYS Forge
talk
(Post)
Hallo zusammen, ich erstelle eine CSV-Datei, die im Moment mit file.Write lokal in einem Verzeichnis (/home/pi/Logdaten/logData.csv) gespeichert wird. Jetzt möchte ich die gesammelten Daten aber gerne im Netzwerk speichern. Der Versuch, die Datei unter //Server/Public/logData.csv zu speichern, hat sich so geäußert, dass ein Ordner (Server) im Stammverzeichnis auf dem Pi mit Unterordner erstellt wurde und dort die Datei abgelegt wurde. Gibt es hier eine einfache Möglichkeit, die Datei vom Pi herunter zu bekommen? Leider habe ich im Netz nicht wirklich was hierzu gefunden. Grüße Hermann
Last updated: 2023-10-30
Post by nathant on Can't open online view of FB instance from code editor, only from Device/POU windows
CODESYS Forge
talk
(Post)
Hello, The title pretty much says it all. When trying to open a FB from the CFC/Ladder/SFC editors while online, the FB does not open in an online view of that specific instance. Instead, it opens an offline view with '???' shown for the value of any variable. This makes debugging extremely cumbersome, as I have to find each FB in the POU window and select the specific instance I am trying to view. Anyone know the cause/solution for this? Thanks.
Last updated: 2023-11-08
Post by timvh on SafetyApp - "Invalid ERR Ack input"
CODESYS Forge
talk
(Post)
I had a similar error "Invalid ERR Ack input". What you need to do is link an variable from the "non-safe" PLC to the Group IOs of the POU in the Safety app. * Add a POU to the SafetyApp (probably already done, otherwise you don't get this error) * Right click on this POU - select properties * Go to the Group IOs tab * Link a variable to the Err.Ackn. input I don't know about the Size of zero, I didn't get this error. Were you able to fix this?
Last updated: 2023-11-16
Post by drno on AlarmMgr Database Error in method WriteToStorage: Error code = 30531, Action = 1030
CODESYS Forge
talk
(Post)
Hallo zusammen, auf einer Industriesteuerung (Target-Version 3.5.5.0) läuft unter anderem eine Alarmverwaltung mit Alarmspeicherung. Offensichtlich kann kein Schreibzugriff auf das .sqlite File durchgeführt werden, daher ist die Alarmhistorie nicht mehr verfügbar. Versuche mit unterschiedlichen Unterverzeichnissen führten nicht zum Erfolg. Die Datei "application.alarmstorage.sqlite" wird zwar angelegt, aber es erfolgen keine Einträge. Hat jemand eine Idee dazu? Die Steuerung ist ca. 8 Jahre in Betrieb, die Alarmhistorie hat früher mal funktioniert. Danke, LG
Last updated: 2023-11-21
Post by joanm on Tab control element, hide/show tabs programatically?
CODESYS Forge
talk
(Post)
Hi all, Is it possible to hide or show tabs from the PLC code? I have created a few tabs in my visualizations to configure the program behavior, I'd like to be able to hide some of them if the related option in the main tab has been disabled. Is that possible? if so, how should I do it? Thank you all in advance.
Last updated: 2023-11-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
.