MKWare_AddItemSNValues

As in the MKWare_AddItemSN function block, the PLC creates a ProductSN and stores new product data for this product in the MK|Ware database.

VAR_INPUT
    PDAtoPLC_ItemAdded:       BOOL;             (* Output from MK|Ware: variable is set to TRUE when a product serial number has been generated. *)
 
    Enable:                   BOOL  := TRUE;	(* Reset all signals. *)
    AddItem:                  BOOL;             (* Start signal to request a new ProductSN. *)
    ProductDesignation:       STRING;           (* Product designation *)
    ProductSN:                STRING;           (* Contains the ProductSN for the product. *)
    bValue1:                  BOOL;             (* Value 1 of type BOOL *)
    bValue2:                  BOOL;             (* Value 2 of type BOOL *)
    bValue3:                  BOOL;             (* Value 3 of type BOOL *)
    bValue4:                  BOOL;             (* Value 4 of type BOOL *)
    bValue5:                  BOOL;             (* Value 5 of type BOOL *)
    bValue6:                  BOOL;             (* Value 6 of type BOOL *)
    bValue7:                  BOOL;             (* Value 7 of type BOOL *)
    bValue8:                  BOOL;             (* Value 8 of type BOOL *)
    iValue1:                  INT;              (* Value 1 of type INT *)
    sValue1:                  STRING;           (* Value 1 of type STRING *)
    TimeoutTime:              TIME  :=t#10S;    (* Value for timeout. *)
    DelayTime:                TIME  :=t#300ms;  (* Value for delay time. )
END_VAR
VAR_OUTPUT
    PDAfromPLC_AddItem:               BOOL;     (* Output to MK|Ware: If the status is TRUE, a ProductSN will be generated. *)
    PDAfromPLC_ProductDesignation:    STRING;   (* Output to MK|Ware: Contains the current product. *)
    PDAfromPLC_ProductSN:             STRING;   (* Output to MK|Ware: Contains the ProductSN for the product. *)
    PDAfromPLC_bValue[1..N]:          BOOL;     (* Output to MK|Ware: This variable transfers product data of the type BOOL (e.g. OK/NOK). *)
    PDAfromPLC_iValue1:               BOOL;     (* Output to MK|Ware: This variable transfers product data of type INTEGER (e.g. nest number). *)
    PDAfromPLC_sValue1:               STRING;   (* Output to MK|Ware: This variable transfers product data of the type STRING (e.g. recipe name). *)
 
    TimeoutError:                     BOOL;     (* A TimeoutError is triggered after a specified period of time has elapsed. *)
    Busy:                             BOOL;     (* Is TRUE after start signals and FALSE after an abort or the return message from MK|Ware. *)
    ItemAdded:                        BOOL;     (* Pass-through signal of MKWare. *)
    Error:                            STRING;   (* Description of the error for error analysis *)
    ErrorID:                          INT;      (* Error ID for error analysis *)
END_VAR