Simulation to check the behaviour of the function model of "Presence detection" from VDI 3813 [1, section 6.1.2, p. 10-11].
"The sensor function Presence detection (RA-FL section 2, column 1, see Section 7.3, Bild 61; informative function block Figure 3) automatically detects the presence of persons in the room and passes the output information of either the “present” or the “absent” state to those application functions whose response is determined by the room occupancy state. Due to the use in connection with lighting functions, the output information must be generated without any delay when the status of the evaluation unit changes." [1, section 6.1.2, p. 10-11]
The simulation contains a boolean signal source to imitate a presence 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 two presence detection functions. The holding of the presence state is activated in one of the functions and deactivated in the other. If there is an input pulse that is shorter than the holding time, one output should follow the input without time delay, the other output should stay in the "presence detected" state as long as the holding time.