Hi Martijn,
if you mean 2 separate Raspberry Pi with Unipi 1.1 on top of each other, then yes, it is possible. It is a question of getting data from one device to the other. For this purpose you can use:
RDC function block (see example 0202-12)
REST API of REXYGEN (see example 0302-01)
Modbus TCP connection (see example 0402-01)
A "good execution rate" always depends on the project. 20 milliseconds might be too long (controlling RPM of a motor or detecting pushbutton presses or counting pulses from a flowmeter) or way too short (temperature control).
It's the responsibility of the system engineer/designer to find the appropriate timing.
As for Modbus, we typically use twice the rate of the task which is using the data provided by the Modbus driver.
thank you for your question. It would be much more easier to answer if you can share project files which shows the example of such JSON string and function block settings.
If you want to access JSON array, just use "[x]" notation, i.e. weather[0].main (means field "main" in 1st item of "weather" array) - see "0302-04 OpenWeatherMap API" example.
Hello Martijn,
this will save the total number of run-minutes to database everytime the RUN input drops to OFF (FALSE):
0_1576604316928_rexygen-hour-meter-database.png
Hi,
this is possible. Put the PROJECT block into your project main file (the one with EXEC block) and tick the SourcesOnTarget parameter.
0_1575385871267_rexygen-source-files-on-target.png
Hi Kris,
you are right, it is necessary to force the valve to fully closed position once in a while. The SRTF function block is not the best one for your needs. I'd go for the ATMT state machine or simply use an ISSW switch to send logic 1 to the DN (CLOSE) input.
Hi Mike,
I see. In that case the simplest approach is to use the TSE block (three state element), which moreorless combines two comparators with hysteresis.
0_1571645853248_rexygen_tse_cooling_heating.png
not sure if I understand correctly what is the issue. Can you provide more information?
Can you share screenshot of the project part and a sketch of desired behaviour?
Is the issue about setting binary inputs sequentially which produces more logs to be written?
thank you for your question. Custom made solution is far beyond our "free of charge" support. However here are some function blocks which might help you achieve your goal:
TIMER_ - Multipurpose timer BINS – Controlled binary sequence generator EDGE_ - Falling/rising edge detection in a binary signal