Detailed Description
2.12 Block descriptions
PLC Basic Program Solution Line (P3 sl)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
2-93
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 2 can read NC variables only if basic program parameter NCKomm ="1" has been set (in
OB 100: FB 1, DB7). The call is permitted only in cyclic program OB1.
When channel-specific variables are read, only the variables of
one and the same channel may be addressed in one job (FB 2 call) via Addr1 to Addr8.
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 2
VAR_INPUT
Req : BOOL ;
NumVar : : INT ;
Addr1 : ANY ;
Unit1 : BYTE ;
Column1 : WORD ;
Line1 : WORD ;
Addr2 : ANY ;
Unit2 : BYTE ;
Column2 : WORD ;
Line2 : WORD ;
Addr3 : ANY ;
Unit3 : BYTE ;
Column3 : WORD ;