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