Hi, this has been a major problem for me for years .... for V3.5 SP 17 the Text Editor fonts are hidden under Tools:Options:TextArea:Font (click on the sample to edit) ! However, and more important for me was the "Theme" tab here so I could turn on dark mode !!
Hi, this has been a major problem for me for years .... for V3.5 SP 17 the Text Editor fonts are hidden under Tools:Options:TextArea:Font (click on the sample to edit) ! However, and more important for me was the "Theme" tab here so I could turn on dark mode !!
Hi I have many old projects and old versions .... is there a clean way to delete these and their associated files?
Problem Fixed! Yes my code was dreadful & I have have a much better MarkII version. That said the problem remained. But then I noticed another error code; the webClient 'xError' which read 'tcp_init_error'. (See below) This led to an online search where I found the CODESYS 'Bug Fix' shown below. All I needed to do was to change my wrbClient FB to one with the 'xCloseConnection'input and then change the 'FALSE' to "TRUE' for that input. So far it is now running error free. Bernie_BBQ
Hi, Thanks ... I am self taught and appreciate that help. But in the meanwhile I have come up with another possible fix which seems to have worked (so far). I discovered the error message 'hidden' in the Variables under WebClient 'xError' given as "TCP_INIT_ERROR'. Thus my Google search and I found the Codesys message below. This had been an ongoing (regular) fault which threatened to crash my home solar diversion project which is now 90 % complete. All I had to do was to change the input word "FALSE'...
Hi, I have the ,exact same fault.... happens occasionally when sending API online via http & Jason. did anyone have an answer for this ? Thx BBQ
Hi, I did try that too .... multiple times .... eventually just let re-loading program & patient waiting resolve the problem as Codesys found and located libraries and packages ... many hours involved, but hey I am retired :) BBQ On Sun, 15 Aug 2021 at 21:28, h-hermsen forge@codesys.com wrote: Hi Goto start > CODESYS > CODESYS Installer (as adminsitrator offcourse) and install the packages through the new installer, then it will work and CODESYS is allready aware of this issue. A fix will surely...
Hi, I have a large project with over 30 timers, 16 POUs, 12 Modbus Variables (some 32 bit float) a RTC ticking over continuously blah blah ... it runs well but occasionally strange webClient errors occur which may require the RPI 2 to be depowered and restarted, although some faults can be cleared with a soft re-boot. I suspect that the various processes do not always get completed in the required time. Speed of operation is not important, just stability. I have tried extending the task cycle Intervals...
I had the same issue ... just kept trying with long patient waits .... I am unsure why it finally worked .... I uninstalled 3.5 SP 17.1 several times, but eventual just kept letting the system work out the problems every time I loaded my most complex project from 3.5 SP 17 and eventually it came good with all the required libraries and packages.
Hi, Yes V3.5 Sorry I am still new at this, thanks for your help; I will use the correct group in future :) After many attempts the libraries & packages all came good ... certainly feels like a clumsy 'hit and miss' process. Bernie_BBQ On Sun, 15 Aug 2021 at 21:28, h-hermsen forge@codesys.com wrote: Hi Goto start > CODESYS > CODESYS Installer (as adminsitrator offcourse) and install the packages through the new installer, then it will work and CODESYS is allready aware of this issue. A fix will surely...
Hi, my Codesys 3.5 SP 17 was locking up when say the help screen was accessed or at other unusual times. I uninstalled it and re-installed 3.5 SP 17.1. All good so far. However, I cannot add in the single core control for the Raspberry Pi as it is missing from the drop-down menu in the Installation menu. I subsequently downloaded the relevant 'CODESYS Control for Raspberry PI 4.0.1.0.package' but it cannot be installed and comes back with the message shown below. I have even deleted the new directory...
Hi again, Thanks to all your help I will soon be running my Solar Diverter on a RPi 2; just one snag. I have created multiple POU's to set & start my air conditioner depending on the excess solar power available. I can trigger these POU's via the Visualization 'toggle buttons' using the address of the relevant WebClient 'xStart' input. However, much to my surprise, I cannot do this from the master control POU. So 'AC_SET_20_Deg.xStart := TRUE' from a different POU cases the error message "C0037:...
Thanks .. that fixed it ... GIGO once again :) Regards On Sun, 1 Aug 2021 at 01:55, Fless forge@codesys.com wrote: take a look in your Program Modbus IF GVL.AC_Running := TRUE THEN AC_PWR_Use := GVL.AC_Watts;END_IF you wanted to check GVL.AC_Running = TRUE but you set it to true. to avoid such mistakes simply use statements like IF xRunning THEN ...;END_IF IF NOT xRunning THEN ...;END_IF Error result in simple ST 'IF Else' result https://forge.codesys.com/forge/talk/CODESYS-V2/thread/5c0265af58/?limit=25#0b10...
Hi, I have attached the project (- API keys:) This is an early development stage and u will soon see I am no real programmer, (an Elec Eng by profession)... self taught in coding. IDE Codesys for RPI single core. 3.5 SP 17. The jpg was taken off the application when running on the RPI with all field devices working ie Modbus kWhr meters. Note I am somewhat stuck with the 32 Bit floating input from the House kWhr meter so I am doing a bit of a fudge there. (It measures the total import / export power...
Hi, The result of a simple IF Else command is incorrect. I know this seems impossible but seeing is believing. Image attached. The variables have been set correctly; one WORD 'GVL.AC_Watts' and one BOOL 'GVL.AC_Running'. Why is the BOOL showing 'TRUE' when clearly 71 > 100 is 'FALSE'
Hi, The Modbus feature in Codesys regards incoming variables as 'WORD' types. My RS485 kWhr meter sends data via two 16 bit REAL numbers which form the 'Hi Byte' & 'Low Byte' of the transmitted value. (Definitely overkill for my application.) I can read the separately received WORDS in Codesys but clearly they are unusable in that format. Can someone show me the way to convert these back to a single REAL variable? Thanks in anticipation, Regards Bernie Talk Topic about project #bernie-bbq
OK, success at last! "{$"acState$":{$"on$":true}}" instead of "{"acState":{"on":TRUE}}" does work with the following sURL: 'https://home.sensibo.com/api/v2/pods/{deviceID}/acStates?apiKey={API_key_supplied_by_Sensibo}' I can now control my AC from a RPI 2 utilisng Codesys and its webClient. Usernames or passwords are not required. I modified the BasicAuthWebClient function as shown.
The saga continues: So I can now send a Json string to Sensibo the from Codesys webClient if I send: "{$"acState$":{$"on$":true}}" instead of "{"acState":{"on":TRUE}}" But Sensibo does not respond to this string !!!! Apparently using \ instead of the $ is recognised by Sensibo, but Codesys rejects the \ in the WSTRING. Any (polite)suggestions would be gratefully received. Bernie_BBQ
Just updating my understanding till now. The WebClient wsPostValue ie'load' required to Post instructions is written as a WSTRING. In Codesys, WSTRINGS must be written between double quote marks " ". However, Jason also requires the use of double quotes around "names" & "values". The clash is, Codesys will not accept a double quote mark inside a WSTRING and so a valid Json command cannot be written as a WSTRING in the Codesys WebClient. I read on one post that placing a $ sign before the inner double...
Hi, I have being attempting to send the instructions "ON' & "OFF' to my air-conditioner utilising the Codesys WebClient and a Sensibo controller. Sensibo's RESTful API is built on HTTP and it accepts and returns JSon in the HTTP body. Whilst I can log into the Sensibo site https://home.sensibo.com/api/v2/users/me/pods?fields=*&apiKey={api_key}utilising with my API key issued by Sensibo, I cannot send the ON/Off instructions. I believe this is meant to happen via the wsPostValue : WSTRING(100) in...
WebClient Project for RPI -VisuInputs Errors
WebClient Issues Raspberri Pi
WebClient Issues Raspberri Pi
WebClient Issues Raspberri Pi
WebClient Issues Raspberri Pi
I cannot get the IIoT Libraries to work with the WebClient Example ... any ideas would be appreciated as the support ticket costs more than the library !
I cannot get that example project to work even with a licensed copy of the IIoT Libraries. The hTTPClient is not found in the library utilising Codesys 3.5.16.40 (or 3.5.14.0 for that matter either). Any help will be greatly appreciated as that was an expensive outlay for a hobbyist. Bernard
Hi, I purchased the IIoT Libraries SL specifically to obtain the promised HTTP Client but even when successfully licensed the HTTPClient function (which I needed) does not get recognised. The β¬59.50 investment was high for a hobbyist like myself so I am more than a little disappointed. The example project HTTPClient simple does not identify / accept the now purchased library. I am new at this. Any help would be much appreciated. Regards BBQ Talk Topic about project #codesys-example/http-client-e...
I am fairly new at this but when I tried soft motion I kept getting out of date libraries ... I eventually gave up on it :)
Hi, Thx for your time but I have decided to simplify the software side and design an electronic interface for the 4-20 mA signal. I will use 4 digital I/O outputs to drive 4 constant current sources (1mA) (2mA)(4mA) (16mA) utilising opto-couplers for voltage isolation. These I will then combine to give me a 4-20mA output with a 1 mA resolution which is more than satisfactory for my application. I will select the combination of outputs required from simple logic on the PLC side. In fact, this will...
Hi, I am a real newbie at this ... I have spent weeks getting the RTU modbus working, now I just need to get the PWM working so I can use that signal to obtain a 4-20mA signal to drive a triac on my solar power diverter (the engineering side is easy... but I struggle with the software). Codesys highlights the problems I have, missing licences & and an identity problem with SoftPWM I suspect. I think the problem may be obvious to you ... but it certainly is not obvious to me where /how I get the missing...
Hi all, Can anyone help me set this up in Codesys 3.5 SP16 Patch 2 (64 bit) as even though I have downloaded & installed the gpiomod package, I seem to be missing something in installing the FB - I am a novice. Thx Talk Topic about project #gpio-mod
Hi, I do not understand how to install / run /setup the SoftPWM function block on my Codesys v3.5 SP16 Patch 2 (64-bit) with a RPI 2. Can anyone point me in the right direction ? Thx