Search talk: case OF

 
<< < 1 .. 64 65 66 67 68 .. 103 > >> (Page 66 of 103)

Post by hyys12 on CODESYS 3.5 dicovery of PLC modules CODESYS Forge talk (Post)
I have a WAGO PLC, to which I am establishing a connection. Here I use the autodiscover to register the connected modules. Now, I have tested the in-/outputs of the different modules, to verify they are consistent with how they are physically connected to the PLC in regards to how CODESYS has numbered them. Will CODESYS always number the modules closest to the PLC itself lowest, and the one furthest away, the highest? I am rather new to the program, so I both hope my question makes sense, as well as not being completely obvious. Thanks!
Last updated: 2024-12-06

Post by hardcoder on EtherCAT Mailbox Gateway CODESYS Forge talk (Post)
Hi all I found that in the last Ethercat master release (4.8.0.0) the Mailbox Gateway feature has been added. This would be useful for me to connect to a specific slave in my system, since its configuration software supports this type of gateway communication. Anyway I don't find usage information or examples. At the moment I tried to enable it in the ethercat master device settings and I configured with an IP address on the subnet of the ethercat adapter (i.e. ethercat nic configured with static ip 192.168.10.100 subnet 255.255.255.0, mailbox gateway configured to 192.168.10.30). I expected it would have responded to ping commands on the address but nothing happens. I am missing something?
Last updated: 2024-12-11

Post by cihangur on OpC UA server on Raspberry Pi 64 SL runtime CODESYS Forge talk (Post)
After my tests, I noticed two issues. 1- WinCC disconnects the connection after receiving the GetEndPointResponse message from CoDeSys. (I found it with UAExpert and Wireshark.) 2- It establishes a connection despite waiting for a while on the network with DNS. As a result of this information: I solved the problem by adding the line "193.193.193.150 t9pac" to the C:\Windows\System32\Drivers\etc\hosts file and making Windows accept messages coming from the IP number 193.193.193.150 as coming from t9pac. (t9pac is the name of my PLC running CoDeSys.) If there is a setting that will allow CoDeSys OPC UA to respond to GetEndPointRequest with its IP address, this problem will not occur.
Last updated: 2024-12-12

Post by imdatatas on MC_CamIn did not work properly with SMC_FreeEncoder on SoftMotion 4.17.0.0 CODESYS Forge talk (Post)
Hi @tk096, Thank you for your response. Here is example project file and some screenshot for your analysis regarding this matter. In order to reproduce the problem on your side and make it independent of the hardware, I simulated the encoder counter incrementally for the master in this example. I configured a virtual axis as the slave motion axis. The problem occurs in the same way in the real hardware configuration (servo drive connected to Ethercat and hardware incremental encoder) in MC_CamIn. I hope this example helps you see the problem on your side and understand and find the source of the problem with FreeEncoderAxis for Softmotion 4.17.0.0. Best Regards, Imdat
Last updated: 2024-12-19

Post by arcadium on Library ENUM text representation in visualization CODESYS Forge talk (Post)
Hello, Maybe someone could help with this. When I add ENUM to a text field I get the number instead of the text. For my own ENUM variable I have declared and enabled text list value is displayed as text, but I need enum text displayed from softMotion and other internal FB's. In the picture I have one of desired ENUM variable setup, but in the visu I have number, but in the watch window it's text. There is probably some checkbox to tick, but was looking for an hour, can't find a solution. Would apreciate some help
Last updated: 2024-12-24

Post by arcadium on Library ENUM text representation in visualization CODESYS Forge talk (Post)
Hello, Maybe someone could help with this. When I add ENUM to a text field I get the number instead of the text. For my own ENUM variable I have declared and enabled text list value is displayed as text, but I need enum text displayed from softMotion and other internal FB's. In the picture I have one of desired ENUM variable setup, but in the visu I have number, but in the watch window it's text. There is probably some checkbox to tick, but was looking for an hour, can't find a solution. Would apreciate some help
Last updated: 2024-12-24

Post by srouse on Adding a Softmotion License to a Weintek HMI CODESYS Forge talk (Post)
I am trying to add a Softmotion license to my Weintek HMI. The HMI is already licensed for Codesys and I have already purchased a Softmotion license as well. When using the License Manager I get an error saying the licensing info is not available. I am fairly new to working with Codesys so I am at a bit of a loss and there seems very little information online about troubleshooting this specific issue. I have attached the error message below. If there are any ideas of how to troubleshoot this better I would be happy to hear them.
Last updated: 2025-01-09

Post by askic on Name Validation of Visualization objects CODESYS Forge talk (Post)
Hello, In my projects, I'm following this recommendation about the rule names in Codesys https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_rules.html, so I always use backtick identifiers, not only for variables, but also for the object names. However, I have noticed that in the current version of Codesys, when adding Visu object, it is not allowed to used these identifiers in the name. This is very different from all other objects like, folder names, POU names, Variable list names etc. I wonder if there is some hidden settings I can use to enable backtick identifiers in the Visu object names? Attached is a screenshot with the details. Thank you!
Last updated: 2025-01-10

Post by askic on Library Documentation Export Error CODESYS Forge talk (Post)
Hello, I have encountered a very strange and non descriptive error when creating libraries. Basically, when user just create a new CODESYS library, and then just add Text List, save build with no errors and then try to save as compiled library, the following error would be generated: "The library documentation export error" and nothing more, just like shown in the attachment. Of course I have installed package CODESYS Library Documentation Support v 4.6.0.0 I'm Using Codesys 3.5.20 Patch 2 Does anybody have any suggestion about the cause of this error or any advice on how to troubleshoot further?
Last updated: 2025-02-15

Post by george32 on TCP Server CODESYS Forge talk (Post)
Dear people, I would like to create a TCP server in my PLC program. The TCP server needs to communicate with an external device. I have been searching the internet and found that the libraries Syssocket or CAA NetBaseSrv are two possible solutions to create a TCP server. From what I have read, CAA NetBaseSrv is more user-friendly to implement than the Syssocket variant. However, I am still struggling to actually implement this library. Foremost is my little knowledge about creating a TCP server and how to read/understand each function block, especially the outputs of some blocks and the types, e.g. server has an output CAA.Handle, but I cannot find the explanation of CAA.Handle. I tried to find a good document that can help me understand how to implement a TCP server, but I could not find it. Thank you in advance, George
Last updated: 2025-02-20

Post by tmarmy1 on Redundancy for RTE x64 - stuck in standalone CODESYS Forge talk (Post)
Sorry if this has been asked before, but I can't seem to locate a thread that leads me answers. I am running two RTE x64 softPLCs, one on the host machine and a second via a VM. I have managed to finally get both to a position that they see each other, but they are in standalone mode instead of an active/passive state for failover (image attached). Every attempt to sync via the button fails. There is probably some step or option that I have missed in my bumbling through this learning process, but for the life of me I can't seem to figure it out. Anyone got any suggestions what I need to look at to get this into an active/passive redundancy state?
Last updated: 2025-02-20

Post by peterkcontrols on TargetVisu started in windowed or not full screen CODESYS Forge talk (Post)
Hello, I am using Codesys on an industrial pc with a single monitor. I would also like to have a separate vision software running on the PC and would like to display it half screen. When I run the soft PLC the my visualization screen appears full screen, I would like to be able to set the size of the visualization screen so I can display other software on the monitor. Is it possible to set the width/height of the targetVisu? Anyone try something similar? I would like to avoid having to put it on a Virtual Machine. Thank you
Last updated: 2025-02-26

Post by pernockham on Inheritence of struct, CODESYS Forge talk (Post)
Apparently my construction will not work as any of the sub-types are not be able to accept any (further) value-initiation. Ie: string_item : log_data_base := (string_value := 'test', val_type := STRING_); is not eq to (the string_value will not be assigned): string_item_2 : log_data_string := (string_value := 'test'); Because effectively for the compiler this is eq. to a "double" assignment where the compiler sees only the first assignment (my guess). string_item_2 : log_data_base := (val_type := STRING_) := (string_value := 'test'); Im not sure this should be treated as a bug, but it would surely be nice to be able to use this construction (compiler is 3.5.20.40). Anyone see any other alternative for solution (other than 4 complete STRUCTS with all fields individually defined)?
Last updated: 2025-03-07

Post by trusty-squire on AXIS Rollover CODESYS Forge talk (Post)
If you mean you want to shift the Origin or Zero position of your axis, you can try MC_SetPosition and set the position to 0 (if you want to take the current active position and make it the new 0. Adjust this number accordingly if/as needed). This means the servo drive keeps it's current origin position, and Codesys applies an offset to the servo drive position in the logic. You can also use the homing function of your servo drive using MC_Home and have your drive configured to set the current position as origin when it receives a homing command.
Last updated: 2025-03-11

Post by milosfejgl on Codesys Licenses - How to reload them after updating the Raspberry Pi OS CODESYS Forge talk (Post)
We use several control units running on Raspberry Pi, programmed using Codesys software, with multiple licenses stored as soft containers. We are planning to update the SD card image of the Raspberry Pi to a newer OS version. However, we are concerned that this process might result in the loss of our soft container licenses. Is there a way to temporarily deactivate the license so that it can be reactivated on the updated system? Alternatively, what would be the best method to preserve the licenses during the update? Thank you in advance for any responses!
Last updated: 2025-03-13

Post by alberto on ExportPLCopenXML is failing CODESYS Forge talk (Post)
I'm trying to export my whole project through the option ExportPLCopenXML. It seems working, but when I'm trying to import the xml I have the following error during the importation process: Object reference not set to an instance of an object. It seems a usual issue with this process that affects to the pointer to user classes inside a procedure. I receive this error for two general functions that have this pointer declarations in the VAR_INPUT section. It seems a bug into the export/import process of CodeSYS and I couldn't skip it so far. Anyone could help me? Thanks in advance.
Last updated: 2025-03-15

Post by agentcousto on [Bug report] Issue with Importing XML Files Containing "POINTER TO" Variables in Codesys Platform Plugins Versions 2.7 and 2.8 CODESYS Forge talk (Post)
Hello, I have developed a Python script that I run to import XML files into my project. For this, I use the Python function import_xml(). Everything was working fine when I was using Codesys platform plugins version 2.6.1.2320, but since I upgraded to versions 2.7 and even 2.8, some files are no longer imported correctly. After some research, I identified that all the files containing variables of the type "POINTER TO" are affected. I have attached a screenshot of the error I am encountering. Do you know about this bug? Do you plan to fix it?
Last updated: 2025-03-26

Post by madskaizer on ModbusTCP Slave Device, maximum uiClientConnections? CODESYS Forge talk (Post)
I got a Wago PFC200V2, running Codesys 3.5.16.40, 100ms scan cycle, consumes about 20ms. It will randomly crash the runtime every 10 minutes to a few hours. We suspect an overloaded ModbusTCP Slave Device, as this is work done by a 3rd party contractor, but we can not find anything in the help files or documentation, that mentions a hard limit on maximum number of clients connections. This PLC currently has 44 client connections to the Slave Device and 29 slaves configured for its own Master Device. This topic metnions a hard limit of maximum 16 connections, but where is this written? https://forge.codesys.com/forge/talk/Engineering/thread/bd95b9d6d2/
Last updated: 2025-03-26

Post by imdatatas on Programmatically change Tappet on a cam CODESYS Forge talk (Post)
Yes, There is. As explained "Manual creation of CAM structure" on below section. Likewise tappet structure also can be create manual and value of the switching point can be change during IEC program running. https://content.helpme-codesys.com/en/CODESYS%20SoftMotion/_sm_basic_cam_programmatic_creation.html Just create a cam table and define some tapped points as sample for your project. Then on project compile, the created cam tapped data is converted internally into a global variable list. By clicking "Display generated code" in the "cam editor", you can display the automatically created global variables for both cam & tappets. Regards, Imdat
Last updated: 2025-04-02

Post by jampid on Struct Literal CODESYS Forge talk (Post)
Bonjour Davidmic, Il n'est pas possible d'associer une méthode à une fonction. Cela est possible sur les Blocs fonctions. En utilisant ta DUT MyStruct, je créé une fonction avec en entrée un tableau de structure :** FUNCTION F_F3 : REAL VAR_IN_OUT // bien définir un type IN_OUT IN_ptrINT: ARRAY[*] OF MyStruct; // la taille sera définie ultérieurement/ END_VAR VAR _di: DINT; // Index de parcours du tableau pour l'écriture dans les cases ENDVAR ============== //Programme F_F3: FOR _di := LOWER_BOUND(IN_ptrINT,1) TO UPPER_BOUND(IN_ptrINT,1) DO IN_ptrINT[_di].som:=IN_ptrINT[_di].a + IN_ptrINT[_di].b; END_FOR J'utilise ensuite cette fonction dans un POU Programme : PROGRAM Test_F_Fx VAR _aiTAB9:ARRAY[0..3] OF MyStruct := [(a := 1, b := 1.2), (a := 2, b := 2.2), (a := 3, b := 3.3), (a := 4, b := 4.4)]; END_VAR ** ==========** F_F3(IN_ptrINT:=_aiTAB9 ); Voilà l'idée pour avancer. Une autre idée, est d'utiliser les pointeurs ou les références. Bon développement!
Last updated: 2025-04-07

Post by bjarne-pagaard on Global Variables CODESYS Forge talk (Post)
Old thread, I know - but it still has good answers. I would like to add a bit of info to it, as I was having a problem that lead me to this thread, but didn't give an exact answer. I am porting a project to a different PLC architecture. (Wago PFC300) A GVL named 'GVL' in the POUs section of my project was shadowed by a PLC-specific library in the Application->Library Manager. So all the existing references in the device specific code to 'GVL.something' would not resolve. Right-clicking the GVL in the code and 'Go to definition' would point me to the library in the Application Library Manager. All I had to do from there, was right-click the library, and set the property 'Only allow qualified access to all identifiers' in the library.
Last updated: 2025-04-11

Post by ulvis on CFC Pages Cut&Paste is not working at its best CODESYS Forge talk (Post)
In the CFC page oriendted editor, if I copy some elements consisting of an input connector, some connected logic and an output connector and then paste this on a another page then the pasted elements get inserted with an offset to the right so that the rightmost connector falls outside of the page, in the grey hatched area. So far so good. Then I mark all the elements and try to drag them into the correct placement, collectively. THIS IS NOT POSSIBLE! I only get the "forbidden" icon tooltip. One has to drag & drop the INDIVIDUAL elements to move the elements around. What am I doing wrong?
Last updated: 2025-05-15

Post by ulvis on CFC Pages Cut&Paste is not working at its best CODESYS Forge talk (Post)
In the CFC page oriendted editor, if I copy some elements consisting of an input connector, some connected logic and an output connector and then paste this on a another page then the pasted elements get inserted with an offset to the right so that the rightmost connector falls outside of the page, in the grey hatched area. So far so good. Then I mark all the elements and try to drag them into the correct placement, collectively. THIS IS NOT POSSIBLE! I only get the "forbidden" icon tooltip. One has to drag & drop the INDIVIDUAL elements to move the elements around. What am I doing wrong?
Last updated: 2025-05-15

Post by ulvis on CFC Pages Cut&Paste is not working at its best CODESYS Forge talk (Post)
In the CFC page oriendted editor, if I copy some elements consisting of an input connector, some connected logic and an output connector and then paste this on a another page then the pasted elements get inserted with an offset to the right so that the rightmost connector falls outside of the page, in the grey hatched area. So far so good. Then I mark all the elements and try to drag them into the correct placement, collectively. THIS IS NOT POSSIBLE! I only get the "forbidden" icon tooltip. One has to drag & drop the INDIVIDUAL elements to move the elements around. What am I doing wrong?
Last updated: 2025-05-15

Post by ulvis on CFC Cut & Paste not working at its best. CODESYS Forge talk (Post)
In the CFC page oriendted editor, if I copy some elements consisting of an input connector, some connected logic and an output connector and then paste this on a another page then the pasted elements get inserted with an offset to the right so that the rightmost connector falls outside of the page, in the grey hatched area. So far so good. Then I mark all the elements and try to drag them into the correct placement, collectively. THIS IS NOT POSSIBLE! I only get the "forbidden" icon tooltip. One has to drag & drop the INDIVIDUAL elements to move the elements around. What am I doing wrong?
Last updated: 2025-05-15

<< < 1 .. 64 65 66 67 68 .. 103 > >> (Page 66 of 103)

Showing results of 2553

Sort by relevance or date