Gets/sets the enable [value] for joystick operation.


Access: Read/Write

Category: Joystick

Applies to:  All Commander Controllers

ASCII                        JENA                               

               JENA=[value]


Syntax        

               

Read

JENA                

               

Write

JENA=[value]                *

[value] specifies the enable mode based on:

0 = Both X-axis and Y-axis are disabled

1 = Only X-axis enabled

2 = Only Y-axis enabled

3 = Both X-axis and Y-axis are enabled


Reply 

Command is accepted and executed


Read         

Returns the [value]. Decimal equivalent of two-bit binary number.

Bit

Description

Setting

0

Joystick control X-axis

0  –  Disabled

1  –  Enabled

1

Joystick control Y-axis

0  –  Disabled

1  –  Enabled

Write           

OK


Command cannot be processed

       An error message is returned. See Error Codes


Example 

Read        

JENA                * Returns the value of joystick enabled status


Write        

JENA=3         * Enables both X and Y axes.


Notes

  • Do not enable joystick operation while the analog input port connection is opened. If you activate the joystick motion in the open status, the detected voltage will deviate from the invalid range, and the axis may start unexpected motions.
  • When the power is turned on, the command pulse counter is "0", but it may be in a position different from the reference position of the soft limit value. If you operate the joystick in this status, you may hit a mechanical limit before the software limit works. When operating with a joystick, set the reference position "0" in the Homing operation beforehand.


See also

JOYSTICK

JSPD, JDEL, JMAX, JMIN, JTOL, JLIM, AI


Commander Manual

Identification Number