4plc functionality – Lenze E94AxPExxxx User Manual

Page 50

Advertising
background image

4

PLC functionality

4.3

Programming notes

50

Lenze · 9400 Servo PLC· Reference manual · DMS 4.0 EN · 11/2013 · TD05/06

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

Procedure for creating user-defined codes

1. Import the parameter list of »PLC Designer« to »Engineer« before exiting »Engineer«.
2. Comply with the following order

(see also

Completing the PLC project

( 64)

)

• Translate PLC project in »PLC Designer«, create boot project and then save
• Import the parameter list from »PLC Designer« to »Engineer«
• Save the project in »Engineer«

3. Creation of the codes with the parameter manager or Pragma instruction. Decide for one of the

two options:

How to create codes in the parameter manager

( 50)

How to create codes with Pragma

( 50)

How to create codes in the parameter manager

1. Open the parameter manager (Resources tab).
2. Click the menu command InsertList…
3. Choose the Variables type and enter a name. (for parameters on ARRAYs, the instance type

has to be selected).

The parameter list appears in the navigation window of the Parameter Manager.

4. To create a new user code, select the menu command InsertRow.
5. Enter a code number.

User codes from C03000 (0x0BB8) onwards can be used.

How to create codes with Pragma

1. Create the Pragma in the declaration editor of the POU.

The appendix contains a

Sample collection for code creation with Pragma instruction

( 76)

2. Go to »PLC Designer« and select the menu command ProjectClean all.
3. Select the menu command ProjectRebuild all.

During the rebuild process, »PLC Designer« automatically inserts the new parameter list

into the parameter manager.
If now error messages are generated that refer to errors during the Pragma creation, delete

the new parameter list in the Parameter manager. For this purpose, right-click the Context

menu Delete list.
Rebuild the PLC project after "cleaning".

Danger!

The creation of codes that access individual bits of variables is not permissible for the

»9400 ServoPLC«.

Advertising