The function blocks transfers the GUID of the current product to MK|Ware and receives ProductDesignation or ProductSN in return.
VAR_INPUT
PDAtoPLC_GotItem: BOOL; (* Output from MK|Ware: variable is set to TRUE when a ProductSN has been read. *)
PDAtoPLC_ProductSN: STRING; (* Output from MK|Ware: Contains the ProductSN for the product. *)
PDAtoPLC_ProductDesignation: STRING; (* Output from MK|Ware: Contains the current product. *)
Enable: BOOL := TRUE; (* Reset all signals. *)
GetItem: BOOL; (* Start signal to request a new article. *)
ProductGUID: STRING; (* ProductGUID *)
TimeoutTime: TIME :=t#10S; (* Value for timeout. *)
DelayTime: TIME :=t#300ms; (* Value for delay time. )
END_VAR
VAR_OUTPUT
PDAfromPLC_GetItem: BOOL; (* Output to MK|Ware: If the status is TRUE, a ProductSN should be read. *)
PDAfromPLC_ProductGUID: STRING; (* Output to MK|Ware: Contains the unique ID for MK|Ware internal identification. *)
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. *)
GotItem: BOOL; (* Pass-through signal from MKWare. *)
ProductDesignation: STRING; (* Pass-through signal from MKWare. *)
ProductSN: STRING; (* Pass-through signal from MKWare. *)
Error: STRING; (* Description of the error for error analysis *)
ErrorID: INT; (* Error ID for error analysis *)
END_VAR