Post by timvh on Clarifications regarding the appropriate runtime system to use
CODESYS Forge
talk
(Post)
If you are not using any specific Raspberry Pi functionality, then probably the "universal" Control Linux ARM SL is the approriate runtime to run on the Pi. For the license it doesn't matter which runtime version you choose, because this is not hardware based anymore, but application based. Best is to use the latest version of CODESYS. To determine which license you need, double click on your device, go to the tab License metrics.... Generate the code for your application and see which license you need based on the metrics of your application.
Last updated: 2024-09-24
Post by timvh on Visuutils FbOpenDialog(Extended) not open Dialog from POUs
CODESYS Forge
talk
(Post)
I had a similar situation recently where this didn't work, but read to the end to see the solution. The reason is that CODESYS only downloads visualisations (dialogs) if they are part of the project or linked to the project. In your case the dialog is not loaded onto the controller. But the solution is pretty simple: Double click on the Visualization Manager in your application. Select the Tab "Visualizations". Here you can see that your dialog is not "checked". Do this manually and load your project on the controller. Then your code should be able to open the dialog, because now it exists on the controller.
Last updated: 2024-09-28
Post by timvh on FB string and naming
CODESYS Forge
talk
(Post)
I see, you want to initialize the FB. To be able to initialise it like you described, you need to add the FB_Init method to your FB. (right click on the FB, select add object --> method). Then press the arrow down, to select the FB_Init (overwrite default implementation). In the VAR_INPUT section of this method, add the variable --> Tag : STRING; Then in the code section of this method add: THIS^.Tag := Tag; // copy initial value to local variable in FB Search Google if you want to know more about FB_Init. PS, reflection + instance path, is also an option if you want to get the full name of the instance (path) of the Function Block. See: https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_pragma_attribute_instance_path.html
Last updated: 2024-09-30
Post by pernockham on Linking to IO during runtime with hot swap?
CODESYS Forge
talk
(Post)
I have a project where a single PLC shall control multiple nodes (up to 10 units?) with IO connected through profinet. Ideally each node should be identical however with time I see situations were different setups/configurations will be used. Codesys PLC (GVLs) |Profinet | |--PNIO-node-1--| | | AIO, | | DIO, | | CNT etc. | |--PNIO-node-2--| | | AIO, | | DIO, | | CNT etc. Ideally I think of a configuration through yaml/xml-files (the assignment/linking of the profinet nodes towards GVL-variables in the PLC as well as scaling, channel configration etc.). Would be grateful if someone could suggest library/-ies that can handle the following: - Verify what IO is connected to a device/node. - Hot-swap/assign link for IO towards GVLs, either automatically or through a HMI.
Last updated: 2024-10-11
Post by timvh on Modbus TCP & RTU with Control for Linux SL
CODESYS Forge
talk
(Post)
RS485 doesn't seem very logical to use in VPLC's in my opinion. I also don't know if this is supported.... But for TCP/IP, I think you still need to configure the Nic settings. See the attached png. In my case enp6s0. When changing this setting, restart the VPLC. What is really nice, is that you don't have to configure the IP address setting in Linux. By setting the Nic to a certain IP address in the CODESYS instance configuration, this is automatically done for you. I only tested this with EtherCAT, but I guess this works the same for Modbus TCP/IP.
Last updated: 2024-10-23
Post by struccc on HTML5 Controls - string(>80) values
CODESYS Forge
talk
(Post)
Dear all, does anyone have experience with HTML5 controls recently? CODESYS 3.5.20.30 / Visualization 4.6.0.0 I'd like to create a simple lightweight text editor, with proper multiline handling, cut & paste, scrolling, etc. And it seems to work fine, just have problems with strings longer than 80 bytes.... Declaring a variable sText1 : STRING(8000) and referencing it in the HTML5 Controls corresponding value property works perfectly one way: the code receive the data as a string (See log1)... (Note TypeID 1000...) Also sending back the data (seems to work (See log2) except it doesn't change the value of the bound variable. Probably the issue is with using SendSimpleValue method... Naturally, I could do a workaround, but maybe there is a more standard way to implement this... Please let me know if you have any suggestions.
Last updated: 2024-10-23
Post by gediminas on Datasource OPC UA client system failure
CODESYS Forge
talk
(Post)
I am using CODESYS v3.5 SP20 Patch 3 / Control for BeagleboneBlack SL v4.13 and after some time the OPC UA Server crashes. However, Runtime still works without any issues. The events leading up to the OPC server crash are the most suspicious: 1) Mutex deadlock detected - owner thread died, and 2) Runtime received SIGABRT. And it seems very similar with this topic except used versions - issues should be fixed with previous SP's. I can't seem to find any information about these events. Need some pointers in the right direction on how I can fix this problem.
Last updated: 2024-10-25
Post by phoward131 on Alarm Table Filtering
CODESYS Forge
talk
(Post)
I am having trouble getting the alarm table filtering to work. I downloaded the alarm filter latch example project and ran it on the local Codesys Control Win and the filters worked fine. I am trying to replicate it in my project and everything seems to be set up the exact same way and every time I turn on the filter, it shows no alarms. I even started a blank project and just copied in elements from the example project so that it is exactly the same and when I attempt to filter, it again shows no alarms. Could there be some project settings I need to adjust to make this work? I have attached my project with elements copied from the example project and filtering is not working.
Last updated: 2024-10-28
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 andrax on CodeSys Raspberry pi I2C driver not found
CODESYS Forge
talk
(Post)
Ok, here are the libraries I use. First of all, try to get the ADS1115 to run completely on its own. Without MUX or other sensors. As muxboard I use this one: https://www.digikey.de/de/products/detail/sparkfun-electronics/BOB-16784/12714950?utm_adgroup=&utm_source=google&utm_medium=cpc&utm_campaign=PMax:%20Smart%20Shopping_Product_Zombie%20SKUs&utm_term=&productid=12714950&utm_content=&utm_id=go_cmp-18521752285_adg-_ad-__dev-c_ext-_prd-12714950_sig-Cj0KCQiA88a5BhDPARIsAFj595gkPXWPT8aa-EixL97BDWjO988WDhcx-iHOVbqb_H8CLpHBcwLuJW0aAu1JEALw_wcB&gad_source=1&gclid=Cj0KCQiA88a5BhDPARIsAFj595gkPXWPT8aa-EixL97BDWjO988WDhcx-iHOVbqb_H8CLpHBcwLuJW0aAu1JEALw_wcB All other boards don't work for me either. The terminating resistor is missing Important: Before you install the drivers, remove all other device drivers. My drivers are all located in βRaspberry I2C MUX_11_2023β
Last updated: 5 days ago
Post by bbm1995 on Security Screen - Custom Certificates for OPC UA Server?
CODESYS Forge
talk
(Post)
Hi everyone, is it possible to use selfsigned/created certificates (eg. with X - Certificate and Key Management) as a OPC UA Server certificate in the Security Screen? As far as I know I can only upload client certificates to the PLC and move it to "Trusted", "Untrusted" and "Quarantined". Same question is on sps-forum.de
Last updated: 2023-08-23
Post by vformanek on No source code available for profinet library
CODESYS Forge
talk
(Post)
I have tried downgrading and it seems fine now. I am now on version 4.3.0.0 for the library. Mainly the PN controller caused the issue for me. Funny weird is that even the PN controller versions 4.3.1.0 and 4.3.0.0 cause the error. Version 4.2.0.0 works fine.
Last updated: 2023-08-23
Post by fless on No source code available for profinet library
CODESYS Forge
talk
(Post)
looks like you are running in a bug in the newest version 4.4.0 of the profinet library or the new library triggers a bug in your code. did you update your profinet device too? you could try to downgrade to an older version of the library. via library manager - placeholders, double click Profinet 4.4.0 in the library column and choose an older version.
Last updated: 2023-08-23
Post by jegerjon on XY Chart
CODESYS Forge
talk
(Post)
I have a XY chart in a visualization that is working fine, all lines are presented correctly. When I present the XY chart visualization in a frame, it seemes as no values are recorded, all lines are zero. When i open the visualization containing the XY chart in e!cockpit i see the lines are presented correctly but still not in the frame. Any ideas?
Last updated: 2023-08-30
Post by ryandmg on Web Client (HMI) Disconnects from Webvisu (Weidmuller u-OS)
CODESYS Forge
talk
(Post)
Ohhh OK. Yeah this seems to be timing like you said. Yeah I read through that document and came to the same conclusion. I haven't tried setting them both to 200ms. Maybe I'll give it a shot. Thanks so much for your input. Its greatly apreciated.
Last updated: 2023-09-06
Post by transmin01 on EL6751 Canopen_Manager issue
CODESYS Forge
talk
(Post)
Hi, I have a Beckhoff EL6751 EtherCAT / CANopen gateway which fails on the Canbus when the CANopen_Manager is added. Currently no devices are connected to the EL6751. If I add a device, I get the same issue. If I add a device and connect the bus, I get the same issue. Is there something I am doing wrong? Regards Trevor
Last updated: 2023-09-12
Post by spareparts on SPI Master not running/MCP3008 Missing driver.
CODESYS Forge
talk
(Post)
I believe I have installed the correct device descriptions and library, in an attempt to use the MCP3008 in conjunction with RPI; when project runs the MCP3008 is unable to find the correct driver. Is there anything I'm missing? Very new to this so any help is apprecated!
Last updated: 2023-09-12
Post by kdasystems on WebVisu on mobile devices
CODESYS Forge
talk
(Post)
Hello I have a problem with web visu. When I open it to normal screen it is with good quality, but when I use it on mobile phone or tab then it is really bad quality, almost not possible to read the information. Can somebody help me what are the exact settings in the visu manager for this
Last updated: 2023-09-13
Post by transmin01 on EtherCat Master cannot open network adaptor on Win10x64 target
CODESYS Forge
talk
(Post)
Hi, If I utilise an EtherCat master with a Beckhoff EK1100 coupler on a Win10x64 target I get a "Network Adaptor could not be opened" error. I have tried this on both a VM and a physical PC. Has anyone experienced this issue? Regards Trevor
Last updated: 2023-09-14
Post by snhatton on Alarm Management - latched variable represented as Text list
CODESYS Forge
talk
(Post)
Hi There, For my understanding: are you trying to display the contents of a text list in an alarm message based on the id? For example, you could maintain a text list of common alarm messages, and then display based on which message is true?
Last updated: 2023-09-18
Post by derpaul on Official MQTT-Client: MAX_RECEIVE_BUFFER_SIZE_EXCEEDED
CODESYS Forge
talk
(Post)
Hello, my PFC200 has run for a few month now without problems. But now it freezed 2 times a day. LEDs were green but the PLC was not reachable. After power off -> on. I found that the MQTT had an error: MAX_RECEIVE_BUFFER_SIZE_EXCEEDED. And MQTT hadn't reconnect since then. I tried a cold and a warm reset but nothing helped. How can I solve this? Regards, Paul
Last updated: 2023-09-21
Post by lucaver89 on Raspberry pi 3 and runtime 4.9.0.0
CODESYS Forge
talk
(Post)
Good morning, I'm using a raspberry pi3 as plc with the runtime 4.9.0.0. My program has many of retrain variables but when an update is performed the retrain variables comes back to default values. Is the a way to backups the retrain variables n a csv file? Is still the way to restore them from the csv? Thank you for helping Luca
Last updated: 2023-09-23
Post by callumo1 on Check For Open Dialogs On Client
CODESYS Forge
talk
(Post)
Is it possible to make a function that checks to see if there are any open dialogs on a given clients. I think VisuDialogs.VisuDlgUtil_IsDialogOpen does this for a given dialog name, but is it possible to do this for any dialog. Appretiate any help Cheers Callum
Last updated: 2023-09-25
Post by callumo1 on Check For Open Dialogs On Client
CODESYS Forge
talk
(Post)
Thanks for the reply. I want to be able to check if any dialogs are open of any name. I already have a function similar to what you have send but I don't want to have to run it for all the different dialog names. Thanks
Last updated: 2023-09-26
Post by transmin01 on SafetyApp - Exchange 8 bits from EtherCAT Safety Module to PLC mapping issue
CODESYS Forge
talk
(Post)
Hi, I am using an "Exchange 8 bits from EtherCAT Safety Module to PLC" module which allows me to create tags in the safety environment, but how does this map to the standard PLC program? There is no entry in the IoConfig_Globals variables list. Regards Trevor
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
.