Siemens SINUMERIK 840D sl Function Manual page 863

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

Advertisement

Program code
DATA_BLOCK DB 75
TITLE =
VERSION : 0.0
BEGIN
END_DATA_BLOCK
Structure of FB1 in OB100
To activate the function, insert the parameter for the number of M groups to be decoded
"ListMDecGrp".
Call FB 1, DB 7(
);
Description
A restart must be performed after the entry has been made in OB100 and the decoding list
(DB75) has been transferred to the PLC. The basic program creates the signal list (DB76)
when it restarts.
An NC program is then started, for instance in the 1st channel. An extended M function is
included in this (M3=17). When decoding the M function (M3 ≙ group 2), the associated signal
(DBW1.5) is set in the signal list (DB76) and the interface signal "Read-inhibit" in the 1st
channel. The execution of the NC program is stopped. Further, the "Extended address M
function" and the "M function number" are displayed in the channel DB of the 1st channel.
The "Read-in inhibit" signal in the 1st channel is reset once the user has reset all of the signals
output from this channel in the signal list (DB76), and has therefore acknowledged them.
Basic Functions
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
STRUCT
MSigGrp : ARRAY [1 .. 16 ] OF STRUCT
MExtAdr : INT;
MFirstAdr : DINT;
MLastAdr : DINT;
END_STRUCT ;
MSigGrp[1].MExtAdr
MSigGrp[1].MFirstAdr :=
MSigGrp[1].MLastAdr
MSigGrp[2].MExtAdr
MSigGrp[2].MFirstAdr := L#12; first M address of the group
MSigGrp[2].MLastAdr
MSigGrp[3].MExtAdr
MSigGrp[3].MFirstAdr := L#55; first M address of the group
MSigGrp[3].MLastAdr
...
ListMDecGrp := 3;
...
P3: Basic PLC program for SINUMERIK 840D sl
13.10 Structure and functions of the basic program
:=
2; extended M address of the 1st group
L#1; first M address of the group
:=
L#5; last M address of the group
:=
3; extended M address of the 2nd group
:= L#23; last M address of the group
:=
40; extended M address of the 3rd group
:= L#55; last M address of the group
//M decoding of three groups
863

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents