Simulation to check the behaviour of the function model of "Window monitoring" from VDI 3813 [1, section 6.1.3, p. 11-12].
"The sensor function Window monitoring (RA-FL section 2, column 2; informative function block Figure 4) provides information on the open/closed state of, e. g., a window casement, a sash, a group of casements, etc., in terms of the binary states “open ” or “closed ”." [1, section 6.1.3, p. 11-12]
The calibration parameter PAR_CAL is used to choose the right contact logic.
By default PAR_CAL ist true which leads to a negative logic. That means if the window is closed B is true and B_WINDOW is set to true. If the window is open B is false and B_WINDOW is set to false.
If PAR_CAL is set to false the logic is complementary/inverted. If the window is closed B is false and B_WINDOW is set to true etc..
The simulation contains a boolean signal source to imitate a window 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 window monitoring function, which converts the measured signal to an output signal depending on the chosen parameters of the function. By default the negative logic is activated. A closed window is represented by true signal of the source which leads to a false signal of the window monitoring. For an open window everything is complementary.