hit counter script

Siemens SINUMERIK 840D sl Function Manual page 1071

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

Advertisement

VAR_INPUT
WhichAny : INT;
END_VAR
VAR_TEMP
END_VAR
BEGIN
NETWORK
TITLE =
L
DEC 1;
L
*I;
LAR2;
L
+AR2;
L
LAR1 ;
L
T
L
T
L
T
CALL FB101, DB100
Example 2: Transfer an ANY parameter constructed earlier to another FB (FC)
An ANY parameter that has already been compiled must be transferred to another FB (FC).
This can be done only by means of an ANY stored in VAR_TEMP.
FUNCTIONBLOCK FB100
VAR_INPUT
Basic Functions
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Addr1 : ANY ;
Addr2 : ANY ;
Addr3 : ANY ;
Addr4 : ANY ;
dbchr : WORD ;
Number: WORD ;
type : BYTE ;
Temp_addr : ANY ;
WhichAny;
P#10.0;
P##Addr1;
P##Temp_addr;
DID [AR2,P#0.0];
LD [AR1,P#0.0];
DID [AR2,P#4.0];
LD [AR1,P#4.0];
DIW [AR2,P#8.0];
LW [AR1,P#8.0];
(ANYPAR := #Temp_addr);
DBNumber: INT;
DBOffset : INT;
Data type: INT;
Number: INT;
P3: Basic PLC program for SINUMERIK 840D sl
13.19 Programming tips with STEP 7
//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
1071

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents

Save PDF