
4. CONVERSATIONAL MACRO FUNCTION
B–62073E–2/03
76
#104 : 91 (5BH) “[”
#105 : 35 (23H) “#”
#106 : 50 (32H) “2”
#107 : 93 (5DH) “]”
#108 : 59 (3BH) “;”
When a character–type block is read using the word–type block
reading function (G375), completion code 253 is returned to #8529.
If this code is returned, read the specified block again using the
character–type block reading function (G328).
#8520=Program number ;
#8521=Block number ;
#8522=Reading variable number ;
G375 ; (Word–type block reading function)
IF [#8529 EQ 253] GOTO100 ;
:
N100 G328 ;
(Character–type block reading function)
(10)Writing the specified character–type block (G329)
This control code allows program data to be written to a specified area
in character units even if non–word–type data is specified. First,
define the program data in the macro variable area with ASCII codes.
Then, execute this control code to write it to the specified area.
#8520= Program number ;
#8521= Block number ;
#8522= Number of the first ASCII code string
G329 P10 ;
IF [#8529 NE 0] GOTO900 ; (Error check)
Instructions, such as P that specifies the maximum number of data
items to be written, are used in the same manner as for control code
G376 (writing word–type blocks).
(11)Background Edit Status
The background edit status of the CNC can be read in the form of a
variable by using the conversational or auxiliary macro.
#8526: The background editing is
0:suspended
1:in progress
(12)The Number of Registered Programs
The number of programs registered in the CNC program memory can
be read in the form of a variable by using the conversational or
auxiliary macro.
#8527: The number of registered programs
(13)Free Capacity of CNC Program Memory
The free capacity of the CNC program memory can be read in the
form of a variable by using the conversational or auxiliary macro.
#8528: Free capacity of the CNC program memory
(number of characters)