Difference between revisions of "MC-Basic:SYSTEM.NUMBERAXES"

From SoftMC-Wiki
Jump to: navigation, search
(Created page with '{{MC-Basic |SHORT FORM= Sys.NAxes<br> System.NAxes |SYNTAX= Sys.NumberAxes'' = <value>''<br> System.NumberAxes'' = <value>''<br> ?Sys.NumberAxes<br> ?System.NumberAxes …')
 
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
{{Languages|MC-Basic:SYSTEM.NUMBERAXES}}
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
Line 6: Line 7:
  
 
|SYNTAX=
 
|SYNTAX=
Sys.NumberAxes'' = <value>''<br>
+
Sys.NumberAxes'' = <''value''>''<br>
  
System.NumberAxes'' = <value>''<br>
+
System.NumberAxes'' = <''value''>''<br>
  
 
?Sys.NumberAxes<br>
 
?Sys.NumberAxes<br>
Line 36: Line 37:
  
 
|LIMITATIONS=
 
|LIMITATIONS=
The value is set only in the Config.prg file. Thereafter, it is Read-Only.
+
The value is set only in the Config.prg file. Thereafter, it is Read only.
  
 
|EXAMPLE=
 
|EXAMPLE=
Line 44: Line 45:
  
 
|SEE ALSO=
 
|SEE ALSO=
* [[Axystems:MC-Basic:SERCOS.NUMBERAXES|SERCOS.NUMBERAXES]]
+
* [[MC-Basic:SERCOS.NUMBERAXES|SERCOS.NUMBERAXES]]
 
 
  
 +
[[Category:MC-Basic:Declarations|SYSTEM.NUMBERAXES]]
 +
[[Category:MC-Basic:System|MC-Basic:System]]
 
}}
 
}}

Latest revision as of 06:42, 2 May 2017

Language: English  • 中文(简体)‎

When used as a query, this instruction returns the number of axes that the controller supports. The number of axes is set at the factory according to the number purchased. It is also possible to use the instruction as a command, to set the actual number of axes to a number less than the value set at the factory. The command must appear on the first line of the Config.prg file.

Short form

Sys.NAxes

System.NAxes

Syntax

Sys.NumberAxes = <value>

System.NumberAxes = <value>

?Sys.NumberAxes

?System.NumberAxes

Availability

All versions

Type

Long

Range

1 to 64

Scope

Configuration, Task or Terminal

Limitations

The value is set only in the Config.prg file. Thereafter, it is Read only.

Examples

System.NumberAxes = 3                             ‘Set the number of axes to 3

?Sys.NAxes

See Also