Multiinstance Db - Siemens SINUMERIK 840D sl Function Manual

Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

P3: Basic PLC program for SINUMERIK 840D sl
13.19 Programming tips with STEP 7
END_VAR
VAR_TEMP
END_VAR
BEGIN
NETWORK
TITLE =
L
LAR1 ;
L
T
L
T
L
T
L
T
L
SLD 3;
T
CALL FB101, DB100
13.19.3

Multiinstance DB

Function
From Version 2 in STEP 7, you can provide multi-instance enabled FBs, i.e. with multi-instance
DBs. The primary characteristic of multiinstance DBs is that a data module can be used for
various instances of FBs (see STEP 7 documentation), The quantity structure of the DBs can
be optimized this way.
1072
dbchr : WORD ;
Temp_addr : ANY ;
P##Temp_addr;
B#16#10;
LB [AR1,P#0.0];
Data type;
LB [AR1,P#1.0];
Amount;
LW [AR1,P#2.0];
DBNumber;
LW [AR1,P#4.0];
DBOffset;
LD [AR1,P#6.0];
(ANYPAR := #Temp_addr);
//Retrieve pointer from VAR_TEMP
//ANY identifier
//Offset is a bit offset
//ANYPAR is data type ANY
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Basic Functions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents