Siemens SINUMERIK 840Di Function Manual page 1291

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

Advertisement

Call example
Reading of three channel-specific machine data from channel 1, whose address
specifications are stored in DB120.
Select data with NC VAR selector and store in file DB120.VAR; then create file DB120.AWL:
Area
C[1]
C[1]
C[1]
S7 (ALIAS) names have been selected in order to:
• Incorporate the channel designation into the name
• Remove the characters [ ], which are not legal in a STEP 7 symbol.
Entry of the name in the S7 SYMBOL table (e.g., NCVAR for DB 120):
Symbol
NCVAR
File DB120.AWL must be compiled and transferred to the PLC.
Parameterization of FB 2 with instance DB 110:
DATA_BLOCK DB 110
FB 2
BEGIN
END_DATA_BLOCK
Function FC "VariablenCall": VOID
PLC Basic Program Solution Line (P3 sl)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
Block
Name
M
MD20070:
AXCONF_MACHAX_USED[1]
M
MD20070:
AXCONF_MACHAX_USED[2]
M
MD20090:
SPIND_DEF_MASTER_SPIND
and
U
I 7.7;
S
M 100.0;
U
M 100.1;
R
M 100.0;
U
I 7.6;
U
M 102.0;
R
M 100.0;
Call fb 2, db 110(
Req :=
NumVar :=
Addr1 :=
Addr2 :=
Addr3 :=
Error :=
NDR :=
Type No.
char
char
int
Operand
DB120
//Unassigned machine control panel key
//Activate req.
//NDR completed message
//Terminate job
//Manual error acknowledgment
//Error pending
//Terminate job
M 100.0,
3,
NCVAR.C1AxConfMachAxUsed1,
NCVAR.C1AxConfMachAxUsed2,
NCVAR.C1SpindDefMasterSpind,
M102.0,
M100.1,
Detailed Description
2.12 Block descriptions
Byte S7 Name
20070
1
C1AxConfMachAxUsed1
20070
1
C1AxConfMachAxUsed2
20090
1
C1SpindDefMasterSpind
Data type
DB120
//Unassigned user DB, as
instance for FB 2
//Read 3 variables
2-97

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents