Detailed description
2.12 Block descriptions
Basic logic functions: PLC basic program solution line (P3 sl)
Function Manual, 11/2006, 6FC5397-0BP10-2BA0
147
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
DB 16
DB 16
STR
DB 124
DB 124
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
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
U
I 7.6;
//Manual error acknowledgment
U
M 1.0;
//Error pending
R
M 0.0;
//Terminate job
CALL FB 4, DB 126 (
Req :=
M0.0,
PIService :=
PI.SELECT,
Unit :=
1,
// CHAN 1
Addr1 :=
STR.Path,
Addr2 :=
STR.PName,
//Main-program selection
//Addr1:=STR.Path_WST,
//Addr2:=STR.PName_WST,
//Workpiece-program
selection
Error :=
M1.0,
Done :=
M1.1,
State :=
MW2);
Summary of Contents for SINUMERIK 840D sl
Page 282: ...Index Basic logic functions Acceleration B2 64 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 388: ...Basic logic functions Travel to fixed stop F1 Function Manual 11 2006 6FC5397 0BP10 2BA0 52 ...
Page 962: ...Index Basic logic functions Emergency Stop N2 20 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 1704: ...Constraints Basic logic functions Spindles S1 94 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 1716: ...Index Basic logic functions Spindles S1 106 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 1996: ...Index Basic logic functions Tool Offset W1 208 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 2150: ...Table of contents Basic logic functions Appendix 4 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...
Page 2184: ...Glossary Basic logic functions Appendix 38 Function Manual 11 2006 6FC5397 0BP10 2BA0 ...