
B-63943EN-2/01 6.MACRO EXECUTOR FUNCTION
- 213 -
Example 2
#8520 = Program number ;
#8521 = Block number;
#8522 = ASCII code string start number
G329P10;
IF [#8529 NE 0] GOTO 900; (Error check)
The command P for specifying the maximum number of write data
items is the same as for the function for writing a specified word-type
block (G326).
NOTE
This command cannot register a program.
If an attempt is made to register a program (with
"O" placed at the start of write data), the error code
(#8529=202) is posted.
Specifying the location of a decimal point for each address when writing a
block
When writing a block, the number of decimal places can be specified
at each address. The number of decimal places at address A is
specified using a value assigned to a variable number specified in
#8523. The number of decimal places for each address can be
determined as follows:
#8523=501;
#501 is used to represent the number of decimal places at address A.
#502 is used to represent the number of decimal places at address B.
:
#525 is used to represent the number of decimal places at address Y.
#526 is used to represent the number of decimal places at address Z.
Specify <null> or integer 0 to 7 as the number of decimal places. If
<null> is specified, an address with no decimal place is assumed.
Example
If address code = A and value = 1.2345678:
Decimal place specification = <null> 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 numeral is rounded off to the specified
number of decimal places.