Detailed Description
2.12 Block descriptions
PLC Basic Program Solution Line (P3 sl)
2-128 Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
Parameter assignment
Signal Type Value range Meaning
WVar8 INT 0, 1, 2, 3 KindofSearch
0: Find all tool with this property cutting edge specifically
1: Search for the first tool found with this property (cutting
edge specifically)
2: Browse all cutting edges to find all tool with this property
3: Browse all tools to search for the first tool found with this
property
Call example
Program selection in channel 1 (main program and workpiece program)
Entry of PI for DB 16 and STR for DB 124 with the S7 SYMBOL editor:
Parameterization:
Symbol Operand Data type
PI DB16 DB16
STR DB124 DB124
DATA_BLOCK DB 126 //Unassigned user DB, as instance for FB 4
FB 4
BEGIN
END_DATA_BLOCK
DATA_BLOCK db 124
struct
PName: string[32]:= '_N_TEST_MPF
';
Path: string[32]:=
'/_N_MPF_DIR/';
//Main program
PName_WST: string[32]:=
'_N_ABC_MPF';
Path_WST: string[32]:=
'/_N_WKS_DIR/_N_ZYL_WPD';
//Workpiece program
end_struct
BEGIN
END_DATA_BLOCK
Function FC "PICall" : VOID
call fb4,db126(
U I 7.7; //Unassigned machine control panel key
S M 0.0; //Activate req.
U M 1.1; //Done completed message
R M 0.0; //Terminate job