Creating A PLC User Version 810D

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

SINUMERIK 810D/840D

Creating a PLC user version

This example allows you to create a user version in the NCU version overview via the
PLC.

Step 1, creating a data block:

Create a data block, e.g. DB100.

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)

Subject to technical changes without prior notice


© Siemens AG 2008 Page 1 / 6 Issue: 22.07.2008
1-EA092X-Attachment_en.doc
SINUMERIK 810D/840D

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)

Subject to technical changes without prior notice


© Siemens AG 2008 Page 2 / 6 Issue: 22.07.2008
1-EA092X-Attachment_en.doc
SINUMERIK 810D/840D

Step 4:

Save OB100 and then load it into the controller together with DB100.

Step 5:

Reboot the controller and the MMC.

Step 6:

The display is shown under: Î Softkey Diagnosis, Softkey Service Displays,


NCU Softkey Version
This display shows the initial value of the USER_VERSION variable from the
user_version block (DB100) Î "PAUER VERSION X.X"

Subject to technical changes without prior notice


© Siemens AG 2008 Page 3 / 6 Issue: 22.07.2008
1-EA092X-Attachment_en.doc
SINUMERIK 810D/840D

Step 7: Generating the source

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 =

CALL "RUN_UP" , "gp_par" (


MCPNum := 1,
MCP1In := P#E 0.0,
MCP1Out := P#A 0.0,
MCP1StatSend := P#A 8.0,
MCP1StatRec := P#A 12.0,
MCP1BusAdr := 6,
MCP1Timeout := S5T#700MS,
MCP1Cycl := S5T#200MS,
NCCyclTimeout := S5T#200MS,
NCRunupTimeout := S5T#50S,
UserVersion := P#DB100.DBX0.0 BYTE 56);

//HIER ANWENDERPROGRAMM EINFUEGEN


//Insert Userprogram from here

END_ORGANIZATION_BLOCK

Subject to technical changes without prior notice


© Siemens AG 2008 Page 4 / 6 Issue: 22.07.2008
1-EA092X-Attachment_en.doc
SINUMERIK 810D/840D

Step 8: System-specific version information in the NCK version display

You can now edit the entry:

Example: 'PAUER VERSION:Machine ECO 743 OPTION:113'

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.

Subject to technical changes without prior notice


© Siemens AG 2008 Page 5 / 6 Issue: 22.07.2008
1-EA092X-Attachment_en.doc
SINUMERIK 810D/840D

Subject to technical changes without prior notice


© Siemens AG 2008 Page 6 / 6 Issue: 22.07.2008
1-EA092X-Attachment_en.doc

You might also like