MKWare_EOL

In most cases, a unit has at least two exit points: one for parts that are OK and one for parts that are not OK (NOK). If a function can output a product as OK or NOK, it must be configured as an EOL output point. Multiple error reason variables can be processed with one trigger. Multiple parallel error reasons are also possible. If the number is greater than 1, the error reason is adopted for the corresponding number of products.

This function block processes the signals for the PLC exit points.

VAR_INPUT
	Trigger             : BOOL;             (* Trigger variable to start the execution *)
	Reset               : BOOL;             (* Trigger signal reset *)
	NOKSpecification    : DWORD:=16#0;      (* The NOK error reason as word, which is processed bit by bit. *)
	Amount              : INT:=1;           (* Number of products that leave the work center *)
	Triggerduration     : TIME:=T#500MS;    (* Extension time for the trigger *)
	DelayTime           : TIME:=T#300MS;    (* Delay time after changes in the number of OK/NOK signals *)
END_VAR
VAR_OUTPUT
	EOLfromPLC_Trigger:           BOOL;     (* Output to MK|Ware: OK or NOK trigger signal for a product leaving the work center at the exit point *)
	EOLfromPLC_NOKSpecification:  DWORD;    (* Output to MK|Ware: error reason of the product if it is NOK *)
	Error:                        STRING;   (* Description of the error for error analysis *)
	ErrorID:                      INT;      (* Error ID for error analysis *)
END_VAR