Fc9: Asub - Start Of Asynchronous Subroutines - Siemens SINUMERIK 840D sl Function Manual

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

Advertisement

Status definition
A general rule for the acknowledgement status is that the status information 1 to 7 leads to the
termination of the command. If FC8 receives one of the statuses, the "Interface active bit" of
the interface specified in FC8 is reset to "0" (see also interface lists DB 71 to DB 73), thus
completing the operation. The response is different in the case of status information 103 to
105. When the FC8 receives one of these items of status information, the "Interface active bit"
of this interface remains at "1". Further processing is required by the user program in the PLC
(e.g. continuation of magazine positioning). This item of status information is generally used
to transfer changes in position of one or both tools while the operation is still in progress.
Call example
CALL FC8(
Start :=
TaskIdent :=
TaskIdentNo :=
NewToolMag :=
NewToolLoc :=
OldToolMag :=
OldToolLoc :=
Status :=
Ready :=
Error :=
u m 20.6;
r m 20.5;
spb m001;
l DB61.dbw12;
ow w#16#0;
JC error;
m001:
error:
r m 20.5:
13.17.17

FC9: ASUB - start of asynchronous subroutines

Function
The block FC9 "ASUP" 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 FB4 (PI service ASUB). In this case, the channel and the interrupt numbers must match
the parameters in FC9.
Basic Functions
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
P3: Basic PLC program for SINUMERIK 840D sl
//Tool-management transfer block
m 20.5,
// Start := "1 " => initiate the transfer
DB61.DBB0,
DB61.DBB1,
DB61.DBW2,
// Current position of new tool
DB61.DBW4,
DB61.DBW6,
// Current position of old tool
DB61.DBW8,
DB61.DBW10,
// Status
m 20.6,
DB61.DBW12);
// Poll ready
// Reset start
// Jump if everything OK
// Error information
// Evaluate error
// Jump to troubleshooting
// Normal branch
//Troubleshooting
// Reset start
13.17 Block descriptions
1007

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents