JENA – Joystick enable
Enables/disables joystick operation. The joystick enable parameter is a 2-bit value. For example, a joystick enable value of 3 means the joystick feature is enabled on both the X and Y axes.
Applies to: CMD-4CR, CMD-4EX-SA
ASCII JENA
Standalone JOYENA
Syntax:
Read:
JENA * ASCII
JOYENA * Standalone
Write:
JENA=[enabled] * ASCII
JOYENA=[enabled] * Standalone
Where: [enabled] 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 [enabled] 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:
JSPD, JDEL, JMAX, JMIN, JTOL, JLIM, AI