13. Program Support Functions
13.5 User Macro Specifications
344
(4) Parameter read (#100010)
The designated parameter data is read with this system variable.
The following data is read according to the parameter type.
Type Read
data
Value
The values displayed on the Parameter screen are output.
Text
ASCII codes are converted into decimal values.
Example of programs for reading parameters
(1) To read the parameter [#1002 axisno (Number of axes)]
#100000 = 1002 ; .....................Designates [#1002].
#100001 = 0 ;
#101 = #100010 ; .....................Reads the number of axes.
#100001 = 5 ; ...........................Designates [5th part system]. (Program error (P39) occurs.)
#100001 = 10 ; .........................Designates [PLC axis].
#110 = #100010 ; .....................Reads the number of PLC axes.
(2) To read the parameter [#2037 G53ofs (#1 reference position)]
[Conditions]
<1st axis> <2nd axis>
#2037 G53ofs
1000.000 200.000
#100002 = 1 ; ...........................Designates [1st axis].
#100000 = 2037 ; .....................Designates [#2037].
#101 = #100010 ; .....................Reads the [#1 reference position] for the 1st axis.
(#101 = 100.000.)
#100002 = 2 ; ...........................Designates [2nd axis].
#102 = #100010 ; .....................Reads the [#1 reference position] for the 2nd axis.
(#102 = 200.000.)
(3) To read each parameter for each axis and spindle
#100002 = 1 ; ...........................Designates [1st spindle].
#100000 = 3001 ; .....................Designates [#3001].
#101 = #100010 ; .....................Reads the [#3001 slimt1 (Number of limit rotation gears 00)]
for 1st spindle.
#100000 = 3002 ; .....................Designates [#3002].
#102 = #100010 ; .....................Reads the [#3002 slimt2 (Number of limit rotation gears 01)]
for 1st spindle.
#100002 = 2 ; ...........................Designates [2nd spindle].
#100000 = 3001 ; .....................Designates [#3001].
#201 = #100010 ; .....................Reads the [#3001 slimt1 (Number of limit rotation gears 00)]
for 2nd spindle.
#100000 = 3002 ; .....................Designates [#3002].
#202 = #100010 ; .....................Reads the [#3002 slimt2 (Number of limit rotation gears 01)]
for 2nd spindle