Siemens SINUMERIK 840D sl Function Manual page 1263

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

Advertisement

Example
FUNCTION_BLOCK FB 99
VAR_INPUT
varin: INT ;
END_VAR
VAR
variable1: ARRAY[0 to 9] of INT;
variable2: INT ;
END_VAR
BEGIN
P##variable1;
L
DW#16#00FF_FFFF,
AD
LAR1
TAR2;
+AR1 AR2;
DIW [AR1, P#0.0];
L
END_FUNCTION_BLOCK
Basic logic functions: PLC Basic program powerline (P3 pl)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
Comment
//Pointer at start of ARRAY
//The value 8500 0010 is now in the accumulator
//and a cross-area pointer is in the AR2. If cross-area processing is to take
place, then an area should be skipped when these two pointers are added.
//Skipping of an area
//Load into AR1
//AR2 instance offset to be added
//The ARRAY of variable1 can now be accessed indirectly via AR1.
//E.g., access to first element
Detailed description
2.14 Programming tips with STEP 7
279

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