Structure of the decoding list in DB 75:
Example parameters
Group
Decoding list (DB 75)
Extended
M address
1
2
2
3
3
40
DATA_BLOCK DB 75
TITLE =
VERSION : 0.0
STRUCT
MSigGrp : ARRAY [1 .. 16 ] OF STRUCT
MExtAdr :
MFirstAdr :
MLastAdr :
END_STRUCT;
END_STRUCT;
BEGIN
MSigGrp[1].MExtAdr :=
MSigGrp[1].MFirstAdr :=
MSigGrp[1].MLastAdr :=
MSigGrp[2].MExtAdr :=
MSigGrp[2].MFirstAdr :=
MSigGrp[2].MLastAdr :=
MSigGrp[3].MExtAdr :=
MSigGrp[3].MFirstAdr :=
MSigGrp[3].MLastAdr :=
END_DATA_BLOCK
Structure of FB 1 in the OB 100
(enter the number of M groups to be decoded in order to activate the function):
Call FB 1, DB 7(
...
ListMDecGrp := 3,
...
);
The appending of the entry in OB 100 and transfer of DB 75 (decoding list) to the AG must be followed by a
restart. During the restart, the basic program sets up DB76 (signal list).
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
First
Last
M address
M address
in group
in group
1
5
12
23
55
55
INT ;
DINT;
DINT;
2;
L#1;
L#5;
3;
L#12;
L#23;
40;
L#55;
L#55;
//M decoding of three groups
P3: Basic PLC Program for SINUMERIK 840D sl
13.8 Structure and functions of the basic program
Signal list
DB 76
DBX 0.0 ... DBX 0.4
DBX 2.0 ... DBX 3.3
DBX 4.0
889