Detailed Description
2.12 Block descriptions
PLC Basic Program Solution Line (P3 sl)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
2-209
Note
For further details on tool management (also with regard to PLC) refer to the Description of
Functions, Tool Management. Furthermore, PI services are provided for tool management
via the FB 4, FC 7 and FC 8 (see also the corresponding Sections in this documentation).
Declaration of the function
STL representation
FUNCTION FC 22: void
// NAME: TM_DIR
VAR_INPUT
MagNo: INT ;
ReqPos: INT ;
ActPos: INT ;
Offset: BYTE ;
Start: BOOL ;
END_VAR
VAR_OUTPUT
Cw: BOOL ;
Ccw: BOOL ;
InPos: BOOL ;
Diff: INT ;
Error : BOOL ;
END_VAR
BEGIN
END_FUNCTION
Description of formal parameters
The table below shows all formal parameters of the "TM_DIR" function.
Signal Type Type Value range Remarks
MagNo I Int 1.. Magazine number
ReqPos I Int 1.. Setpoint location
ActPos I Int 1.. Actual location
Offset I Byte 0.. Offset for special positioning
Start I Bool Start of calculation
Cw Q Bool 1 = Move magazine clockwise
Ccw Q Bool 1 = Move magazine
counterclockwise