
B-63782EN/01 NC FUNCTIONS 31.EXTERNAL DATA INPUT
- 397 -
31 EXTERNAL DATA INPUT
Data can be input and output between CNC and PMC, using signals
such as the following:
- Data that can be input/output by external data input/output
1 Program number
[Input] A program number can be specified to search for a program to be
executed in memory command mode. A program number within the
range of 1 to 99999999 can be specified, using binary codes.
[Output] The number of the main program currently being executed can be
output.
2 Sequence number
[Input] A sequence number can be specified to search for the block to be
executed in memory command mode. A sequence number within the
range of 1 to 99999999 can be specified, using binary codes.
[Output] The sequence number of the block currently being executed can be
output.
3 Tool offset value
[Input] An offset number can be specified to change the tool offset value. The
following specifications are possible, using part of an address:
1. Whether cutter compensation amount or tool length compensation
amount.
2. Whether geometric or wear.
3. Whether an absolute value or incremental value. If an absolute
value, the value specified in the data section is directly used as the
new tool offset value. If an incremental value, the value equal to
the current offset value plus the specified value is assumed to be
the new tool offset value.
An offset number can be specified using binary codes between 0 and
999. If a number other than those provided by the compensation
amount memory (which depend on the option used) is specified, an
alarm is issued. If 0 is specified as an offset number, the tool offset
number currently selected for execution is selected. A compensation
amount can be specified with binary codes within the range of 0 to +/-
999999999, with the least input increment used as the units.
[Output] An offset number can be specified to output the current tool offset
value.
Upon an output request, an offset number must be specified. The
specification is the same as that at input. The output data includes the
corresponding offset number. If offset number 0 is specified, not 0 but