Drive plc developer studio, Resources, 6 accessing arrays via subcodes – Lenze DDS v2.3 User Manual
Page 206

Drive PLC Developer Studio
Resources
8-16
l
DDS EN 2.3
Example: Instances of the function block L_DIGDEL of the 9300 Servo PLC
Variable name
L_DIGDEL1
L_DIGDEL2
Setting range
Lenze
byFunction
C0720
0 ... 2
2
y
C0725
0
wDelayTime
C0721
C0726
0.001 ... 60.000 s
1.000
Tip!
Parameter variables can only be read in the PLC program, not written.
Example:
LD L_DIGDEL1.byFunction
ST variable_x
The VAR CONSTANT RETAIN variable can only be accessed via the assigned code.
•
Use the FB L_ParWrite from the function library ” LenzeDrive.lib” to write codes in PLC
programs.
Accepting all Lenze codes of a function block
Open the dialog box
Instance Parameter Manager and click the button First instance to assign the
associated code only to the selected variable.
To accept all Lenze codes of the function block instance, select a variable of the associated function
block in the Instance Parameter Manager and click Insert
WAdapt Lenze initial codes.
•
This command is also available in the shortcut menu:
Command execution creates all codes of the function block instance in the Instance Parameter
Manager (in this example: L_DIGDEL1.wDelayTime):
8.4.3.6
Accessing arrays via subcodes
Access to individual array fields by means of codes (e. g. using the Keypad, for example) is via
so-called subcodes.
Subcodes are a code subset of a master code.
Example:
C6000
Master code
C6000/1
Subcode 1
C6000/2
Subcode 2
... ...
C6000/n
Subcode n
Show/Hide Bookmarks