Siemens SINUMERIK 840D sl Function Manual page 1532

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

Advertisement

Detailed description
2.14 Programming tips with STEP 7
FUNCTIONBLOCK FB 100
CODE_VERSION1
VAR_INPUT
WhichAny : INT ;
Addr1 : ANY ;
Addr2 : ANY ;
Addr3 : ANY ;
Addr4 : ANY ;
END_VAR
VAR_TEMP
dbchr : WORD ;
Number: WORD ;
type : BYTE ;
Temp_addr : ANY ;
END_VAR
BEGIN
NETWORK
TITLE =
WhichAny;
L
DEC 1;
P#10.0;
L
*I;
LAR2;
P##Addr1;
L
+AR2;
P##Temp_addr;
L
LAR1 ;
DID [AR2,P#0.0];
L
LD [AR1,P#0.0];
T
DID [AR2,P#4.0];
L
LD [AR1,P#4.0];
T
DIW [AR2,P#8.0];
L
LW [AR1,P#8.0];
T
CALL FB 101, DB 100
(ANYPAR := #Temp_addr);
258
Comment
//starting from STEP 7 Version 2 for deactivating the multi-
instance DB
//Observe predetermined order
//10 bytes per ANY
//Add ANY start addresses
//Retrieve pointer from VAR_TEMP
//Transfer pointer value to VAR_TEM
//ANYPAR is data type ANY
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