Siemens SINUMERIK 840D sl Function Manual page 1008

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

Advertisement

P3: Basic PLC program for SINUMERIK 840D sl
13.17 Block descriptions
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 several ASUBs are started in
one PLC cycle, the ASUBs are started in this order in the NC.
Parameter "Start" = 0 must be set by the user if the ASUB has been terminated ("Done" == 1)
or an error has occurred ("Error" == 1).
For processing jobs, each FC9 needs its own parameter "Ref" from the global user area. This
parameter is for internal use only and must not be changed by the user. The parameter "Ref"
is initialized with the value 0 in the first OB1 cycle and, for this reason, every FC9 must be
called absolutely. Alternatively, the user can initialize parameter "Ref" with a value of 0 during
startup. This option makes conditional calls possible. A conditional call requires parameter
"Start" = 1 during activation of FC9 until a negative edge change has occurred at parameter
"Done" (1 → 0).
General conditions
● The function block FB4 must be terminated before the block FC9 is started.
● The block FC9 cannot be started if DB10, DBX56.1 == 1 (emergency stop).
● Block FC9 must not be started if channel reset is active in the channel in which the ASUB
is to be started.
Declaration of the function
FUNCTION FC9: VOID
//NAME :ASUP
VAR_INPUT
END_VAR
VAR_OUTPUT
END_VAR
VAR_IN_OUT
END_VAR
1008
Start :
BOOL;
ChanNo:
INT;
IntNo:
INT;
Active:
BOOL;
Done :
BOOL;
Error :
BOOL;
StartErr:
BOOL;
Ref:
WORD;
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Basic Functions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents