Detailed Description
2.12 Block descriptions
PLC Basic Program Solution Line (P3 sl)
2-134 Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
Req := M 100.0, //Starting edge for
reading
Addr := GUDVAR.GUDVar1,
Area := B#16#2, //Channel variable
Unit := B#16#1, //Channel 1
Index1 := 0, //No field index
Index2 := 0, //No field index
CnvtToken := TRUE, //Conversion into
10-byte token
VarToken := GUDVAR.GUDVar1T,
Error := M102.0,
Done := M100.1,
State := MW104,
RD := P#DB99.DBX0.0 DINT 1
);
Following a successful FB5 call, fb3 can be written via the returned address.
Call fb 3, db 112(
Req := M 200.0,
NumVar := 1, //Write 1 GUD variable
Addr1 := GUDVAR.GUDVar1T,
Error := M102.0,
Done := M100.1,
State := MW104,
SD1:= P#DB99.DBX0.0 DINT 1);
2.12.6 FB 7: PI_SERV2 General PI services
Description of functions
A detailed description of the FB 7 is contained in the description of FB 4. The FB is multi-
instance-capable. The call is permitted only in cyclic program OB1. The only difference to
FB 4 is the number of WVar1 and subsequent parameters. In FB 7, WVar1 to WVar16 are
defined in VAR_INPUT (FB4 has WVar1 to WVar10). All other parameters are identical to
FB 4. This PI server can be used for all PI services previously implemented with FB 4. In
addition, the PI services listed below can only be handled with FB 7.