If production is to take place without MKTerminal, for example because no order data or material consumption can be recorded, this function block allows the blocking of production to be bypassed.
VAR_INPUT BPTtoPLC_Heartbeat : BOOL; (* Output from MK|Ware: heartbeat signal from MKTerminal *) BPTtoPLC_Enable : BOOL; (* Output from MK|Ware: MKWare signal to authorize production *) TerminalBypass_Enable : BOOL; (* Bypass signal that allows production without a terminal *) Pulsduration: TIME : = t#500ms; (* Duration of heartbeat pulse*) TimeoutTime:TIME : = t#10s; (* Timeout length *) END_VAR
VAR_OUTPUT EnableMachine: BOOL; (* Signal that enables the work center to be operated without //MKTerminal//. *) StopAfterCycle: BOOL; (* Stop production after the currently running cycle. *) BPTfromPLC_Heartbeat: BOOL; (* Output to MK|Ware: heartbeat signal. *) Warning_TerminalHeartbeatMissing: BOOL; (* Warning when heartbeat is not received from //MKTerminal//. *) Error: STRING; (* Description of the error for error analysis *) ErrorID: INT; (* Error ID for error analysis *) END_VAR
BPtoPLC_Heartbeat | BPtoPLC_Enable | TerminalBypass_Enable | EnableMachine | |
---|---|---|---|---|
blinking | TRUE | TRUE | TRUE | |
blinking | TRUE | FALSE | TRUE | |
blinking | FALSE | TRUE | FALSE | |
blinking | FALSE | FALSE | FALSE | |
FALSE | TRUE | TRUE | TRUE | |
FALSE | TRUE | FALSE | FALSE | |
FALSE | FALSE | TRUE | TRUE | |
FALSE | FALSE | FALSE | FALSE |