Table of Contents MKWare_ProcesstimeByMKWare_Amount VAR_INPUT VAR_OUTPUT Example of a function block Book Creator Add this page to your book Book Creator Remove this page from your book Manage book(0 page(s)) Help MKWare_ProcesstimeByMKWare_Amount This function block sends start and stop signals of a process to MK|Ware. The time difference between the signals is measured there to generate the process time. In addition, the number of OK and NOK products is transmitted. If the PLC does not provide the two start and stop signals, only the duration of the applied start signal can be used. The configuration in the MKSupervisor determines how the process time is generated. VAR_INPUT VAR_INPUT Process_Start: BOOL; (* Start signal of the process *) Process_Stop: BOOL; (* Stop signal of the process *) Amount_OK: BOOL; (* Amount of OK products *) Amount_NOK: BOOL; (* Amount of NOK products *) Cancel: BOOL; (* Signal for a canceled process *) ProductDesignation: STRING; (* Optional: product designation *) Triggerduration: TIME:=T#500MS; (* Extension time for the trigger *) DelayTime: TIME:=T#300MS; (* Delay time after changes to NOK signals *) END_VAR VAR_OUTPUT VAR_OUTPUT PTfromPLC_Start: BOOL; (* Output to MK|Ware: signals the start of a process *) PTfromPLC_Stop: BOOL; (* Output to MK|Ware: signals the end of a process *) PTfromPLC_AmountOK: BOOL; (* Output to MK|Ware: amount of OK products *) PTfromPLC_AmountNOK: BOOL; (* Output to MK|Ware: amount of NOK products *) PTfromPLC_Cancel: BOOL; (* Output to MK|Ware: signals a canceled process *) PTfromPLC_ProductDesignation: STRING; (* Output to MK|Ware: product designation *) Error: STRING; (* Description of the error for error analysis *) ErrorID: INT; (* Error ID for error analysis *) END_VAR Example of a function block