
B-63783EN-1/01 8.MISCELLANEOUS FUNCTION
- 741 -
8.1 MISCELLANEOUS FUNCTION/2ND AUXILIARY FUNCTION
General
- Miscellaneous Function (M code)
When a numeral of up to 10 digits is specified following address M,
code signal and a strobe signal are sent to the machine. The machine
uses these signals to turn on or off its functions.
Usually, only one M code can be specified in one block. In some cases,
however, up to five M codes can be specified for some types of
machine tools (see 8.3 "Multiple M code per Block")
Also, parameter No. 2030 can specify the maximum digits and if a
specified value exceeds the maximum digits, an alarm PS003 may be
issued.
- 2nd Auxiliary Function (B code)
When ten digits are specified after address B, a code signal and strobe
signal are sent. These signals are used to index the rotation axis of the
machine.
In each block, a single B code can be specified. The maximum number
of digits that can be specified after address B is specified in parameter
No. 2033.
If more digits than the specified value are specified, an alarm PS003
occurs.
For the M series, the address for specifying the 2nd auxiliary function
can be changed from B to another address (A, C, U, V, or W) by
parameter setting (parameter No. 1030).
- Basic procedure
The following signals are used with these functions. (For details of the
spindle-speed function and tool function, see Chapters 9 and 10.)
Output signal
Input
signal
Function
Program
address
Code
signal
Strobe
signal
Distribution
end signal
Completi
on signal
Miscellaneous
function
M M00-M31 MF
Spindle-speed
function
S S00-S31 SF
Tool function T T00-T31 TF
Secondary
auxiliary function
B B00-B31 BF
DEN
IPEN
FIN
Each function uses different program addresses and different signals,
but they all input and output signals in the same way, as described
below. (A sample procedure for the miscellaneous function is
described below. The procedures for the spindle-speed function, tool
function, and secondary auxiliary function, are obtained simply by
substituting S, T, or B in place of M.)