
8. AUXILIARY FUNCTION
B–63523EN–1/03
998
For M codes which must be used separately from other M codes, always
set their group number to “1”. Such M codes include M00, M01, M02,
M30, M98, and M99. For M codes for which the CNC performs internal
processing in addition to sending them to the machine, also set their group
number to “1”. See Section 8.3 for details.
For M codes you do not need to check, leave them at an initial value of
“0”.
The M codes can be set with a number from 0 to 127. Neither negative
values nor decimal point can be specified.
Basically, item numbers 0 to 99 correspond to M00 to M99. For item
numbers 100 and higher, parameter No. 3441 to 3444 can specify the
corresponding M codes.
The initial values for these parameters are “0”.
3441 First of the M codes assigned to item numbers 100 to 199
3442 First of the M codes assigned to item numbers 200 to 299
3443 First of the M codes assigned to item numbers 300 to 399
3444 First of the M codes assigned to item numbers 400 to 499
[Data type] Two–word
[Valid data range] 0 to 99999999
If a parameter is specified as “0”, it is set to a value specified to the
previous parameter plus 100. For example, if parameter No. 3441 is
specified as “0”, it is internally set to “100”. If parameter No. 3442 is
specified as “0” under this condition, it is internally set to “200”.
Negative values are assumed to be “0”.
Basically, these parameters can be specified as any value. However, the
following conditions should be observed to save memory space.
X + 99 < Y, Y + 99 < Z, and Z + 99 < W
where X = value specified for parameter No. 3441, Y = value specified for
parameter No. 3442, Z = value specified for parameter No. 3443, and W =
value specified for parameter No. 3444.
(Example of setting)
(i) No. 3441 = 0, No. 3442 = 0, No. 3443 = 0, No. 3444 = 0
In this case, these parameters are set to “100”, “200”, “300”, and “400”
respectively. The item numbers correspond directly to the M codes.
The group numbers for M500 and larger M codes are assumed to be
“0” automatically.
(ii)No. 3441 = 200, No. 3442 = 0, No. 3443 = 500, No. 3444 = 800
In this case, parameter No. 3442 is set to “300”. Item numbers 100 to
299 correspond to M200 to M399, 300 to 399 correspond to M500 to
M599, and 400 to 499 correspond to M800 to M899. The group
numbers for M100 to M199, M400 to M499, M600 to M799, M900,
and all M codes with higher numbers are automatically set to “0”.
D Parameter setting