Siemens SINUMERIK 840D sl Function Manual page 1260

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

Advertisement

Detailed description
2.14 Programming tips with STEP 7
Example in FC, if POINTER or ANY are present as parameters
FUNCTION FC 99: VOID
VAR_INPUT
Row : BYTE ;
Convert : BOOL ;
Addr: POINTER;
Addr1 : ANY ;
END_VAR
VAR_TEMP
dbchr : WORD ;
Number: WORD ;
type : BYTE ;
END_VAR
BEGIN
NETWORK
TITLE =
L
LAR1 ;
L
T
L
LAR1 ;
AUF DB [#dbchr];
L B [AR1,P#40.0];
L
LAR1 ;
L
T
L
T
L
T
L
LAR1 ;
OPEN
L
276
P##Addr;
W [AR1,P#0.0];
#dbchr;
D [AR1,P#2.0];
P##Addr1;
B [AR1,P#1.0];
#typ;
W [AR1,P#2.0];
#Amount;
W [AR1,P#4.0];
#dbchr;
D [AR1,P#6.0];
DB [#dbchr];
B [AR1,P#0.0];
Comment
//Activate numerical conversion
//Points to variable
//POINTER
//Retrieve pointer
//Retrieve DB number
//Offset part of pointer
//Open DB of variables
//Retrieve byte value using pointer with
//address offset 40
//ANY
//Retrieve ANY
//Retrieve type
//Retrieve amount
//Retrieve DB number
//Offset part of pointer
//Open DB of variables
//Retrieve byte value using ANY
Basic logic functions: PLC Basic program powerline (P3 pl)
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