Post by soped on How to generate EtherCat xml from command line
CODESYS Forge
talk
(Post)
Hi Under tools->customize I have added the command "Generate ethercat xml" to my project so that I can export the configuration as an xml file. I can't find a way how to run that command from CLI, is that even possible and if a script is needed I would appreciate an example ?
Last updated: 2024-06-27
Post by soped on How to generate EtherCat xml from command line
CODESYS Forge
talk
(Post)
Hi I'm using codesys 3.5 SP4 Under tools->customize I have added the command "Generate ethercat xml" to my project so that I can export the configuration as an xml file. I can't find a way how to run that command from CLI, is that even possible and if a script is needed I would appreciate an example ?
Last updated: 2024-06-27
Post by rmaas on Responsive Design Example
CODESYS Forge
talk
(Post)
Hi, I just tried the example project with control WIN x64 and for me this is working correct. The only difference is that it is showing 'TabletPortrait' when i hold my smartphone in portrait mode and 'Monitor' when i hold my smartphone in landscape mode. This is because smartphone resolutions have increased i guess... You could check what resoution is detected and change accordingly in IsSmartphone method.
Last updated: 2024-07-04
Post by charleskentyfz on (no subject)
CODESYS Forge
talk
(Post)
I have created an EtherCAT slave code and fixed two slaves (IDs written in the 0xF050 object dictionary). The module IDs are 0x1 and 0x101, respectively. It can be scanned normally in TwinCAT, but when scanning in CODESYS, it reports an error. Why is this happening?text in the second pic means 'device cannot be found in repository'
Last updated: 2024-07-07
Post by stiller on OPC UA RPI 4.8.0.0 Status Code / "out of range"
CODESYS Forge
talk
(Post)
Hello, I have an OPC-UA server with an information model. For many values, there is a defined range (e.g., 0 to 100). If a client enters a value outside this range (e.g., 120), the StatusCode should change to Bad. How can I accomplish this? Any help is appreciated! Thank you in advance. Best regards, Christian Stiller
Last updated: 2024-07-10
Post by ahuckphin on Issues with Modbus Slave with Raspberry Pi
CODESYS Forge
talk
(Post)
codesyscontrol_user.cfg [SysCom] Linux.Devicefile.1 = /dev/ttyUSB0 portnum:=COM.SysCom.SYS_COMPORT1; **parameters are used in the python-script ** method: "rtu" port: "COM8" baudrate: 9600 stopbits: 1 bytesize: 8 parity: 'N' timeout: 1 register address for humidity: 0x000 register address for temperature: 0x001 unit ID: 1 **parameteized in the modbus-master-comport ** see attached files
Last updated: 2024-07-11
Post by maxkemmeren on PFC200 (750-8214) high linux load average, but seems random. Possibly EtherCAT related.
CODESYS Forge
talk
(Post)
Have you received any feedback or found any solutions to the load problem. We are running into similar issues, even without codesys running the load avarage is above 1 meaning that it is to busy already without plc code running. Hope you might have some more insight.
Last updated: 2024-07-11
Post by elerensx on Uninstall Codesys2.3 got RUNDLL There was a Problem Starting error
CODESYS Forge
talk
(Post)
Try to repair Codesys2.3 and need to uninstall and reinstall it. Got this RUNDLL message when uninstall Codesys 2.3: There was a problem starting, the specificed module could not be found. Please refer to attached file. Followed suggestions from Microsoft website and didn't work out. I am using Codesys2.3.9.16. Any help is appreciated.
Last updated: 2024-07-15
Post by youness on No source code available (cip object)
CODESYS Forge
talk
(Post)
Hi yotaro, hope your problem was resolved. I had the same, but with an other library title. This exception is not detected during compilation, but rather at a given position in the program (when switching to a given visualization). Although the exception is generated at this point, it does not involve the visualization in question. This error is due to one of 3 reasons: 1) A division by zero somewhere: The program is able to detect divisions by zero at compile time. But in the case of a variable, which takes a valid value at init and changes to 0 at a later stage. 2) An invalid pointer: (either because it has a value of 0, or because it points outside the memory reserved for the program) is being dereferenced. Locate any pointers or interfaces you have in the code and check them - you should also be wary of mixing inline modifications and pointers. 3) Array overflow: Generally when a processing operation is executed outside the array's definition range. Example: a write loop with n iterations is executed on an array of dimmension n-1. On the other hand, the error message may not appear. In the latter case, the error may have fatal consequences, as the overflow has induced writing to potentially forbidden memory areas. This problem can be explained by the fact that it's not always the adjacent memory areas of PLC_PRG that are overwritten, but the memory areas that are randomly allocated to the array during compilation. In this case, however, there is no entry in the log, so you need to integrate the "Implicit Check function", which checks the line of code generating the error. To integrate this functions, click on Application --> POU for implicit controls Regards,
Last updated: 2024-07-16
Post by tk096 on Some 'pathetic' errors in SoftMotion program
CODESYS Forge
talk
(Post)
Hi, I suppose that you are referring to the error code "SMC_FB_WASNT_CALLED_DURING_MOTION"? Starting of Softmotion version 4.15.0.0 the instance path of the function block that has not been called is logged into the device log. This might help you to identify why it has not been called.
Last updated: 2024-07-18
Post by nltheves on Raspberry PI4 Serial Port
CODESYS Forge
talk
(Post)
Hi Ricardo. I was having the same problem with Codesys and a Raspberry Pi 2W while using the GPIO uart. Your post helped me a lot. Thanks! But could not understand why MODBUS parity bit makes Codesys MODBUS COM driver stopping to work after first request transmission. Did you see this @eschwellinger ? Regards, Nelson
Last updated: 2024-07-18
Post by mmpl on Array to String
CODESYS Forge
talk
(Post)
I would like to create one large JSON string from an array of objects, where each object contains a value. My current approach involves using a for loop and string concatenation, but with 20,000 elements in the array, this method takes almost 7 seconds and negatively affects the PLC scan time. Is there a more efficient way to accomplish this?
Last updated: 2024-07-18
Post by mmpl on Array to String
CODESYS Forge
talk
(Post)
I would like to create one large JSON string from an array of objects, where each object contains a value. My current approach involves using a for loop and string concatenation, but with 20,000 elements in the array, this method takes almost 7 seconds and negatively affects the PLC scan time. Is there a more efficient way to accomplish this?
Last updated: 2024-07-18
Post by malie on Bibliothek konnte nicht aufgelöst werden
CODESYS Forge
talk
(Post)
Das Problem hab ich gefunden, CoDeSys konnte nicht mehr auf die Netzlaufwerke mit den Bibliotheken zugreifen. Jeder Benutzer ausserhalb von CoDeSys konnte darauf zugreifen. Behebung: 1. CoDeSys schließen. 2. Windows Explorer Netzlaufwerk trennen. 3. Windows Explorer Netzlaufwerk verbinden. 4. CoDeSys öffnen. 5. Bibliotheken werden wieder aufgelöst. Warum da keine anständige Fehlermeldung erscheint?
Last updated: 2024-07-21
Post by timvh on Array to String
CODESYS Forge
talk
(Post)
The new (UTF8) string library is faster and can handle large strings. https://content.helpme-codesys.com/en/CODESYS%20String%20Libraries/_strlib_start_page.html PS, in CODESYS, the maximum string length is not 255 characters. The String functions of the standard library are limited to strings of 255 characters. But you can use other (memory) functions to handle strings larger than 255 characters.
Last updated: 2024-07-22
Post by timvh on Array to String
CODESYS Forge
talk
(Post)
The string_Util_Intern is not the library I referred to. With a CONCAT function (also with the string util library) a search is done for the NULL character. If you concatenate 20000 characters to one string, then the longer the string, the longer it takes to find this NULL character.
Last updated: 2024-07-24
Post by timvh on RAMP_REAL FB is retaining my output value when i try to re use the FB
CODESYS Forge
talk
(Post)
I think, that if you set the timebase to T#0s, that it will be reset. But you can also make your own ramp down with a Timer (make sure the PT time is not T#0s):
Last updated: 2024-07-29
Post by jmfernandes on OpenDir always in error
CODESYS Forge
talk
(Post)
Hello just to give more feedback the error I get is "ERROR_UNKNOWN :represents raw value of 5110" in File.DirOpen. The xDone never gets true, and I never get the listing of files (csv files in this case). In the hDir i get the value of 0 for a DWord!?
Last updated: 2024-07-31
Post by haiderm on MultiTouch : Two fingers pinch to Z00M in/out and rotation gesture.
CODESYS Forge
talk
(Post)
Hello, I am currently trying to implement the Pan gesture and if possible, also the spread-pinch gesture in my project. The Pan gesture seems to work. Was the spread pinch gesture in the meantime fully released, because i haven't been able to get it called? Best Regards, Michael
Last updated: 2024-08-02
Post by flappyman on licenses question
CODESYS Forge
talk
(Post)
I hope this tread will be able to help me. I got your new licenses and it was working perfectly fine. Unfortunately, my PLC got severely damaged and it can not run anymore. Is it possible to somehow release the license so I could use it again. I have all information for the device and can provide it.
Last updated: 2024-08-05
Post by dkugler on Converting hex bytes to float
CODESYS Forge
talk
(Post)
have a look at UNIONs. With a union you are able to write single bytes to the same adress area which belongs to a float variable at the same time. I like to do a lot of convertions belonging to interfaces and fieldbus in this way, f.eg. word / byte swapping etc.
Last updated: 2024-08-06
Post by kkao on CODESYS V3.5 SP11 error "Cannot find INavigatorControl5"
CODESYS Forge
talk
(Post)
Hi! I tried to start Codesys V3.5 SP11 program and this error message popped up (see attachment). Program worked fine last week. I tried to uninstall and then reinstall the program but it did not help. If I choose Ignore or Retry options the program works expect the UI is missing. Any ideas how to fix this?
Last updated: 2024-08-08
Post by tk096 on gear over gear (2 masters,1 slave) - how to do it?
CODESYS Forge
talk
(Post)
Hi, you could calculate the position/dynamics of the slave axis yourself and use one of the function blocks SMC_FollowPosition/SMC_FollowSetValues to move the slave axis. https://content.helpme-codesys.com/en/libs/SM3_Basic/Current/SM3_Basic/POUs/Movement/Direct/SMC_FollowPosition.html https://content.helpme-codesys.com/en/libs/SM3_Basic/Current/SM3_Basic/POUs/Movement/Direct/SMC_FollowSetValues.html
Last updated: 2024-08-19
Post by maxsus on Visu Frame-configuration___text will not work
CODESYS Forge
talk
(Post)
Hello I have a problem with the Frame-configuration. In the picture below you can see that I set the Editor Type to variable. If it would be text it would work, but it wasnt variable anymore. Thanks for your time. Sorry, my codesys is in German.
Last updated: 2024-08-20
Post by kevinrn on Signing Packages without exposing the password of the certificate
CODESYS Forge
talk
(Post)
Indeed, I'm also seeking a solution for this issue. The main challenge we face is the requirement to use EV (Extended Validation) Certificates. Due to security considerations, it's not possible—nor is it ever recommended in such cases—to export the certificate with its private key.
Last updated: 2024-08-20
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
.