
An instance of this Function Block type converts an output event of a function block instance into the textual representation of the corresponding service primitive as described in IEC 61499-1. The input and output variables of this block, and the algorithm for mapping inputs to outputs, are defined as follows:
VAR_INPUT SRCI : WSTRING; (* Source Name, e.g., "DEV1.RES2.FB3" *) ENAME : WSTRING; (* Event output name from reporting FB, e.g., "INITO" *) QI : BOOL; (* QO output from status reporting FB *) STATUS : WSTRING; (* STATUS report, e.g., "OK" *) END_VAR VAR_OUTPUT SRC : WSTRING; (* Pass-through of SRCI *) PRIM : WSTRING; (* Service Primitive, e.g., "INITO+(OK)" *) END_VAR ALGORITHM REQ IN Java : (* Normally executed algorithm *) SRC.value = SRCI.value; PRIM.value = ENAME.value + (QI.value ? "+(" : "-(") + STATUS.value + ')'; END_ALGORITHM