Siemens SINUMERIK 840Di Function Manual page 1054

Basic machine
Hide thumbs Also See for SINUMERIK 840Di:
Table of Contents

Advertisement

Detailed description
2.12 Block descriptions
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
PI
STR
DATA_BLOCK DB 126
FB 4
BEGIN
END_DATA_BLOCK
DATA_BLOCK db 124
BEGIN
END_DATA_BLOCK
Function FC "PICall" : VOID
2-142
struct
PName:
Path:
PName_WST:
Path_WST:
end_struct
call fb4,db126(
I 7.7;
S
M 0.0;
V
M 1.1;
R
M 0.0;
V
I 7.6;
V
M 1.0;
R
M 0.0;
Req :=
PIService
:=
Unit :=
Addr1 :=
Addr2 :=
Operand
DB16
DB124
//Unassigned user DB, as instance for FB 4
string[32]:= '_N_TEST_MPF
';
string[32]:=
'/_N_MPF_DIR/';
string[32]:=
'_N_ABC_MPF';
string[32]:=
'/_N_WKS_DIR/_N_ZYL_WPD';
//Unassigned machine control panel key
//Activate req.
//Done completed message
//Terminate job
//Manual error acknowledgment
//Error pending
//Terminate job
M0.0,
PI.SELECT,
1,
STR.Path,
STR.PNam
//Main-program
e,
selection
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
Data type
DB16
DB124
//Main program
//Workpiece program
// CHAN 1
Power Line Basic PLC Program (P3)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents