● Generate a DB with the associated address data.
● Enter the symbol for the generated DB in the symbol table so that it is possible to access
the address parameters symbolically in the user program.
● Parameterizing the FB2
Pulse diagram
①
②
③
④
⑤
⑥
Call example
Reading three channel-specific machine data from channel 1, whose address specifications
are stored in DB120.
Specification of data
The data is selected with the NC VAR selector and saved in the DB120.VAR file. Then the
DB120.AWL file is created from this.
S7 (ALIAS) names are selected.
To adopt the channel designation into the variable name and to delete the characters "[" and
"]", which are not permitted in a STEP 7 symbol, new S7 names are selected:
Area
Block
Name
C[1]
M
MD20070 $MC_AXCONF_MA‐
CHAX_USED[1]
C[1]
M
MD20070 $MC_AXCONF_MA‐
CHAX_USED[2]
C[1]
M
MD20090 $MC_SPIND_DEF_MAS‐
TER_SPIND
Basic Functions
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
User: Set request, Req = 0 → 1
FB4: PI service successfully completed, NDR = 1
User: Reset request, IF NDR == 1 THEN Req = 0
User: IF NDR == 1 THEN reset request: 1 → 0
FB4: Reset job confirmation, NDR = 0
User: IF NDR == 0 AND Error == 0 THEN reset request Req = 1 → 0 not permissible
FB4: PI service completed with errors, Error = 1
User: Reset request, IF NDR == 1 OR Error == 1 THEN Req = 0, possible further error handling
P3: Basic PLC program for SINUMERIK 840D sl
Type
No.
Byte S7 Name
CHAR
20070
1
C1AxConfMachAxUsed1
CHAR
20070
1
C1AxConfMachAxUsed2
INT
20090
1
C1SpindDefMasterSpind
13.17 Block descriptions
927