NCT Group 99M Microscope & Magnifier User Manual


 
12 Miscellaneous and Auxiliary Functions
72
M98= call of a subprogram (subroutine)
It will call a subprogram (subroutine).
M99= end of subprogram (subroutine)
It will cause the execution to return to the position of call.
12.2 Auxiliary Function (Codes A, B, C)
Max. three digits can be specified at each of addresses A, B, C provided one (or all) of those
addresses is (are) selected as auxiliary function(s) in parameters. The value specified for the auxiliary
function will be transferred to the PLC.
When a movement command and an auxiliary function are programmed in a given block, function A,
B, C will be issued during or after the motion command. The machine tool builder will define the
way of execution.
For example, an indexing table can be indexed at address B.
12.3 Sequence of Execution of Various Functions
The various functions written in a given block will be executed by the control in the following
sequence:
1. Tool change: M06
2. Tool call: T
3. Spindle range selection: M11, ..., M18
4. Spindle speed: S
5. Spindle management: M03, M04, M05, M19
6. Coolant: M07, M08, M09
7. Other function M: Mnnn
8. Spindle indexing: with function M
9. Function A: A
10. Function B: B
11. Function C: C
12. Program control codes: M00, M01, M02, M30, M96, M97, M98, M99
If the above sequence of executions is not desirable, the block has to be broken up into several
ones, with the functions written in the desired sequence in each block.