Block that implements function "Occupancy evaluation" from VDI 3813 [1, section 6.5.2, p. 32 - 33].
"The function Occupancy evaluation (RA-FL section 6, column 1; informative function block Figure 23) evaluates the output information received from Presence detection and from operator functions (Signal presence) in order to determine the occupancy state in a room for all further application functions. Various options of room check-in and check-out can thus be implemented."[1, section 6.5.2, p. 32 - 33]
With this test case ist possible to check both evaluation methods. The method is chosen via the parameter of occupancy evaluation. Beside the application function there are two boolean signal sources. One presents an operator control and the other a sensor signal. The sensor signal is pre processed by the function presence detection. The activation times are different. The operator signal comes first.
In case 1 only P_AUTO should be evaluated. Because of that the first signal change does not change anything. The second change that comes from the sensor triggers the change of the evaluated output signal.
In case 2 both signals should be evalueated. But P_MAN is evaluated only if P_AUTO is TRUE. Because of this the output should be activated after both signals are active.