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
Summary of Contents for SINUMERIK 840D sl
Page 282: ...Index Basic logic functions Acceleration B2 64 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 388: ...Basic logic functions Travel to fixed stop F1 Function Manual 11 2006 6FC5397 0BP10 2BA0 52 ...
Page 962: ...Index Basic logic functions Emergency Stop N2 20 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 1704: ...Constraints Basic logic functions Spindles S1 94 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 1716: ...Index Basic logic functions Spindles S1 106 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 1996: ...Index Basic logic functions Tool Offset W1 208 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 2150: ...Table of contents Basic logic functions Appendix 4 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 2184: ...Glossary Basic logic functions Appendix 38 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...