|
|
|
12. PROGRAM COMMAND
B-64693EN-1/01
- 2074 - 12.6.2 Indirect Axis Address Command Overview When the custom macro function is enabled, indirect specification by an axis number can be performed Explanation - Indirect axis address Indirect axis address AX[] can be used to perform a command for an axis with an axis number (AX[]
(axis-number) :1 to number-of-control-axis (Number of each path for a multipath system)
:Value for the axis specified by its axis number 1. AX[1]=100.0; A value of 100.000 is specified for the first axis. 2. AX[#500]=200.0; A value of 200.000 is specified for the axis having the value stored in #500 as its 3. AX[#500+1]=300.0; A value of 300.000 is specified for the axis having the value stored in #500 plus 4. SETVN 500 [ABC]; AX[#ABC]=400.0;
A value of 400.000 is specified for the axis having the value stored in 5. SETVN 500 [ABC]; AX[[#ABC]+1]=500.0;
A value of 500.000 is specified for the axis having the value stored in 6. SETVN 500 [ABC]; AX[#ABC+1]=500.0;
The alarm PS0114”ILLEGAL EXPRESSION FORMAT” occurs.
- AXNUM function AXNUM[] can be used to obtain an axis number. AXNUM[(axis-name)]; |