Read variable from
the NC
Address Signal Valid values
Result DB1200.DBX2000.0 Job completed 0/1
DB1200.DBX2000.1 Error in job 0/1
DB120x.DBX3000.0 Variable is valid 0/1
DB120x.DBB3001 Access result 0/3/5/10
DB120x.DBW3004 Data from NC variable n
Legend:
n = 1 blocked
n = 2 free (<> occupied)
n = 4 reserved for tool in buffer
n = 8 reserved for tool to be loaded
n = 16 occupied in left half location
n = 32 occupied in right half location
n = 64 occupied in top half location
n = 128 occupied in bottom half location
Variable $TC_MPP6 with index 9: T number of the tool at this location
Parameter assignment:
Read variable from
the NC
Address Signal Valid values
Job DB1200.DBX0.0 Start 0/1
DB1200.DBX0.1 Write variable 0
DB1200.DBB1 Number of variables 1 … 8
Parameter DB120x.DBW1000 Variables index 9
DB120x.DBW1002 Location number 1 … 31999
DB120x.DBW1004 Magazine number 1 … 9999
Result DB1200.DBX2000.0 Job completed 0/1
DB1200.DBX2000.1 Error in job 0/1
DB120x.DBX3000.0 Variable is valid 0/1
DB120x.DBB3001 Access result 0/3/5/10
DB120x.DBW3004 Data from NC variable n
n = T number of the tool on the parameterized location
Error (for all variables)
In case of error, DB120x.DBX3000.0 = 0 and an entry is made in the access result:
Values in DB120x.DBB3001
0 No error
3 Illegal access to object
5 Invalid address
10 Object does not exist
Tool management
9.4 PLC Program Blocks
CNC commissioning
296 Commissioning Manual, 10/2015, 6FC5397-3DP40-5BA3