30
11.5 Quickstart Basic Parameters
In the following example, you see the first initialization of the product and the transmission of the process parameters.
// Initialization of the product,
// Initial move command
// = EasyStartUp Example
IF bStart = TRUE THEN
iStep
:= 10;
END_IF
CASE iStep OF
10:
IF StatusWord.6 THEN
// Query for PLCActive bit in the StatusWord
ControlWord
:= 1;
// Sends the DataTransfer bit in the ControlWord for initialization
iStep
:= 20;
// Jump to the next step
END_IF
20:
IF StatusWord.12 THEN
// Query for DataTransferOK bit in the StatusWord
ControlWord
:= 0;
// Reset of the initialization
iStep
:= 30;
// Jump to the next step
END_IF
30:
IF NOT StatusWord.12 THEN
DeviceMode
:= 100;
// Command to select the universal mode
ControlWord
:= 1;
// Data transfer to the product
iStep
:= 40;
// Jump to the next step
END_IF
40:
IF StatusWord.12 THEN
// Query for DataTransferOK bit in the StatusWord
ControlWord
:= 0;
// Reset of the ControlWord
iStep
:= 50;
// Jump to the next step
END_IF
50:
IF NOT StatusWord.12 THEN
ControlWord
:= 512;
// Handshake is completed,
// Product moves to WorkPosition (0x0200 or 512(decimal) = MoveToWork)
iStep
:= 100;
END_IF
100:
;
// Continue with the program
END_CASE
INSTALLATION AND OPERATING INSTRUCTIONS:
LWR50L-24/-25
DDOC01073 / -
EN / 2022-07-20
Zimmer GmbH • Im Salmenkopf 5 •
77866 Rheinau, Germany •
+49 7844 9138 0 • www.zimmer-group.com