Detailed description
2.12 Block descriptions
Power Line Basic PLC Program (P3)
2-186 Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
Call example
CALL FC 8 ( //Tool-management transfer block
Start := m 20.5, //Start := "1 " => transfer trigger
TaskIdent := DB61.DBB 0,
TaskIdentNo
:=
DB61.DBB 1,
NewToolMag
:=
DB61.DBW 2, //Current position of new tool
NewToolLoc
:=
DB61.DBW 4,
OldToolMag
:=
DB61.DBW 6, //Current position of old tool
OldToolLoc
:=
DB61.DBW 8,
Status := DB61.DBW 10, //Status
Ready := m 20.6,
Error := DB61.DBW
12);
u m 20.6; //Poll ready
r m 20.5; //Reset start
spb m001; //Jumps, if everything OK
l DB61.dbw 12; //Error information
ow w#16#0; //Evaluate error
JC error; //Jumps to troubleshooting
m001: //Normal branch
error: //Troubleshooting
r m 20.5: //Reset start
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.