
6. FUNCTIONS OF THE MACRO
EXECUTOR
B–62093E–1/02
PROGRAMMING
82
(1) Decimal point specification of every address in block writing
The number of digits after the decimal point of every address can be
specified. With this specification, the contents of the variable number
which was specified to #8523 becomes the number of digits after the
decimal point of address A, and it is possible to determine the number
of digits after the decimal point of every address, as shown below.
#8523=501 ;
#501 is the number of digits after the decimal point of address A
#502 is the number of digits after the decimal point of address B
:
:
#525 is the number of digits after the decimal point of address Y
#526 is the number of digits after the decimal point of address Z
Specify <vacant> or 0 – 7 for the number of digits after the decimal
point. In the case of <vacant>, it is considered that no decimal point
exists in the address.
(Example)
If address code=A, number=1.2345678
Decimal point specification
= <blank> A1
= 0 A1.
= 1 A1.2
= 2 A1.23
= 3 A1.235
*
= 4 A1.2346 *
= 5 A1.23457 *
= 6 A1.234568 *
= 7 A1.2345678
* The data less than the specified digits is rounded off.
When #8523 is 0, auto setting is conducted by the system conditions
(mm input/inch input, 0.1µm instruction) and specified address.
#8520 – #8523 is set to 0 when the power is turned on.
(2) Writing a block coded in characters (G329Pp)
Use this command to write a program whose data is not coded in
words. This command writes the program data coded in units of
characters in a variable area.
The block to be written must be defined beforehand in ASCII code
in a macro variable area. This command writes the data after the block
specified by the program number and block number.
The maximum number of variable data items is indicated by address
P. If EOB or EOR is detected while the specified variable data is being
written, data writing ends at the EOB or EOR. When neither EOB
nor EOR is found, the complete data indicated by address P is written.
(ASCII string definition)
#8520 = program–number
#8521 = block–number
#8522 = number–of–variable–at–the–beginning–of–the–
ASCII–string
G329 P20 ;
IF[#8529 NE 0]GOTO900 ; ← Error check