Siemens SINUMERIK 840D sl Function Manual page 940

Hide thumbs Also See for SINUMERIK 840D sl:
Table of Contents

Advertisement

P3: Basic PLC program for SINUMERIK 840D sl
13.17 Block descriptions
DATA_BLOCK DB126
FB4
BEGIN
END_DATA_BLOCK
// ------------------------------------------------------------------------
DATA_BLOCK DB124
STRUCT
END_STRUCT
BEGIN
END_DATA_BLOCK
// -------------------------------------------------------------------------
Function FC "PICall" : VOID
U
S
U
R
U
U
R
CALL FB4, DB126 (
// Addr1:=
// Addr2:=
);
940
PName:
string[32]:= '_N_TEST_MPF
';
Path:
string[32]:= '/
_N_MPF_DIR/';
PName_WST:
string[32]:= '_N_ABC_MPF'; // Workpiece program
Path_WST:
string[32]:= '/_N_WCS_DIR/
_N_ZYL_WPD';
I 7.7;
// Unassigned machine control panel key
M 0.0;
// Activate req.
M 1.1;
// Done completed message
M 0.0;
// Terminate job
I 7.6;
// Manual error acknowledgment
M 1.0;
// Error pending
M 0.0;
// Terminate job
Req:=
M0.0,
PIService:=
"PI".SELECT,
Unit:=
1,
Addr1:=
"STR".Path,
Addr2:=
"STR".PName,
"STR".Path_WST,
"STR".PName_WST,
Error:=
M1.0,
Done:=
M1.1,
State:=
MW2
// Instance for FB4, unassigned user DB
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
// Main program
// Main program path
// Workpiece program path
// PI service: SELECT
// Channel 1
// Main program: Path
// Main program: Program
// Workpiece: Path
// Workpiece: Program
Basic Functions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents