Detailed description
2.12 Block descriptions
Power Line Basic PLC Program (P3)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
2-111
Area Block Name Type No. Byte S7 Name
C[1] M MD20090:
SPIND_DEF_MASTER_SPIND
int 20090 1 C1SpindDefMasterSpind
S7 (ALIAS) names have been selected in order to:
• Incorporate the channel designation into the name
and
• 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 Operand Data type
NCVAR DB120 DB120
File DB120.AWL must be compiled and transferred to the PLC.
Parameterization of FB 2 with instance DB 110:
DATA_BLOCK DB 110 //Unassigned user DB, as instance for
FB 2
FB 2
BEGIN
END_DATA_BLOCK
Function FC "VariablenCall" : VOID
E 7.7; //Unassigned machine control panel
pushbutton
S M 100.0; //Activate req.
V M 100.1; //NDR completed message
R M 100.0; //Terminate job
V E 7.6; //Manual error acknowledgment
V M 102.0; //Error pending
R M 100.0; //Terminate job
Call fb 2, db 110(
Req := M 100.0,
NumVar := 3, //Read 3 variables
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);