Search talk: check object is null

 
<< < 1 .. 83 84 85 86 87 .. 113 > >> (Page 85 of 113)

Post by timvh on Modbus TCP & RTU with Control for Linux SL CODESYS Forge talk (Post)
It seems you have 2 network interfaces. Did you try eth1? Did you already configure the IP address for this interface in Linux? If yes, then maybe undo this. - or only set eth0 in the Nic configuration without anything else (so no IP address, because this is already set in Linux). For more information about the Nic settings, see (probably already read it?): https://content.helpme-codesys.com/en/CODESYS%20Control/_rtsl_obj_deploy_control_sl_configuration.html PS, if you only want to run CODESYS Control SL, you don't necessarily need the Virtual PLC variant. You could also install and run the CODESYS Control SL Runtime in the Host operating system. This way you should also be able to access the serial port and directly access all ethernet ports. Maybe this is easier?
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 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 mabac on No file found CODESYS Forge talk (Post)
CODESYS introduced many cyber security related changes over the last few years, one of them is to restrict file access. By default, file access is restricted to the PlcLogic folder and subfolders of the CODESYS control runtime of version 3.5.19.0 and newer. For Control Win this would be the folder C:\ProgramData\CODESYS\CODESYSControlWinV3x64\xxxxxxxx\PlcLogic\ To enable access to other folders, you can configure additional paths by adding them to the file CODESYSControl.cfg. For example: [SysFile] FilePath=C:/temp/test FilePath.1=C:/Users/Public You should now be able to access your file in C:\temp\test\ or in C:\Users\Public
Last updated: 2024-10-30

Post by pistola on Case Function - Multiple Conditions, Is it possible? CODESYS Forge talk (Post)
Looking at the help (https://content.helpme-codesys.com/en/CODESYS%20Development%20System/_cds_st_instruction_case.html). I don't think it is possible but I figured I'd ask. I'm looking at have a case that evaluates two variables, instead of having multiple If Else statements I was hoping I could just use a case. Example * Case Var1 & Var 2 of 10 & 10: Instruction Code 10 & 20: Instruction Code 20 & 20: Instruction Code End_Case Obviously I tried typing as noted above and Codesys threw an error. But I was wondering if there was a different way of programming to make something like this work? If not I'll just use a bunch of If Else Statements, Thanks.
Last updated: 2024-11-03

Post by sigurdrb on Codesys and error messages, warnings exceptions etc. CODESYS Forge talk (Post)
Hi, I tried some different libraries (CmpApp etc.) to find some global variables that I could read out as a variable in the codesys environment. Do any one of you know which libraries are best suited for this, and how I can read it out? My goal is to send messages, warnings etc. to the system that communicates to the PLC. Currently if something goes wrong I need to see the logfiles, or go online with the controller. I think I could save a lot of time if I could read the errors from our user interface that is connected to the PLC by TCP/IP.
Last updated: 2024-11-06

Post by xabier on BUG CODESYS-NO WORK AUTOMATICALLY RESTARSLAVES CODESYS Forge talk (Post)
I detect a Bug of Codesys....NO WORK AUTOMATICALLY RESTARSLAVES. I explain the secuence: I have click in my project the option AUTOMATICALLY RESTARSLAVES In the moment start my Ipc, the network ethercat start correctly I disconnect the wire of my first slave and later connect again the wire..(see the screen Bug Codesys restart slave1) NO work the restart automatic slaves...and is not possible execute of FB MC_REset beacuause appear this error (see the screen Bug Codesys restart slave2) The only way for resolver this problem is execute the FB SMC3ReinitDrive I replay the same with PLC BECKHOFF in Twincat3 and I havent this problem...In the moment connect the wire again in the slave the comunication of ehterCat restart and the slave comunication again with out problem
Last updated: 2024-11-07

Post by bertcom on Converting each character to a string into ASCII CODESYS Forge talk (Post)
Good afternoon, I have a project where i need to split a string and send it in ascii code to an Domino Printer. Concept: i get an String from an Zebra scanner looking like this : " R002043;5410761402862;Oil Plus 2C Comp.A - Gris Belge;1286193824;" To start is the ";" the seperator. i found some functions to delete the ";" in a string. this is okay but now i want to convert each digit in the string into ascii like this: R=82 0=48 0=48 2=50 0=48 ... This because the printer wants to receive a string like this: <esc>OQ001TE 82 48 48 50 48 ...<eot></eot></esc> Anyone who can help me with setting me on the right track with some advice?
Last updated: 2024-11-08

Post by bertcom on Converting each character to a string into ASCII CODESYS Forge talk (Post)
Good afternoon, I have a project where i need to split a string and send it in ascii code to an Domino Printer. Concept: i get an String from an Zebra scanner looking like this : " R002043;5410761402862;Oil Plus 2C Comp.A - Gris Belge;1286193824;" To start is the ";" the seperator. i found some functions to delete the ";" in a string. this is okay but now i want to convert each digit in the string into ascii like this: R=82 0=48 0=48 2=50 0=48 ... This because the printer wants to receive a string like this: <esc>OQ001TE 82 48 48 50 48 ...<eot></eot></esc> Anyone who can help me with setting me on the right track with some advice?
Last updated: 2024-11-08

Post by garrian on How to write multiple coils (Modbus FC15) CODESYS Forge talk (Post)
Hi there! I'm testing out modbus TCP/IP for my home brewery, using Wago PFC200 as both slave and master. I'm using Wago library WagoAppPlcModbus. Holding registers, input registers' and discrete inputs works fine, but when trying to write multiple coils, it doesn't work. Any idea what I'm doing wrong here? Attached is a screenshot of my code. I tried both using bit mapping and without. If I change to FC05, and write only 1 coil at the time, it works fine. But I want to write all at the same time.. Any help is very appreciated :)
Last updated: 2024-11-16

Post by sebastianrapi on Bibliothek: floatingpointutils CODESYS Forge talk (Post)
@Strucc.c: thanks very mutch. Yes, I think that was the problem. I tried yesterday a similar function, i have found: IEEE32 in REAL FUNCTION IEEE32_TO_REAL : REAL VAR_INPUT IN:DWORD; END_VAR VAR PTREAL:POINTER TO REAL; END_VAR PTREAL:=ADR(IN); IEEE32_TO_REAL:=PTREAL^; END_FUNCTION REAL in IEEE32 FUNCTION REAL_TO_IEEE32 : DWORD VAR_INPUT IN:REAL; END_VAR VAR PTDWORD:POINTER TO DWORD; END_VAR PTDWORD:=ADR(IN); REAL_TO_IEEE32:=PTDWORD^; END_FUNCTION http://www.oscat.de/community/index.php/topic,357.0.html And this works perfect. Now, the only thing that isn't clear is the libary "FloatingPointUtils, 3.5.17.0 (System)"... For me, the libary doesn't work. But the problem is now solved. Thanks a lot.
Last updated: 2024-11-21

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 akfarslan on The application does not exist on "device" CODESYS Forge talk (Post)
Dear All, I am using CODESYS 3.5.19 SP4 with a PLC device. When I try to download my program to the device, I get the error: "The application 'Application' does not exist on the device". Additionally, after restarting the device, the program does not run automatically. When I connect to the device using WinSCP, I can see that the application.app file is uploaded to the root directory, but the device does not automatically start the application. I tried using the Create Boot Application option, but it does not resolve the issue. Is there another configuration step I am missing? How can I fix this problem? Thank you, Best regards,
Last updated: 2024-12-17

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 teichhei on The selected container ... does not fit your ticket CODESYS Forge talk (Post)
Hi, When trying to activate a control Basic L license on a Wago PFC200 750-8203 the error The selected container ... does not fit your ticket comes up and won't allow licensing. I have deleted the /var/opt/codesys/cmact_license/ content 3 times and the container number changed each time after a reboot, but the problem persists. Not a happy first time experience with those weird application based licenses. IDE is 19.20. This was a e!Cockpit FW22 PLC and I used Deploy Control SL to make the green web interface red. WBM shows Codesys 2 and e!Runtime active which is a bit weird. What do I do now? Regards Heinz
Last updated: 2025-01-08

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 climblinne on OPC UA Method - How to wait for result? CODESYS Forge talk (Post)
Hello, I am already able to run an OPC UA method in Codesys. Now my question, how can I interact with other tasks (e.g. read an SDO from EtherCAT and return it by the function)? The OPC UA method seems to be called only once (I tried to return BOOL or UINT values). Up to now I only found to do a while loop to wait for the result of the other task. Is there a better way to do it? Is this the way OPC UA functions should be used (for "not too long" function calls) or should I use another mechanism (method: Start, event: Finish, method: getResult)? Regards
Last updated: 2025-01-13

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 janber0206 on Adding PLC to the List view resolves in Unknown Error CODESYS Forge talk (Post)
Hello, I try to add one of my PLC from the Gateways to the List view. The Gateway is shown me as online, also i have other remote tools to verify the Internet connection is working. I do the Network Scan and the Gateway shows up, i select it and click on "Add to Server". Then I type in Username and password and click on confirm. There it shows me the "Unkown Error", see screenshot. If I use the wrong credentials it gives me the error message for this. Other Devices work fine it's just this one. Greetings Jannis
Last updated: 2025-02-21

Post by tyleretn on Codesys 3.5 SP18 P4 Freezing on Library Update CODESYS Forge talk (Post)
I have created a library with both code and visualizations to be used in multiple other projects. After I update the library version into the library repository, I have much difficulty updating the version into the main project. I can always update the library version in the Library Manager just fine. My issue, is sometimes Codesys will freeze when opening the visualization that uses the library visualizations. Sometimes it opens, but freezes when I try to access the library visualizations from the Visualization Toolbox. I try letting Codesys run for upwards of 4+ hours and it is stuck in this state. On very rare cases I have no issues and can continue with my work. I haven't found a consistent reason or work around. Has anyone else had this happen?
Last updated: 2025-02-27

Post by struccc on Multiple applications on one device sharing variables. CODESYS Forge talk (Post)
I don't exactly recall where (I think some release notes), but I read the information that this multiple application / sub application feature is to be discontinued. Please, correct me, if I'm not right about this I am a bit sad about that - I was using that feature with more or less success. However I understand the reason behind the change: it introduces huge complexity, especially when dealing with multicore and safety support... AS I understand, it's to be replaced with the new virtual plc architecture, and standard ways for synchronizing / sharing data... So, for now the "Add application" context menu item was removed, but behind the scene it is still supported... Hint: if you still want to experiment with it, might try copy-paste things within the PLCLogic tree...
Last updated: 2025-02-28

Post by matthew on High resolution displays with 150% scaling causes CodeSys IDE to be blurry CODESYS Forge talk (Post)
I have just upgraded my laptop which has a high res display 2560x1600 and I have to have scaling switch on at 150% but everything looks blurry and not crisp, It seems CodeSys IDE is the only software on my system to look this bad, if I switch to 100% it's crisp but way to small. From a bit of research this could be due to the use of old windows forms or something? I have found a temp workaround that sort of works but not great. You have to run CodeSys in compatibility mode and adjust the DPI settings, this works ok and the editor is clear and crisp again but the actual tool bars are small like running at 100% Anyone got any tips for running CodeSys on high res displays with scaling?
Last updated: 2025-03-03

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 rickmotion on Opening and saving files with fileOpenSave dialog CODESYS Forge talk (Post)
I have a customer that types in machine programs in a text file for machines and lets the machine execute it. In the old situation they can open and edit these files in a winform application. Now I want to move this to codesys. What I need is a simple way to open, close, save, edit the machine file in codesys visualisation. I want to use the fileOpenSave dialog. But don't understand how it works. I have the file transfer example and some other examples. But it is hard to figure out how the part with the file dialog works so that you can select a folder or file. Does someone know how that works?
Last updated: 2025-03-26

<< < 1 .. 83 84 85 86 87 .. 113 > >> (Page 85 of 113)

Showing results of 2810

Sort by relevance or date