Professional Documents
Culture Documents
Creating A PLC User Version 810D
Creating A PLC User Version 810D
Creating A PLC User Version 810D
This example allows you to create a user version in the NCU version overview via the
PLC.
In this DB 100, create a variable named e.g. "USER_VERSION" of the STRING [41]
type and e.g. with the 'PAUER VERSION X.X' initial value.
(Notice: Use a simple inverted comma before and after the variable)
Step 2:
• Save the block and enter it in the symbol list, e.g. under the following
name: user_version DB100 type
• Save the symbol list.
Step 3:
Make the following entry in OB 100, in the call-up of FB 1 under the UserVersion
parameter:
...
...
UserVersion = "user_version".USER_VERSION
(Notice: Write the name of DB100 between inverted commas, type a dot and then
enter the name of the variable in DB100 without inverted commas)
Step 4:
Save OB100 and then load it into the controller together with DB100.
Step 5:
Step 6:
If you create a source from OB100 and DB100 afterwards, the source is shown as
follows:
DATA_BLOCK "user_version"
VERSION : 0.1
STRUCT
USER_VERSION : STRING [41 ] := 'PAUER VERSION x.x';
END_STRUCT ;
BEGIN
USER_VERSION := 'PAUER VERSION x.x';
END_DATA_BLOCK
ORGANIZATION_BLOCK OB 100
TITLE =
VERSION : 2.3
VAR_TEMP
OB100_EV_CLASS : BYTE ;
OB100_STRTUP : BYTE ;
OB100_PRIORITY : BYTE ;
OB100_OB_NUMBR : BYTE ;
OB100_RESERVED_1 : BYTE ;
OB100_RESERVED_2 : BYTE ;
OB100_STOP : WORD ;
OB100_RESERVED_3 : WORD ;
OB100_RESERVED_4 : WORD ;
OB100_DATE_TIME : DATE_AND_TIME ;
END_VAR
BEGIN
NETWORK
TITLE =
END_ORGANIZATION_BLOCK
Click on EDIT -> Initialize Data Block to apply the new version information.
Transfer the DB100 data block into the PLC and then reboot the NCU and the
MMC/HMI.
The changed user version is now shown in the NCK version display.