Detailed description
2.12 Block descriptions
Power Line Basic PLC Program (P3)
2-118 Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
Entry NCVAR for DB 120 with the S7 SYMBOL Editor:
Symbol Operand Data type
NCVAR DB120 DB120
File DB120.AWL must be compiled and transferred to the PLC.
Call and parameterization of FB 3 with instance DB 111:
DATA_BLOCK DB 111 //Unassigned user DB, as instance for FB 3
FB 3
BEGIN
Function FC "VariablenCall" : VOID
END_DATA_BLOCK
E 7.7; //Unassigned machine control panel pushbutton
S M 100.0; //Activate req.
V M 100.1; //Done 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 3, db 111(
Req := M 100.0,
NumVar := 3, //Write 3 variables
Addr1 := NCVAR.rpa_5C1RP,
Addr2 := NCVAR.rpa_11C1RP,
Addr3 := NCVAR.rpa_14C1RP,
Error := M102.0,
Done := M100.1,
State := MW104,
SD1 := P#DB99.DBX0.0 REAL 1,
SD2 := P#DB99.DBX4.0 REAL 1,
SD3 := P#M110.0 REAL 1);