Detailed description   
2.12 Block descriptions 
  Power Line Basic PLC Program (P3) 
2-114  Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0 
Machine data, GUD 
In order to define machine data and GUDs without a password, the protection levels of the 
data you want to access must be redefined to the lowest level. The procedure is described in 
the Installation Guide (in the section describing the protection level concept) and in the 
Programming Guide Advanced (protection levels for user data). 
 
 
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 3 can only write NC variables if basic program parameter NCKomm has been set to "1" 
(in OB100: FB 1, DB7). When channelspecific variables are written, only variables from one 
and the same channel may be addressed via Addr1 to Addr8 in a job (FB 3 call). 
In areas V and H, different logic axis numbers must not be assigned in one job. (Failure to 
observe this rule results in Error:= TRUE, State:= W#16#02). 
 
NCK variables within one group can be combined in a job: 
 
 Area 
Group 1  C[1]  N  B  Q  T 
Group 2  C[2]  N  B  Q  T 
Group 3  V[.]  H[.]       
 
The same rules apply to channels 3 to 10 as illustrated as examples in the above table in 
groups 1 and 2. 
 
 
Note 
Especially when reading several long strings, the number of usable variables can be less 
than 8. 
 
Declaration 
 
FUNCTION_BLOCK FB 3 
VAR_INPUT 
  Req :  BOOL ; 
  NumVar :  INT ; 
  Addr1 :  ANY ; 
  Unit1 :  BYTE ; 
  Column1 :  WORD ;