Siemens SINUMERIK 840Di Function Manual page 1098

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

Advertisement

Detailed description
2.12 Block descriptions
Call example
CALL FC 8 (
u m 20.6;
r m 20.5;
spb m001;
l DB61.dbw 12;
ow w#16#0;
JC error;
m001:
error:
r m 20.5:
2.12.16
FC 9: ASUB startup of asynchronous subprograms
Description of functions
The FC ASUB can be used to trigger any functions in the NC. Before an ASUB can be
started from the PLC, it must have been selected and parameterized by an NC program or
by FB 4 (PI service ASUB).
Once prepared in this way, it can be started at any time from the PLC. The NC program
running on the channel in question is interrupted by the asynchronous subprogram. Only one
ASUB can be started in the same channel at a time. If the start parameter is set to logical 1
for two FC 9s within one PLC cycle, the ASUBs are started in the sequence in which they
are called.
2-186
//Tool-management transfer block
Start :=
m 20.5,
TaskIdent :=
DB61.DBB 0,
TaskIdentNo
DB61.DBB 1,
:=
NewToolMag
DB61.DBW 2,
:=
NewToolLoc
DB61.DBW 4,
:=
OldToolMag
DB61.DBW 6,
:=
OldToolLoc
DB61.DBW 8,
:=
Status :=
DB61.DBW 10,
Ready :=
m 20.6,
Error :=
DB61.DBW
12);
//Start := "1 " => transfer trigger
//Current position of new tool
//Current position of old tool
//Status
//Poll ready
//Reset start
//Jumps, if everything OK
//Error information
//Evaluate error
//Jumps to troubleshooting
//Normal branch
//Troubleshooting
//Reset start
Power Line Basic PLC Program (P3)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents