Pulse diagram
①
②
③
④
⑤
⑥
Call example
Writing of three channel-specific machine data of channel 1:
Selection of three data with NC VAR selector and storage in file DB120.VAR
S7 (ALIAS) names are selected in order to adopt the block designation into the name and to
remove the characters [ ], which are not permitted in a STEP 7 symbol.
Area
C[1]
C[1]
C[1]
Entry NCVAR for DB120 with the S7 SYMBOL Editor
Symbol
NCVAR
File DB120.AWL must be compiled and transferred to the PLC.
Calling and parameterizing the FB3 with instance DB111
DATA_BLOCK DB111
FB3
BEGIN
Function FC "VariablenCall" : VOID
Basic Functions
Function Manual, 01/2015, 6FC5397-0BP40-5BA2
User: Set request, Req = 0 → 1
FB4: PI service successfully completed, Done = 1
User: Reset request, IF Done == 1 THEN Req = 0
User: IF Done == 1 THEN reset request: 1 → 0
FB4: Reset job confirmation, Done = 0
User: IF Done == 0 AND Error == 0 THEN reset request Req = 1 → 0 not permissible
FB4: PI service completed with errors, Error = 1
User: Reset request, IF Done == 1 OR Error == 1 THEN Req = 0, possible further error handling
Block
Name
RP
rpa[5]
RP
rpa[11]
RP
rpa[14)
Operand
DB120
// Unassigned user DB, as instance for FB3
P3: Basic PLC program for SINUMERIK 840D sl
Type
DOUBLE
DOUBLE
DOUBLE
13.17 Block descriptions
Byte S7 Name
4
rpa_5C1RP
4
rpa_11C1RP
4
rpa_14C1RP
Data type
DB120
935