13. Program Support Functions
13.5 User Macro Specifications
343
Reading the parameters
System data can be read in with the system variables.
(Note)
These can be used only with some models.
Variable No.
Application
#100000
Parameter # designation
#100001
Part system No. designation
#100002
Axis No./spindle No. designation
#100010
Parameter value read
The parameter values are read in with the following four blocks using these four system variables.
#100000 = 1001 ; ......... Designates the parameter #.
#100001 = 1 ; ............... Designates the part system No.
#100002 = 1 ; ............... Designates the axis No./spindle No.
#100 = #100010 ; ......... Reads the parameter value.
(1) Parameter # designation (#100000)
The parameter to be read in is designated by substituting the parameter # in this system
variable.
If the parameters are read without designating this number, the parameters will be read in the
same manner as if the minimum parameter # (#1) is designated. Once designated, the setting
is held until the parameter # is designated again or until it is reset.
A program error (P39) will occur if a parameter # that does not exist is set.
(2) Part system No. designation (#100001)
Always set "0".
When using the PLC axis, set "10".
(3) Axis/spindle No. designation (#100002)
(a) System variable for axis/spindle No. designation
The axis No./spindle No. of the parameter to be read in is designated by substituting an
index value in this system variable. This designation will be ignored when reading in
parameters that are not for a specific axis or spindle.
If the parameters are read without designating this number, the parameters will be read in
the same manner as if the index value 1 (1st axis/1st spindle) is designated. Once
designated, the setting is held until the index value is designated again or until it is reset.
A program error (P39) will occur if an axis/spindle No. that does not exist is set.
(b) Index
values
Index values
Axis parameter
Spindle parameter
1
1st axis
1st spindle
2
2nd axis
2nd spindle
3
3rd axis
3rd spindle
4
4th axis
4th spindle
5 5th
axis
-
6 6th
axis
-