Whenever a work center consumes or receives a starting material, the function module reports the corresponding quantity to MK|Ware. Via the MKSupervisor configuration a direct transfer to the higher-level ERP system is carried out.
Examples:
VAR_INPUT Trigger: BOOL; (* Trigger variable to start the execution *) Reset: BOOL; (* Trigger signal reset *) 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 MatConfromPLC_Trigger: BOOL; (* Output to MK|Ware: OK or NOK trigger signal for a product leaving the work center at the exit point *) MatConfromPLC_Amount: INT; (* Output to MK|Ware: Quantity of material consumed *) Error: STRING; (* Description of the error for error analysis *) ErrorID: INT; (* Error ID for error analysis *) END_VAR