====== Command:Z2B ======
--> MS2000 or RM2000 syntax ^
^Format |Z2B axis=[new axis letter ascii code]… |
^Units |ASCII code|
^Remembered |Using SS Z |
^Firmware Required |v8.6d+|
<--
--> Tiger syntax ^
^Format |Z2B axis=[new axis letter ascii code]… |
^Units |ASCII code|
^Type |Axis-Specific |
^Remembered |Using [addr#]SS Z |
<--
Allows the user to change the axis name for a motor axis. The ''current_axis_letter'' must be one of the motor axes names listed with the [[commands:build|BU X command]]. The ''new_axis_letter_ascii_code'' must be the decimal ASCII code for the desired axis name for letters between upper case ''A(65)'' and ''Z(90)''. For the change to take effect, the new setting must be saved to flash memory using [[commands:saveset|SS Z]], followed by a hardware reset. The new axis name will remain in effect unless default settings are restored to the controller.
If the Z2B value of an axis is queried (e.g. ''Z2B Y?''), the axis’ index on the card is returned i.e. the hardware ordering in a zero-indexed fashion (e.g. :A Y=1 for the 2nd axis on the card).
**Note:** Z2B only changes the axis name. The manual input assigned to the motor doesn't change. You can reassign manual input with the [[commands:joystick|JOYSTICK]] command.
== Reply ==
If there are no errors, a positive response of :A will be returned from the controller.
== Example ==
$ Z2B Z=66
:A
change to **B** axis name
$ 2SS Z
:A
Required to save the new name setting to flash. The command starts with 2 because Z is at card address 2.
{{tag>commands tiger ms2000}}