Simulation to check the behaviour of the function model of"Precipitation detection" from VDI 3813 [1, section 6.1.9, p. 17].
"The sensor function Precipitation detection (RA-FL section 2, column 8; informative function block Figure 10) provides information on rain, snow or other forms of precipitation. This information is used, e. g., as input information for protection functions of the sunshade or for the closing of window casements." [1, section 6.1.9, p. 17]
The calibration parameter PAR_CAL is used to choose the right contact logic.
By default PAR_CAL ist true which leads to a positive logic. That means if precipitation is detected R is true and R_ACT is set to true. If no precipitation is detected R is false and R_ACT is set to false.
If PAR_CAL is set to false the logic is complementary/inverted. If precipitation is detected R is false and R_ACT is set to true etc..
The simulation contains a boolean signal source to imitate a precipitation sensor. The signal is passed to a converter for changing the signal type from Modelica standard type to VDI 3813 semantic type. From there the signal goes to the sensor function, which converts the measured signal to an output signal. Because the positive logic has been chosen, the form of the output signal should be similar to the boolean input pulse.