Hi, https://www.turck.de/en/product/100000272 I had the old version of the firmware (1.4.9.0), then upgraded to 1.5.40.0. Going back solved the problem. I need to look for an alternative library for the JSON-Queries (I was using iiot Utilities as demo) unfortunately, since it only works on newer versions. I've already seen this one though we'll see https://forge.codesys.com/lib/pro-json/home/Home/
Thanks for your reply. The DB is quite small since it's just to temporarily store data in a file later (I checked the files get deleted from the PLC once they're sent so they don't overload the memory). But I've seem to have found the problem: I updated the firmware from the PLC to it's latest version, and it seems to overload the cpu much more than before with these libraries. I rolled back to the old firmware and bam it's working again. Best regards Epinikion
Hi all, I'm working on a RFID project which also does MsSql queries. This Codesys (3.14, updated to 3.16) programm runs on a Turck PLC (Tben-PLC). It used to work fine until today morning. It does some SQL queries with this library and text writting. Today after some experimeting with JSON libraries I got a runtime exception due to a plcload over 90. I rolled back to old builds, updated firmware (and downgraded it after not helping) and removed unused libraries and old code, but I keep getting a...
Hi, I'm trying to implement a small program to log data on an old project (done on CodeSys V3.5 SP10 Patch 2). But whenever I try to load the "File Access" library (or just CAA File) I get the error "has not been installed on the system". Is this CodeSys version too old maybe? Can I download the library somewhere and install it manually? Best regards Epinikion
Thanks for replying. I tried it on my company Laptop, so yeah it might be that. They gave me an admin account for installing stuff and it always worked with codesys packages, but yeah maybe this account has some limits too.
Hi all, I'm having problems with the Raspberry package for Codesys. I installed the latest versions of both codesys and the package. After installing it, the "update raspberry pi" button doesn't appear on the Tools menu. I got it to appear going to customize, but when I click on it I get the error "Could not find a part of the path 'c:\users\XXX\Codesys control for Raspberry Pi\Delivery' The folder is there, but after 'Control for Raspberry Pi' the next folder is named after the last version. And...
Hi all, I'm having problems with the Raspberry package for Codesys. I installed the latest versions of both codesys and the package. After installing it, the "update raspberry pi" button doesn't appear on the Tools menu. I got it to appear going to customize, but when I click on it I get the error "Could not find a part of the path 'c:\users\XXX\Codesys control for Raspberry Pi\Delivery' The folder is there, but after 'Control for Raspberry Pi' the next folder is named after the last version. And...
Hello, I've got different PLCs running on different CodeSys Runtimes. I have all of them installed on my pc, but it seems that the last Gateway and ControlWin version running on PC is always the last installed, even if I go to the folder of a different version and start an old one manually. Because of this I can't login to old projects, even if I use the correct Codesys. Is it possible to switch between different Gateway and Controlwintray without reinstalling?
Hi all, I wrote a FB to read the content of specific text files. It chooses a text file depending of the input "bRfidNo", for instance: bRfidNo at 1 would open 1.txt and save the contents on a local array in the PLC. It uses the "File Access" library and its function Blocks. Thing is, when I use my FB on PLC_PRG and choose manually bRfidNo it works fine. But I wanted too by Startup of the PLC have it read every text file and add all its contents on the local Array. I wrote a Startup subprogramm which...
Hi all, I've wrote a FB to read the content of specific text files. It chooses a text file depending of the input "bRfidNo", for instance: bRfidNo at 1 would open 1.txt and save the contents on a local array in the PLC. It uses the "File Access" library and its function Blocks. Thing is, when I use my FB on PLC_PRG and choose manually bRfidNo it works fine. But I wanted too by Startup of the PLC have it read every text file and add all its contents on the local Array. I wrote a Startup subprogramm...
Thanks for the answer. What would be the next step then? When I compare my code (allegedly last uploaded version) with the one on the PLC there's a lot of stuff changed since last download, hence why I can't go online. The date doesn't match either. Last project is from June and the one on the PLC from December. It seems to do with the visudialogs library, but I have the same version installed (I extracted it from the project anyways). Attached are some snippets of the application comparison. Is...
Hello again, I actually managed to connect. But when I try to upload the source code to my PC and select the device, I get the following error: "no source archive available on the plc". Theorically I can get the source code on RUN, right? Or do I need to stop it? Does it work differently for SoftPLCs and HMIs?
Hi all, One of the machines in the company I work for had no backup for quite a few years, so I tried to log in and do one myself, unfortunately I can't seem to find the device through my computer. It's a Visu-PC with RTE V3 installed, so maybe I should open CodeSys directly on the HMI, instead of trying to find it through my laptop? Until now I worked with just normal PLCs so I'm not sure. I checked the manual for RTE V3 and they seem to do such things with CodeSys too. Any tips? Any recommended...
Great, that works too! Many thanks.
Thank you for your answer, I will take a look. Is it possible to define the variable in the program instead of in the variable definitions in order to spare me the fb_init? I think not, right?
Hi, I made a FB which has as input several string variables. Inside the FB I declare a variable consisting of a struct array of said inputs (this struct is made just of strings). These are later formated in a specific way and saved in a .txt file. My problem is when I go online, even I see the desired strings on the input variables, on the array theyΒ΄re all empty and my text file comes out as just comas and line breaks (which I write on my FB). It only works if I manually write the strings on the...
Hi, I made a FB which has as input several string variables. Inside the FB I declare a variable consisting of a struct array of said inputs (this struct is made just of strings). These are later formated in a specific way and saved in a .txt file. My problem is when I go online, even I see the desired strings on the input variables, on the array theyΒ΄re all empty and my text file comes out as just comas and line breaks (which I write on my FB). It only works if I manually write the strings on the...
Oh I figured it out. After all the examples and posts I saw using mostly the path C:/ I assumed it saved data directly on the PC, but it's obviously done locally on the PLC. Mine uses Linux that explains why it got the error only when I used "C:/"
Hello everyone, I've tried to run the example which comes with the CAA File Access library. At first I ran it on simulation mode which gave me the error ASM_CREATEJOB_FAILED, but after testing it on a PLC is gone, so I assume it had to do with the simulation. The thing now is, when I try to write on a file somewhere on my C:\ drive I get the error FILE_OPERATION_DENIED (5114 No access due to ForceFilePath/ForceIecFilePath), which sounds like a permission problem (I'm using my work-laptop). I talked...