5 program structure in the »plc designer, 1 control configuration, 2 program organisation units – Lenze PLC Designer R3-x User Manual

Page 42: Control configuration, Program organisation units, Program structure in the »plc, Designer, Working with the sample projects

Advertising
background image

Working with the sample projects

Sample project with "Table positioning" application - TablePositioning

42

Lenze · Commissioning of Lenze drives · 1.3 EN - 06/2014

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

7.2.5

Program structure in the »PLC Designer«

How to proceed:

1. Open the desired sample project (CAN or EtherCAT) in the »PLC Designer«.
2. Load the project to the Controller and Go online.

7.2.5.1

Control configuration

CAN

• The CAN master (ID = 127) is the control section of the system configuration
• The controller (CAN node ID = 5) is attached below the CAN master.

• Below the controller, the axis data are available in the form of an additional node.

• Two PDOs for CAN-Input and CAN-Output are used, respectively.
• The transmission mode is sync-controlled (10 ms).

You can find further details on the extension of the control configuration with CAN and EtherCAT in

the following section:

Extending sample projects - adding devices

( 51)

EtherCAT

• The EtherCAT master is the control section of the system configuration
• The controller (station ID = 1001) is attached below the EtherCAT master.

• Below the controller, the axis data are available in the form of an additional node.

7.2.5.2

Program organisation units

"Main" program

• The "Main (PRG)" program is the basic program for processing the program sequences:

initialisation of the controller and selection of the different modes.

[7-5]

Example: Main (PRG)

Advertising