Detailed description
2.12 Block descriptions
Power Line Basic PLC Program (P3)
2-144 Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
Note
After communication between the PLC and NC (read/write NC variables, FB2, 3, 5, or PI
general services, FB4) has been aborted by POWER OFF, the start jobs must be deleted in
the first OB1 run after cold restart or reset (signal: Req = 0).
FB 5 can read GUD variables only if basic program parameter NCKomm has been set to "1"
FB 1, DB 7).
Declaration
FUNCTION_BLOCK FB 5 //Server name
KNOW_HOW_PROTECT
VERSION : 3.0
VAR_INPUT
Req : bool;
Addr: any; //Variables name string
Area: byte; //Area: NCK = 0, channel =
1
Unit : byte;
Index1: INT ; //Field index 1
Index2: INT ; //Field index 2
CnvtToken: BOOL ; //Conversion into 10-byte
token
VarToken: ANY ; //Struct with 10 bytes for
the variable token
END_VAR
VAR_OUTPUT
Error : bool;
Done : bool;
State : word;
END_VAR
VAR_IN_OUT:
RD: any;
END_VAR
BEGIN
END_FUNCTION_BLOCK