Detailed description
2.12 Block descriptions
Basic logic functions: PLC basic program solution line (P3 sl)
212 Function Manual, 11/2006, 6FC5397-0BP10-2BA0
Declaration of the 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
Description of formal parameters
The table below lists all formal parameters of the SpinCtrl function.
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