FUNCTION_BLOCK RQSTR_TGEN

EVENT_INPUT
    REQ WITH TNO; (* Normal Execution Request *)
END_EVENT
EVENT_OUTPUT
    GINIT WITH GQI; (* Generated INIT event *)
    GREQ WITH GQI; (* Generated REQ event *)
END_EVENT
VAR_INPUT
    TNO : UINT; (* Test Number *)
END_VAR
VAR_OUTPUT
    GQI : BOOL; (* Generated QI event qualifier *)
END_VAR

An instance of this FB type is used for the generation of tests for an instance of the REQUESTER FB type, as illustrated in the AGENTS_LOGL and AGENTS_LOGR system configurations. If the TNO (Test Number) input is outside the range {1..6} when an event occurs at the REQ input, no action is taken. Otherwise, the combination of a GQI (Generated QI) output and event are generated corresponding to a service primitive as specified in the table below.

TNO Service
Primitive
GQI Output
Event
1 INIT- FALSE GINIT
2 INIT+ TRUE GINIT
3 REQ+ TRUE GREQ
4 REQ- FALSE GREQ
5 INIT+ TRUE GINIT
6 INIT- FALSE GINIT