Siemens SINUMERIK 840Di Function Manual page 973

Basic machine
Hide thumbs Also See for SINUMERIK 840Di:
Table of Contents

Advertisement

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.
An entry is made in the symbol table to allow data access in symbolic form:
Interrupts
Symbol
UData
Access operations in user program (list includes only symbolic read access):
Power Line Basic PLC Program (P3)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
STRUCT
UDInt :
UDHex0 :
UDReal :
END_STRUCT;
Operand
DB 20
2.7 Structure and functions of the basic program
ARRAY [0 .. 3 ] OF INT ;
ARRAY [0 .. 15]OF BOOL;
ARRAY [0 .. 0 ] OF REAL ;
Detailed description
//Description as field, for
// later expansions
Data type
UDT 20
2-61

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents