Detailed description
2.12 Block descriptions
Power Line Basic PLC Program (P3)
2-234 Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
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
Explanation of the formal parameters
The table below shows all formal parameters of the "TM_DIR" function.
Signal I/O Type Value range Remarks
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 Q Bool 1 = Move magazine clockwise
Ccw Q Bool 1 = Move magazine
counterclockwise
InPos Q Bool 1 = In position
Diff Q Int 0.. Differential path (shortest path)
Error Q Bool 1 = Error