Detailed description
2.12 Block descriptions
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
VAR_INPUT
VarToken:
END_VAR
VAR_OUTPUT
END_VAR
VAR_IN_OUT:
END_VAR
BEGIN
END_FUNCTION_BLOCK
2-144
KNOW_HOW_PROTECT
VERSION : 3.0
Req :
Addr:
Area:
Unit :
Index1:
Index2:
CnvtToken:
Error : bool;
Done : bool;
State : word;
RD:
bool;
any;
byte;
byte;
INT ;
INT ;
BOOL ;
ANY ;
any;
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
//Server name
//Variables name string
//Area: NCK = 0, channel =
1
//Field index 1
//Field index 2
//Conversion into 10-byte
token
//Struct with 10 bytes for
the variable token
Power Line Basic PLC Program (P3)