P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
1005
13.13.15 FC 7: TM_REV Transfer block for tool change with revolver
Function
After a revolver has been changed, the user will call this block FC TM_REV. The revolver number (corresponding
to interface number in DB 73) must be specified in parameter "ChgdRevNo" for this purpose. As this block is
called, the associated "Interface active" bit in data block DB 73, word 0 of FC 7 is reset after parameter "Ready"
:= TRUE is returned.
Block FC TM_REV may be started (with "Start" parameter = "TRUE") only if an activation signal for the
appropriate interface (DB 73, word 0) for this transfer has been supplied by the tool management function.
When this job is executed correctly, the output parameter "Ready" contains the value TRUE. The user must then
set the"Start" parameter to FALSE or not call the block again.
If the "Ready" parameter is set to FALSE, the error code in the"Error" parameter must be interpreted.
If the error code = 0, then this job must be repeated in the next PLC cycle (e.g. "Start" remains set to "TRUE").
This means that the transfer job has not yet been completed (see example FC 7 call and timing diagram).
The "Start" parameter does not need a signal edge for a subsequent job.
An error code <> 0 indicates incorrect parameterization.
OldToolLoc
I
INT
See description of block FC 8
Status
I
INT
See description of block FC 8
MtoolPlaceNum
I
INT
Multitool location No.
Ready
O
BOOL
See description of block FC 8
Error
O
INT
See description of block FC 8
WARNING
A cancellation of a transfer (e.g. through an external signal RESET) is not permitted. The
"Start" parameter must always retain the 1 signal until the "Ready" and/or "Error" parameters
<> 0.
Note
For further details on tool management (also with regard to PLC) refer to the Description of
Functions Tool Management. In addition, PI services for tool management via FB 4, FC 8
and FC 22 are available.
Signal
Typ
e
Type
Value range
Remark