Search talk: how to do IF look

 
<< < 1 .. 50 51 52 53 54 .. 179 > >> (Page 52 of 179)

Post by alexgooi on Is it possible in the log to see previous shutdown CODESYS Forge talk (Post)
Hi DavidBo, In general Codesys is used to control equipment and an exception is the worst thing that can happen in your installation. If you cannot prevent the exception from triggering, you could implement a Try catch statement, with this solution your controller keeps on running and you are able to handle the exception. __TRY //This statement will trigger an exception Result := 4/0; __CATCH(exc) //Handle the exception HandleException(exc, strExceptionText => strExceptionText); // From the Codesys help file //Create a log file //-------------------------------------------------------- __ENDTRY What you also could do is implement implicit checks, these functions cover most of the exceptions (like dividing by zero) See picture But in general avoid a complete controller shutdown!
Last updated: 2024-02-09

Post by gilbert-mh on CAA net base TCP client cause PLC to crash - Kernel message : N0HZ_local_softirq_pending 80 CODESYS Forge talk (Post)
Hello all, I have been trying to implement a TCP client on a Festo PLC (CPX-E-CEC-M1) and it looks like it works well except that after some time (greatly varies between a few hours to more than 100h) my PLC crash. When I look into the log file the only thing I see is that before the crash happens a few kernel warnings : N0HZ_local_softirq_pending 80 and then the crash. I've looked into this warning and from what I could find on the net it seems that this is warning is triggered when the ethernet link is down. I've tried to correct this bug for quite some time and what I know is that : - The crash is caused by my TCP client, when I remove it from my code I see no crash - The crash happens more quickly the more the TCP client is used. - The time before the crash is not directly proportional to the number of communications or their size. But it looks like it is just more likely to happen if the client connect to the server at a higher frequency. - The precedent observation makes it seem unlikely that the crash is caused by some memory overflow because then the crash speed would be more proportional to the amount of data exchanged. SO from these observations, I believe that the crash could be caused by the PLC trying to connect to a server while there is some kind of issue with the ethernet link resulting in the PLC getting stuck in some indefinite state and making it crash. This still seems a bit unlikely to me because if the ethernet is down it simply shouldn't be able to contact the server and the communication would just fail which doesn't cause my PLC to crash. Has anyone encountered the same kind of problem (with the same kernel message) ? I am pretty sure the warning is not the direct cause of the crash but just an indicator that something is wrong with my PLC. Thanks in advance
Last updated: 2024-01-12

Post by gurke258 on Codesys Safety EtherCAT with Beckhoff CODESYS Forge talk (Post)
Hello :) We are currently configuring a system with Codesys as SoftPLC on a Linux system and with Beckhoff terminals. I have already gained some experience with Codesys and also with TwinCat incl. TwinCAT Safety. What is new to me now is Codesys in conjunction with Beckhoff safety terminals. We are currently using an EL1918 & EL2904 here. I have been able to integrate both terminals into my project, but I don't know how to interconnect them so that they communicate. That's a bit easier with Twincat ^^ Can any of you help me? I would also prefer a Codesys EtherCAT Safety training or webinar if anyone knows of one. Unfortunately I can't find such an event on the internet.
Last updated: 2023-11-07

Post by seppi on Establishing communication between a Raspberry Pi 4 and an Arduino UNO R3 using I²C. CODESYS Forge talk (Post)
Hello everyone, I want to establish communication between my Arduino and my Raspberry Pi via I²C, but I have no idea how to make it work. However, it should work because there are many examples available, although none of them were programmed using Codesys, but rather using Python. My Raspberry Pi will be the master and is supposed to exchange measurement data such as speed and battery capacity with the slave (Arduino). I would be very grateful if someone could help me with my problem. Here is another link that could be helpful. However, I can't find the mentioned libraries
Last updated: 2023-12-03

Post by abrarsk on SysCom Library Usage CODESYS Forge talk (Post)
Hello all, I am facing issues with using SysCom library. With SysCom23 library things were simple but since we are migrating to 64bit systems, I am writing a Porting program. With SysCom23, opening the comport was as simple as providing the ComPort no. which returns the Handle as a DWORD. dwHandle:=SysComOpen(Port); But the new library is a bit different. It is asking for 2 input parameters to open the Com Port - Port Number and POINTER to RTS_IEC_RESULT IF hCom = 0 THEN hCom := SysComOpen(ComSettings.sPort, ADR(pResult)); How should I use the RTS_IEC_Result? I can find RTS_IEC-REUSLT under SysType2Interfaces of SysCom library. Also, can someone give me a general understanding of this RTS_IEC_REULT and RTS_IEC_HANDLE, etc.?
Last updated: 2024-08-05

Post by eschwellinger on How to configure CODESYSControl_User.cfg in order to use a specific network card for OPCUA Server CODESYS Forge talk (Post)
check this faq section here: https://faq.codesys.com/plugins/servlet/mobile?contentId=102137886#content/view/102137886
Last updated: 2023-08-25

Post by snhatton on How to switch between dynamic IP address and dynamic? CODESYS Forge talk (Post)
Does this help: https://pimylifeup.com/raspberry-pi-static-ip-address/#:~:text=1%20To%20begin%20setting%20up%20a%20static%20IP,go%20ahead%20and%20restart%20the%20Raspberry%20Pi.%20. Following those instructions, it is possible to configure the ip address as static.
Last updated: 2023-11-08

Post by mybackingtracks on Codesys Control Raspberry PI 4.10.0 - missing 'Update Raspberry PI' option CODESYS Forge talk (Post)
I have updated Codesys Control Raspberry PI form 4.8.0 to 4.10.0. After I did it, 'Update Raspberry PI' disappeared from the 'Tools' menu How to solve it?
Last updated: 2023-12-06

Post by reinier-geers on Add licence CODESYS Forge talk (Post)
Hi I want to add a licence. I dont have the dongle jet. I tried a Stick. I dont see a Container. My Controler deliverer Dont put a motion licencens because its to expensive. How can i add a licensens?
Last updated: 2023-12-28

Post by marekxc on Translation - How to get text as reference in Frames translated? CODESYS Forge talk (Post)
Show a simple example of what you're doing. What and where are you changing? Maybe this link will be useful to you" https://content.helpme-codesys.com/en/CODESYS%20Visualization/_visu_using_visu_as_element.html
Last updated: 2023-12-29

Post by dim54 on MBChannel CODESYS Forge talk (Post)
Hello! I am interested in the Modbus Slave channel parameter uiReadLength to use in the ST-program (see picture). How to read the value of uiReadLength in a ST-program? Only Edwin the Great and Terrible can answer this question.
Last updated: 2024-01-22

Post by jinlee on Multiple WebVisu CODESYS Forge talk (Post)
Hi there, I am having a similar problem like you. I have 3 screens connected to one PLC. I have set 3 different URLs for them. But 3 of them are still dependent to each other. How can I make them independently ? Kind regards, Jin.
Last updated: 2024-01-25

Post by masmith1553 on C0564 Warning Message CODESYS Forge talk (Post)
Hello, After updating from SP18 to SP19 I am receiving multiple C0564 warning messages after I compile. Does anyone know how to fix the warnings?
Last updated: 2024-01-25

Post by irshad on Modbus TCP/IP slave communication errow CODESYS Forge talk (Post)
While reading the value of a slave device, it shows error frequently and i need to restart my PLC for getting the communication back. In codesys it shows the slave in Red color with error status. How to solve the above
Last updated: 2024-02-03

Post by reinier-geers on Axis declare CODESYS Forge talk (Post)
In motioncontrol every block start with Axis. How can i make a variable to make my own FB ? Somthink like : _Axe : pointer to Axis_Ref_MC := Axis_1 ;
Last updated: 2024-02-13

Post by macros8 on Visualization using methods and cyclic ST-calls CODESYS Forge talk (Post)
Have you found the way how to call any function in case the visu is opened? Like on event when the screen is opened to initialize some variables etc.? I can´t... :/
Last updated: 2024-03-01

Post by ryusoup on OPC UA Client certificate for datasource link CODESYS Forge talk (Post)
Hello, I'm looking for a way to set my client certificate, not one which self-signed cert generated with CODESYS, for OPC UA connection via datasource linking. Does anyone know how to archive that? BR,
Last updated: 2024-03-08

Post by niallel on How to change bHiresMode CODESYS Forge talk (Post)
Thank you so much for the reply. The motor is a rotary connected to a linear actuator. So would I set it up as in the attachment screenshot?
Last updated: 2024-03-12

Post by kuuki on Losing focus of variable CODESYS Forge talk (Post)
Hi. Does anyone know how to fix a problem with losing focus of a variable in FBD editor. Sometimes when trying to edit variable name, array index, etc. in network, editor randomly exits "text edit mode" and variable is replaced by text you were typing.
Last updated: 2024-03-26

Post by software2 on EXCEPTION CODESYS Forge talk (Post)
Hi! When I try to go on-line in my application. This message comes out. I don't know how to figure it out. Can I have some tips? Thank you very much
Last updated: 2024-04-29

Post by guilhermeleao on How to communicate 2 pcs that are using CODESYS CODESYS Forge talk (Post)
I need to connect 2 computers on the same network that are running codesys, so that they can receive and change variable values from each other. This connection must preferably be made using Modbus.
Last updated: 2024-05-06

Post by dkugler on RecipeManCommands.ReloadRecipes CODESYS Forge talk (Post)
Hi William, I struggled in the same way as you at the beginning with the recipe manager. This chapter helped me a lot to understand how it has to be used: https://content.helpme-codesys.com/en/CODESYS%20Recipes/_rec_start_page.html Check out the Methode LoadFromAndWriteRecipe / LoadAndWriteRecipe Good luck! Dave
Last updated: 2024-05-16

Post by dkugler on RecipeManCommands.ReloadRecipes CODESYS Forge talk (Post)
Hi William, I struggled in the same way as you at the beginning with the recipe manager. This chapter helped me a lot to understand how it has to be used: https://content.helpme-codesys.com/en/CODESYS%20Recipes/_rec_start_page.html Check out the Methode LoadFromAndWriteRecipe / LoadAndWriteRecipe Good luck! Dave
Last updated: 2024-05-16

Post by installwhat on How to access to variable value through symbolic string name CODESYS Forge talk (Post)
Maybe your question makes sense but I don't see it. Maybe you should rephrase and add a lot of detail
Last updated: 2024-06-13

Post by sturmghost on Codesys Visu Update Frame Parameters No Dialog Appears to update CODESYS Forge talk (Post)
This is still a huge problem. Does someone know how to update the frame references (not manually for every frame-element...)?
Last updated: 2024-08-12

<< < 1 .. 50 51 52 53 54 .. 179 > >> (Page 52 of 179)

Showing results of 4466

Sort by relevance or date