P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
Basic Functions
1010 Function Manual, 09/2011, 6FC5397-0BP40-2BA0
Declaration of the function
STL Representation
Description of formal parameters
The table below lists all formal parameters of the TM_TRANS function:
FUNCTION FC 8 : VOID
//NAME :TM_TRANS
VAR_INPUT
Start: BOOL ;
TaskIdent: BYTE ;
TaskIdentNo: BYTE ;
NewToolMag: INT;
NewToolLoc: INT;
OldToolMag: INT;
OldToolLoc: INT;
Status: INT;
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
TaskIdent I BYTE 1 ... 5 Interface or tank identifier
1: Loading/unloading location
2: Spindle change position
3: Revolver change position
4: Asynchronous transfer
5: Asynchronous transfer with location
reservation
TaskIdentNo I BYTE 1 ... Number of associated interface or channel
number. The upper nibble can specify the
interface number for asynchronous transfer
(e.g. B#16#12, 1st interface, 2nd channel).
NewToolMag I INT 1, 0 ... Current magazine number of tool to be replaced
-1: Tool remains at its location
NewToolLoc = any value
Only permissible if TaskIdent = 2
NewToolLoc I INT 0 ... max.
location number
Current location number of new tool