34
11.11.2 Loading a recipe
The following example code shows how process parameters can be loaded to the internal workpiece recipe.
// Load workpiece recipes in Structured Text (ST)
IF bLoad = TRUE THEN
iStep
:= 10;
END_IF
CASE iStep OF
10:
WorkpieceNo
:= 3;
// Load third workpiece recipe
iStep
:= 20;
// Jump to the next step
20:
ControlWord
:= 1;
// Begins with the handshake
iStep
:= 30;
// Jump to the next step
30:
IF StatusWord.12 THEN
// Queries the bit DataTransferOK=TRUE from StatusWord,
// Response of the product to transferred data
ControlWord
:= 0;
// Reset the ControlWord
iStep
:= 40;
// Jump to the next step
END_IF;
40:
IF NOT StatusWord.12 THEN
// Query for completion of the data transfer,
// DataTransferOK = FALSE
iStep
:= 0;
//Handshake is completed,
// Parameters from the third recipe have been taken over into the current process parameters.
END_IF;
END_CASE
INSTALLATION AND OPERATING INSTRUCTIONS:
GEP2000IL-03
DDOC01219 / b
EN / 2021-12-20
Zimmer GmbH • Im Salmenkopf 5 •
77866 Rheinau, Germany •
+49 7844 9138 0 • www.zimmer-group.com