
B-63322EN-2/01 6. SYSTEM CALLS
- 27 -
The following system call functions are offered in a library.
6.1 INTERRUPT DISABLE
[Function name] sc_irt_mask
[Function] Disables interrupts.
[Format] void sc_irt_mask();
[Input] None.
[Output] None.
[Result] ----
[Note] The high-level process can start only when interrupts are enabled. If
you disabled interrupts, using this function, enable them as soon as you
finish the necessary processing.
6.2 INTERRUPT ENABLE
[Function name] sc_irt_enbl
[Function] Enables interrupts.
[Format] void sc_irt_enbl();
[Input] None.
[Output] None.
[Result] ----
[Note]
6.3 MESSAGE OUTPUT (CHARACTER STRING)
[Function name] sc_print_str
[Function] Displays a message (character string).
[Format] int sc_print_str (char *str);
[Input] char *str: Pointer to a character string to be output.
[Output] 0 : Normal end.
Nonzero : Abnormal end (the specified character string contains
an unusable code).
[Result] The output message can be viewed on the CNC-side message function
screen.
[Note] See the attached table for details on the codes that can be used with this
function.
One function call can output up to 36 characters.
If the specified character string consists of more than 36 characters, the
excessive characters are ignored.
The character string must end with '\0' (0x00).
Specifying '\n' (0x0a) causes a line feed.