P3: Basic PLC Program for SINUMERIK 840D sl
13.13 Block descriptions
Basic Functions
936 Function Manual, 09/2011, 6FC5397-0BP40-2BA0
Configuration steps
Proceed as follows to read NC variables:
• Select variables with the NC VAR selector.
• Save selected variables in a *.VAR file
• Generate a STEP 7 *.STL source file.
• Generate a DB with the associated address data.
• Enter the symbol for the generated DB in the symbol table so that it is possible to access the address
parameters symbolically in the user program.
• Set FB2 parameters
0 3 Negative acknowledgment, job
not executable
Internal error, try:
NC RESET
1 ... 8 4 Insufficient local user memory
available
Read var. is longer than specified in
RD1 to RD8; in high byte number of
var, in which error occurred
0 5 Format conversion error Error on conversion of var. type
double: Var. is not within S7 REAL
area
0 6 FIFO full Job must be repeated since queue is
full
0 7 Option not set BP parameter "NCKomm" is not set
1 ... 8 8 Incorrect target area (RD) RD1 to RD8 may not be local data
0 9 Transmission occupied Job must be repeated
1 ... 8 10 Error in variable addressing Unit or column/line contains value 0
0 11 Address of variable invalid Check Addr (or variable name), area,
unit
0 12 NumVar = 0 Check parameter NumVar
1 ... 8 13 (0x0d) ANY data reference incorrect NcVar date required has not been
parameterized
State Significance Note
WORD H WORD L