P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
Basic Functions
Function Manual, 09/2011, 6FC5397-0BP40-2BA0
1033
Declaration of the function
Description of formal parameters
The table below lists all formal parameters of the SpinCtrl function.
FUNCTION FC 18: VOID //SpinCtrl
VAR_INPUT
Start: BOOL ;
Stop: BOOL ;
Funct: BYTE ;
Mode: BYTE ;
AxisNo: INT;
Pos: REAL;
FRate: REAL;
END_VAR
VAR_OUTPUT
InPos: BOOL ;
Error : BOOL ;
State : BYTE ;
END_VAR
Signal
Typ
e
Type Range of values Remark
Start I BOOL Start spindle control from PLC
Stop I BOOL Stop spindle control from PLC
Funct I BYTE 1 to B#16#0B 1: Position spindle
2: Rotate spindle
3: Oscillate spindle
4: Indexing axis
5: Positioning axis metric
6: Positioning axis inch
7: PosAxis metric with handwheel override
8: PosAxis inch with handwheel override
9: Rotate spindle with
automatic gear stage selection
A: Rotate spindle with constant cutting rate (m/
min)
B: Rotate spindle with constant cutting rate (feet/
min)
Mode I BYTE 0 to 5 0: Pos to absolute pos
1: Pos incrementally
2: Pos shortest path
3: Pos absolute, positive approach direction
4: Pos absolute, negative approach direction
5: Rotational direction as for M4