Siemens SINUMERIK 840D sl Function Manual page 1528

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

Advertisement

Detailed description
2.14 Programming tips with STEP 7
2.14.2
Copying data
For the high-speed copying of data from one DB into another it is recommended
• for larger data quantities to use the system function SFC BLKMOV or SFC FILL, because
• the routine given below is for smaller data quantities, because the supply of ANY
The following is an example of how to copy data at high speed from one DB into another.
Code
OPEN
LAR1
OPEN
LAR2
L
M001:
L
T
+AR1
+AR2
TAK;
LOOP
2.14.3
ANY and POINTER
2.14.3.1
General
General
The following programming examples illustrate different programming mechanisms. They
demonstrate how input/output and transit variables (VAR_INPUT, VAR_OUTPUT,
VAR_IN_OUT) are accessed by data types "POINTER" or "ANY" within an FC or FB. The
access operations are described in such a way that a part symbolic method of programming
can be used.
254
here a high-speed copying takes place.
parameter to the SFCs consumes additional time.
DB 100;
P#20.0;
DI 101;
P#50.0;
4;
DBW [AR1,P#0.0];
DIW [AR2,P#0.0];
P#2.0;
P#2.0;
M001;
Comment
// DB xx.[AR1] is the source
// DI yy.[AR2] is the destination
//Source DB
//Source start address on data byte 20
//Destination DB
//Destination start address on data byte 50
//AR1, AR2, DB, DI loaded beforehand
//Transfer 8 bytes
//Copy word-oriented
Basic logic functions: PLC basic program solution line (P3 sl)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 840di slSinumerik 840dSinumerik 840diSinumerik 810dSinumerik 840d powerlineSinumerik 840de powerline ... Show all

Table of Contents