MKWare_InsertValuesAnonymous

The function block transmits measurement values to MK|Ware for storage in the database. It enables anonymous recording of values for statistical purposes.

VAR_INPUT
    PDAtoPLC_ValuesInserted:  BOOL;   (* Output from MK|Ware: variable is set to TRUE when a product serial number has been generated. *)
 
    Enable:                   BOOL  := TRUE;    (* Reset all signals. *)
    InsertValues:             BOOL;             (* Start signal to insert a new article. *)
    ProductDesignation:       STRING;           (* Product designation *)
    bValue[1..8]:             BOOL;             (* Value 1 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_InsertValues:          BOOL;     (* Output to MK|Ware: If the status is TRUE, a ProductSN should be generated. *)
    PDAfromPLC_ProductDesignation:    STRING;   (* Output to MK|Ware: Contains the current 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. *)
    ValuesInserted:                   BOOL;     (* Pass-through signal from MKWare. *)
    CopyData:                         BOOL;     (* Start signal for copying data from MKWare to PLC variables *)
    ResetData:                        BOOL;     (* Start signal to reset MKWare data to prevent old values from being present before sending *)
    Error:                            STRING;   (* Description of the error for error analysis *)
    ErrorID:                          INT;      (* Error ID for error analysis *)
END_VAR