Detailed description
2.12 Block descriptions
Basic logic functions: PLC basic program solution line (P3 sl)
234
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
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
Range of values
Remark
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
A
BOOL
1 = Move magazine clockwise
Ccw
A
BOOL
1 = Move magazine
counterclockwise
InPos
A
BOOL
1 = In position
Diff
A
INT
0..
Differential path (shortest path)
Error
A
BOOL
1 = error
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 ...