Once the order has been successfully executed, the results are entered starting from
DB1200.DBB3000:
Read variable from the NCK Address Signal Values
Parameter DB1200.DBW1000 Variables index 9
DB1200.DBW1002 Location number 2
DB1200.DBW1004 Magazine number 9998
DB1201.DBW1000 Variables index 9
DB1201.DBW1002 Location number 3
DB1201.DBW1004 Magazine number 9998
Job DB1200.DBX0.1 Write variable 0
DB1200.DBX0.2 PI service 0
DB1200.DBB1 Number of variables 2
DB1200.DBX0.0 Start → 1
Result DB1200.DBB2000.0 Job completed. 1
DB1200.DBX2000.1 Error in job 0
DB1200.DBX3000.0 Variable is valid 1
DB1200.DBB3001 Access result 0
DB1200.DBW3004 Data from NC variable n
DB1201.DBX3000.0 Variable is valid 1
DB1201.DBB3001 Access result n
DB1201.DBW3004 Data from NC variable 0
9.7.7 Example: Transporting a tool from a buffer into the magazine
Procedure
A tool is to be moved from a buffer (for example, of a gripper) into the magazine. The empty
location search for the tool from gripper 1 (magazine 9998, location 2) is executed with PI
Service TMMVTL and an order to relocate the tool is generated.
In the PLC user program, enter the parameters in DB1200, and in DB1200.DBX4000.0, set
the start signal of the PI service.
Start PI Services in the NCK
area
Address Signal Values
Parameter DB1200.DBW4004 Tool number 0
DB1200.DBW4006 Source location number 2
DB1200.DBW4008 Source magazine number 9998
DB1201.DBW4010 Target location number -1
DB1201.DBW4012 Target magazine number 1
Job DB1200.DBB4001 PI index 5
DB1200.DBX4000.0 Start → 1
Tool management
9.7 Application example for turning machine
CNC commissioning
314 Commissioning Manual, 10/2015, 6FC5397-3DP40-5BA3