Beiträge anzeigen

Diese Sektion erlaubt es ihnen alle Beiträge dieses Mitglieds zu sehen. Beachten sie, dass sie nur solche Beiträge sehen können, zu denen sie auch Zugriffsrechte haben.


Themen - david

Seiten: [1]
1
Because of all the problems with the weather blocks: not supported, no free accounts, especially change of data, or only json...
I decided it would be much easier to use node-red to get the weather data and to send it to the PLC via spidercontrol web variables.
There are several nodes for different weather providers (openweathermap, darksky...)
Attached an example node-red flow where I get the weather data from DarkSky and send it to my Phoenix Contact plc. I keep using the Oscat_Yahoo struct inside the PLC (set as PDD), so in the plc I only had to disable the Yahoo weather function block call.

[gelöscht durch Administrator]

2
I wanted to have an easy, fast and secure acces to the webvisit visualisation at home from my mobile.
I dit it with the aid of apache reverse proxy running on a raspberry pi.
https://github.com/daviddhauwe/webs

3
Modulentwicklung / Energy datalogger emoncms.org
« am: 25. September 2018, 21:04:19 »
Hi, I found the DLOG blocks very usefull. I made one for emoncms.org, a datalogging and visualisation system (including app) for energy consumption from openenergymonitor.org. Unfortunatelly not free any more to use their servers, but you can install the software on a raspberry pi.
I also made a UDINT logger block. Exports from pcworx are included.

[gelöscht durch Administrator]

4
Can any body of the developpers explain how is the development of the source code organised for the different platforms?
For each FB, there is code that is identical, some have minor changes, some is completely different. How is this maintained? Is it a pure manual job, is there some kind of sourc code control system involved? Is there some conversion tool?
How is the documentation done?
I am interessed because I face the same problem: I need to convert/develop a specific library for pcworx and twincat.

Any help is apreciated

5
I've added Dutch translations for days and months. Also Belgian official hollidays in Dutch, French and German.
Attatched the export files for pcworx.
Following types must be changed to ARRAY [1..4]: oscat_MONTHS, oscat_MONTHS3, oscat_WEEKDAYS, oscat_WEEKDAYS2   
oscat_LOCATION_ELEMENTS   : ARRAY [1..7] OF INT;

[gelöscht durch Administrator]

6
PC WorX / SMTP_CLIENT Array index out of range
« am: 30. Oktober 2013, 15:37:41 »
When using SMTP_CLIENT (network lib 121) on an ILC 170 the PLC went to stop giving an Array index out of range error.
I was able to make a screenshot, but there was not much time to debug.
Any idea what could be the problem? I was not able to reproduce the problem.

[gelöscht durch Administrator]

7
Modulentwicklung / Module Development / Heating start time
« am: 25. November 2011, 20:03:43 »
I want to have at 7h in the morning a temperature of 21°. At night, the heating only switches on when it is colder than 16°. Does anyone have an idea how to calculate the optimal start time for the heating? This is to have exactly 21° at 7h.The goal is not to have cold in the morning and also not to start to early with heating and wasting energy.
Thanks.

8
DATE_ADD gives strange results when using negative days or weeks.
This is because the conversion from int to udint, which interpretes the sign bit wrong.
DATE_ADD := UDINT_TO_DATE(DATE_TO_UDINT(IDATE) + INT_TO_UDINT(D + W * 7) * UDINT#86400);
Here is my proposal:
day := D + W * 7;
IF day >= 0 THEN
    DATE_ADD := IDATE + INT_TO_UDINT(day) * UDINT#86400;
ELSE
    DATE_ADD := IDATE - INT_TO_UDINT(ABS(day)) * UDINT#86400;
END_IF;

9
PC WorX / Large mail attachment
« am: 27. Mai 2011, 15:36:56 »
On an ILC170, when I sent a mail with a large attachement (6MB), after about 10min, I get an error: ERROR_C = 0000FF00; ERROR_T := 02. At this point, about 5425707 of 6768271 bytes are sent. At the mail server I get the following message in the maillog:
postfix/smtpd[24422]: lost connection after DATA (5425707 bytes) from unknown[plc_ip]
postfix/smtpd[24422]: disconnect from unknown[plc_ip]
When I sent a mail with the Phoenix Contact IT library with this file attached, it works.

 

Seiten: [1]