This Function Block (FB) type provides a template for construction of Simple FB Types.
The operation of an instance of this FB type is defined by the Execution Control Chart (ECC) shown above and the algorithms shown below.
ALGORITHM INIT IN ST : (* Initialization Algorithm *) QO := QI; IF QI THEN STATUS := 0; //OK OUT := ""; ELSE STATUS := 1; //INHIBITED END_IF END_ALGORITHM
ALGORITHM REQ IN ST : (* Normally Executed Algorithm *) QO := QI; IF QI THEN STATUS := 0; //OK OUT := IN; ELSE STATUS := 1; //INHIBITED END_IF END_ALGORITHM