BECKHOFF EL7037 User Manual

Page 119

Advertising
background image

Commissioning

Fig. 132: Changing the PLC path

• Under NC configuration an EL7041 is already linked to the NC. To change the link or add additional

devices proceed as described under „Integration into the NC configuration [

}

 104]“.

The PLC program is configured as follows. The libraries TcMC.lib and TcNC.lib must be integrated (see Fig.
Required libraries”).

Fig. 133: Required libraries

Subsequently certain global variables are declared (see Fig.5). The data types PLCTONC_AXLESTRUCT
and NCTOPLC_AXLESTRUCT deal with the communication between the PLC and the NC.

Fig. 134: Global variables

Once the global variables have been declared, programming can commence. Start with declaring local
variables (see Fig. „Local variables“).
MC_Direction is an enumeration type that specifies the direction of travel for the block MC_MoveVelocity,

EL70x7

119

Version 1.0

Advertising
This manual is related to the following products: