
B-63330EN/03 3.INPUTTING AND OUTPUTTING PARAMETERS USING EXTERNAL INPUT/OUTPUT DEVICES
- 21 -
- Inch/metric switching
The data specified for parameters dependent on inch/metric switching,
such as length and feedrate parameters, is determined to be in either
inch or metric mode depending on the mode assumed at input time for
input from the MDI and depending on whether the keyword preceding
the data is I or M for input from an external input/output device.
These I and M keywords are added to data as appropriate when that
data is output from an external input/output device.
If the mode assumed at input time or the keyword does not match the
mode assumed when the data is to be used, for example, the data input
in inch mode is to be used in metric mode, the CNC automatically
converts the data before use, eliminating the need to change the data
according to the mode change. In addition, in the display of parameter
data, data is converted according to the mode assumed at display time,
before the data is displayed. When the data is to be output from the
external input/output device, it is converted back to the original data
according to the keyword or mode.
- Bit type format
N ***** P ******** ;
The 8-digit binary number following P represents the values (0 or 1)
of the bits of the parameter, with the first digit corresponding to bit 0
and the eighth digit to bit 7. Leading zeros cannot be omitted.
; is an end of block character (LF for ISO code and CR for EIA code).
Example
N00010P00000001;
Parameter number 10
Parameter value Bit 0 is 1 and the others are 0.
- Bit axis type format
N ***** A ** P ******** A ** P ******** . . . . ;
The numeric value following N represents the parameter number.
The numeric value following A represents the controlled axis number
(1 or above).
The 8-digit binary number following P represents the values (0 or 1)
of the bits of the parameter for that controlled axis, with the first digit
corresponding to bit 0 and the eighth digit to bit 7. Leading zeros
cannot be omitted.
; is an end of block character (LF for ISO code and CR for EIA code).
Example
N0005A1P10000001A2P10000001A3P10000001A4P00001001....;
Parameter number 1005
Parameter values
First axis: Bits 0 and 7 are 1 and the others are 0.
Second axis: Bits 0 and 7 are 1 and the others are 0.
Third axis: Bits 0 and 7 are 1 and the others are 0.
Fourth axis: Bits 0 and 3 are 1 and the others are 0.