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