
13. Program Support Functions
13.11 Parameter Input by Program; G10, G11.1
382
13.11 Parameter Input by Program; G10, G11.1
Function and purpose
The parameters set from the setting and display unit can be changed in the machining programs.
The data format used for the data setting is as follows.
Command format
G10 L70 ; Data setting start command
P parameter No. S part system No. A axis No. H
data ; . . . . . . . . . . .
P parameter No. S part system No. A axis No. D data ; . . . . . . . . . . . .
P parameter No. S part system No. A axis No. <character string> . . .
Bit parameter
Numerical value parameter
Character string parameter
G11 Data setting end command
(Note 1)
The sequence of addresses in a block must be as shown above.
When an address is commanded two or more times, the last command will be valid.
(Note 2)
The part system No. is set in the following manner: "1" for 1st part system, "2" for 2nd
part system, and so forth.
If the address S is omitted, the part system of the executing program will be applied
As for the parameters common to part systems, the command of part system No. will be
ignored.
(Note 3)
The axis No. is set in the following manner: "1" for 1st axis, "2" for 2nd axis, and so forth.
If the address A is omitted, the 1st axis will be applied.
As for the parameters common to axes, the command of axis No. will be ignored.
(Note 4)
Address H is commanded with the combination of setting data (0 or 1) and the bit
designation (
) (0 to 7).
(Note 5)
Only the decimal number can be commanded with the address D.
The value that is smaller than the input setting increment (#1003 iunit) will be round off to
the nearest increment.
(Note 6)
The character string must be put in angled brackets "<" and ">".
If these brackets are not provided, the program error (P33) will occur.
Up to 63 characters can be set.
(Note 7)
Command G10L70, G11.1 in independent blocks. A program error (P33, P421) will
occur if not commanded in independent blocks.
Example of program
(Example)
G10 L70;
P6401 H71 ;
Sets “1” to “#6401 bit7”.
P8204 S1 A2 D1.234 ; Sets “1.234” to #8204 of the 1st part system 2nd axis.
P8621 <X> ;
Sets “x” to “#8621”.
G11.1