![Zimmer Match LWR50L-21 Series Скачать руководство пользователя страница 44](http://html1.mh-extra.com/html/zimmer/match-lwr50l-21-series/match-lwr50l-21-series_installation-and-operating-instructions-manual_3777360044.webp)
44
11.14 Recipe examples
11.14.1 Save recipe
The following example code shows how process parameters can be stored in the internal workpiece recipe.
// Store tool workpiece recipes in Structured Text (ST)
10:
DeviceMode
:= 82;
// Assignment of desired process parameters
WorkpieceNo
:= 3;
// Recipe is to be stored as the third workpiece recipe
PositionTolerance
:= 50;
GripForce
:= 50;
DriveVelocity
:= 50;
BasePosition
:= 100;
ShiftPosition
:= 2000;
TeachPosition
:= 4000;
WorkPosition
:= 4000;
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 StatusWord.12 THEN
// Query for completion of the data transfer,
// DataTransferOK = FALSE
ControlWord
:= 2;
// Handshake is completed,
// storage starts here via the WritePDU bit in the ControlWord
iStep
:= 50;
// Jump to the next step
END_IF;
50:
IF StatusWord.12 THEN
// Queries the DataTransferOK = TRUE bit from StatusWord
ControlWord
:= 0;
// Reset the ControlWord
iStep
:= 60;
// Jump to the next step
END_IF;
60:
IF NOT StatusWord.12 THEN
// Query for completion of the data transfer,
// DataTransferOK = FALSE
// Do other things...
// Storage is completed
END_IF;
INSTALLATION AND OPERATING INSTRUCTIONS:
LWR50L-21/LWR50L-22
DDOC01071 / b
EN / 2021-11-25
Zimmer GmbH • Im Salmenkopf 5 •
77866 Rheinau, Germany •
+49 7844 9138 0 • www.zimmer-group.com