Siemens SINUMERIK 840D sl Function Manual page 846

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

Advertisement

P3: Basic PLC program for SINUMERIK 840D sl
13.9 Interface structure
The extensions are:
● Support for 10 channels, 31 axes, 64 user areas (the number of user areas should be
entered in the FB1 parameter "MsgUser").
● Areas for feed stop, read-in disable, etc. are available without messages. The information
from this area is stored on the interface in DB21, DB31 depending on FC10 parameter
"ToUserIF" together with the related message bits as group signals. As such, the previous
cumbersome handling of the signals is omitted.
● The alarms / messages also get the 16-bit integer additional value (%Z parameter in the
alarm text) in addition to the alarm number for the user area 0. The user must write the 16-
bit integer values in the DB2 in the array variable ZInfo0 parallel to setting an alarm bit. An
integer value is available for each bit in the user area 0, see UDT1002 in the basic program.
● The user messages can be parameteized in the second decade of the message number
in the numerical range 0 to 9. The display value of the second decade must be written by
the user in the DB5 in the array variable UserDek2No. A number can be defined for each
user area, see DB5 in the basic program.
The value 0 is set by default for the second decade.
The structuring of the DB2 in UDT1002 can be recognized (basic program). In case of new
alarm functions, the UDT1002 must be assigned symbolically to the DB2.
At the start of DB2 there are bit arrays for signals without alarm generation. This is followed
by an array of size 64 integer values for additional info about the user area 0.
Thereafter follow the areas, which also trigger alams / messages (see List manual) These
areas are extended to 10 channels, 31 axes.
Simple implementation of a user program on the new alarms
The source container of the basic program contains the file "udt2_for_Convert.awl", which has
the following structural element from UDT1002:
● ChanA as array of 1 ... 8
● AxisA as array of 1 ... 18
● UserA as array of 0 ... 63
This UDT2 is to be compiled via the LAD/FBD/STL editor. The UDT2 must be assigned to the
DB2 in the symbol table.
Sources must be generated for components, which have assignments on DB2. Alternatively,
sources can naturally be created for all blocks too. The UDT1002 must now be assigned to
the DB2 in the symbol table. Thereafter, the sources must be recompiled.
Now all the alarm allocations are assigned to the new data areas in the DB2 and now only the
parameter "ExtendAlMsg" at FB1 must be set to True.
After a Power On RESET the alarm behavior is the same as earlier.
846
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Basic Functions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents