Description of the formal parameters
The table below shows all formal parameters of the "TM_DIR" function.
Signal
MagNo
ReqPos
ActPos
Offset
Start
Cw
Ccw
InPos
Diff
Error
Call example
CALL FC 22 (
Basic logic functions: PLC Basic program powerline (P3 pl)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
I/O
Type
Value range
I
INT
1..
I
INT
1..
I
INT
1..
I
BYTE
0..
I
BOOL
Q
BOOL
Q
BOOL
Q
BOOL
Q
INT
0..
Q
BOOL
//Tool management direction selection
MagNo :=
2,
ReqPos :=
mw 20,
ActPos :=
mw 22,
Offset :=
b#16#0,
Start :=
m 30.4,
Cw :=
m 30.0,
Ccw :=
m 30.1,
InPos :=
m 30.2,
Diff :=
mw 32,
Error :=
m30.3
);
Detailed description
2.12 Block descriptions
Remark
Magazine number
Setpoint location
Actual location
Offset for special positioning
Start of calculation
1 = Move magazine clockwise
1 = Move magazine
counterclockwise
1 = In position
Differential path (shortest path)
1 = error
//Magazine number
//Target position
//Current position
//Offset for special positioning
//Start trigger
//Return parameters
//Move magazine
//in clockwise direction
//Move magazine
//in anticlockwise direction
//Magazine in position
//Differential path
//Error has occurred
249