P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
Basic Functions
1006
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
Manual revolver switching
If a manual action is used to rotate the revolver, this information must be forwarded to the tool management. The
asynchronous transfer function of FC 8 must be used to transfer the modified positions of the revolver. This must
only occur once on the first manual rotation in the sequence. In this case, the following parameterization of the
asynchronous transfer is needed via FC 8:
This action also causes the same T command to be resent to the tool-management interface if the previous T is
programmed again.
Declaration of the function
STL representation
Description of formal parameters
The table below lists all formal parameters of the TM_REV function.
TaskIdent = 4
TaskIdentNo = channel
NewToolMag = Magazine number of the revolver
NewToolLoc = Original location of the tool
OldToolMag = Magazine no. buffer storage (spindle) = 9998
OldToolLoc = Buffer storage number of the spindle
Status = 1
FUNCTION FC 7 :
VOID
//NAME :TM_REV
VAR_INPUT
Start:
BOOL ;
ChgdRevNo:
BYTE ;
END_VAR
VAR_OUTPUT
Ready:
BOOL ;
Error :
INT;
END_VAR
BEGIN
END_FUNCTION
Signal
Typ
e
Type
Value range
Comment
Start
I
BOOL
1 = Start of transfer
ChgdRevNo
I
BYTE
1...
Number of revolver interface