Detailed Description
2.12 Block descriptions
PLC Basic Program Solution Line (P3 sl)
2-130 Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
Successful completion of the read process is indicated by a logic "1" in status parameter
Done.
The read process extends over several PLC cycles generally 1 to 2).
The block can be called up in cyclic mode only.
Any errors are indicated by Error and State.
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