
B-63322EN-2/01 6. SYSTEM CALLS
- 31 -
6.9 DEBUG DISPLAY (CHARACTER STRING)
[Function name] sc_screen_str
[Function] Displays a character string, starting at the position indicated by the
display pointer.
[Format] int sc_screen_str (char *str);
[Input] char *str: Pointer to the character string to be output.
[Output] 0 : Normal end
Nonzero: Abnormal end (the specified character string contains a
usable code).
[Result] The output message can be viewed on the CNC-side message function
screen.
[Note] After a character string is output, the display pointer is updated by the
number of characters in the output character string.
See the attached table for the codes that can be used in this function.
One function call can output up to 76 characters.
If the specified character string consists of more than 76 characters, the
excessive characters are ignored.
The character string must end with '\0' (0x00).
Specifying '\n' (0x0a) causes a line feed. Performing a line feed causes
the line to be cleared to the end of line.
6.10 DEBUG DISPLAY (INTEGER: DECIMAL NUMBER)
[Function name] sc_screen_dec
[Function] Displays an integer in decimal notation, starting at the position
indicated by the display pointer.
[Format] int sc_screen_dec (int num, int dgt);
[Input] int num : Number to be output
int dgt : Number of digits to be displayed (1 to 11)
[Output] 0 : Normal end
Nonzero : Abnormal end (the value specified as the number of digits
to be displayed is invalid).
[Result] The output message can be viewed on the CNC-side message function
screen.
[Note] After the data is output, the display pointer is updated by the number of
characters in the output data.
The display is right-justified.
If the number of digits in the actual number to be displayed is smaller
than the value specified as the number of digits to be displayed, blanks
are output to the positions corresponding to the insufficient digits.
If the number of digits in the actual number to be displayed is larger
than the value specified as the number of digits to be displayed, the
specified value is ignored, and the actual number is output, left-
justified.