2 creating user-defined codes, Creating user-defined codes, 4plc functionality – Lenze E94AxPExxxx User Manual
Page 49

Lenze · 9400 Servo PLC· Reference manual · DMS 4.0 EN · 11/2013 · TD05/06
49
4
PLC functionality
4.3
Programming notes
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
4.3.2
Creating user-defined codes
Memory area
For the 9400 servo inverter, all codes are assigned to different ranges, see table below.
• Within the range C03000 ... C08999, max. 196 kB can be created as user codes in the parameter
manager (register Resources).
• The range C03000 ... C05999 is used for the first instance codes of the Lenze function blocks.
• In order to avoid collisions, user codes must be created as of C06000 (unless they are first
instances).
Different kinds of creation
The user-defined codes can be directly created in the parameter manager or via Pragma instruction.
When being compared, both options show the following advantages and disadvantages:
Assignment
Range
Contents
Firmware
C00000 ... C02999
Codes of the standard device
TA
C03000 ... C03099
Basic codes of the technology application
C03100 ... C03499
Multiplexer codes of the technology application
Libraries
C03500 ... C03999
Codes of function blocks used
C04000 ...
C05900 ... C05999
LenzeDevice9400
User
C06000 ... C08999
Free field for user codes
Reserve
C09000 ... C12999
Modules
C13000 ... C13999
Extension module/communication module in module slot MXI1
Modules
C14000 ... C14999
Extension module/communication module in module slot MXI2
Modules
C15000 ... C15999
Safety module in module slot MSI for safety engineering
Reserve
C16000 ...
Creation of codes ..
Advantage
Disadvantage
... in the parameter manager
Less memory requirements than the
Pragma instruction
Bad clarity due to many columns in
the parameter manager
... via Pragma instruction
Automatic creation of the parameter
list
Complex definition in the declaration
part of the Pragma instruction