Siemens SINUMERIK 840D sl Function Manual page 1051

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

Advertisement

BP parameters (to scan runtime):
During PLC power-up, DB20 was generated with a length of 28 bytes:
DB 20
address
0.0
2.0
4.0
6.0
8.0
9.0
10.0
The structure of the machine data used is specified in a UDT:
TYPE UDT 20
END_TYPE
Note
ARRAY OF BOOL are always sent to even-numbered addresses. For this reason, an array
range of 0 to 15 must generally be selected in the UDT definition or all Boolean variables
specified individually.
Although only a REAL value is used initially in the example, a field (with one element) has
been created for the variable. This ensures that extensions can be made easily in the future
without the symbolic address being modified.
Basic logic functions: PLC Basic program powerline (P3 pl)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
NCRunupTimeout
:=
l gp_par.UDInt;
l gp_par.UDHex;
l gp_par.UDReal;
data
123
456
789
1011
b#16#12
b#16#AC
1.234560e+02
STRUCT
UDInt :
ARRAY [0 .. 3 ] OF INT ;
UDHex0 : ARRAY [0 .. 15 ] OF BOOL ;
UDReal : ARRAY [0 .. 0 ] OF REAL
;
END_STRUCT;
2.7 Structure and functions of the basic program
S5T#50S;
//=4,
//=2,
//=1 )
//Description as field, for
// later expansions
Detailed description
67

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