Detailed description
2.12 Block descriptions
Basic logic functions: PLC Basic program powerline (P3 pl)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
191
Declaration of the function
STL representation
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
Description of formal parameters
The table below lists all formal parameters of the TM_TRANS function:
Signal Type Type Value range Remark
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 new tool
-1: Tool remains at its location NewToolLoc =
any value.
Only permissible if TaskIdent = 2
NewToolLoc I INT 0 to max.
location number
Current location number of new tool