Siemens SINUMERIK 840D sl Function Manual page 928

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

Advertisement

P3: Basic PLC program for SINUMERIK 840D sl
13.17 Block descriptions
S7 symbol table
"NCVAR" is entered in the S7 symbol table as a symbolic name for the data block DB120:
Symbol
NCVAR
File DB120.AWL must be compiled and transferred to the PLC.
Parameterization of FB2 with instance DB110:
DATA_BLOCK DB110
FB2
BEGIN
END_DATA_BLOCK
Function FC "VariablenCall" : VOID
U
S
U
R
U
U
R
CALL FB2, DB110(
Example: Variable addressing
Reading two R parameters from channel 1, whose address specifications are stored in DB120
as the basic type. The R parameter number is parameterized via parameter "Line<x>".
DATA_BLOCK DB120
VERSION : 0.0
STRUCT
928
Operand
DB120
I 7.7;
M 100.0;
M 100.1;
M 100.0;
I 7.6;
M 102.0;
M 100.0;
Req :=
M 100.0,
NumVar :=
3,
Addr1 :=
"NCVAR".C1AxConfMachAxUsed1,
Addr2 :=
"NCVAR".C1AxConfMachAxUsed2,
Addr3 :=
"NCVAR".C1SpindDefMasterSpind,
Error :=
M102.0,
NDR :=
M100.1,
State :=
MW104,
RD1 :=
P#DB99.DBX0.0 BYTE 1,
RD2 :=
P#DB99.DBX1.0 BYTE 1,
RD3 :=
P#M110.0 INT 1);
// Unassigned user DB, as instance for FB2
// Unassigned machine control panel key
// Activate req.
// NDR completed message
// Terminate job
// Manual error acknowledgment
// Error pending
// Terminate job
// Read three variables
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
Data type
DB120
Basic Functions

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sinumerik 828dSinumerik 840de sl

Table of Contents