Pendant Support
WiXHC WBH04 Pendant support was added in version 0.10.0
The Community Controller supports the WiXHC WBH04 family of pendants to control the machine. They can be purchased from AliExpress or from other online retailers. There are a number of variations within this family of devices, including 4/6 axis models, and wired/wireless. All them are expected to work with the Community Controller.
This functionality is supported on Windows, Linux, and MacOS. However it is not available for iOS or Android.

Configuration
Possible Configuration Options
The following is a screenshot of the Pendant configuration screen, showing all the possible options:

Enable Integration
To enable the WBH04 pendant support in the Controller:
Plug the Pendant receiver (if wireless) or Pendant USB cable into the computer that will run the Controller software. No drivers are required.
Open the Controller and browse to the Settings screen.
In the Pendant section of Settings select the "Use Hardware Pendant" dropdown, and choose the WHB04 option. This option will only be present if a WHB04 type device is connected to the computer.
Apply the Setting. The pendant can now be used.
Setting a Primary Action on the Pendant
The WBH04 pendant devices have action buttons which can also be set to run Macros. In the Pendant configuration screen is the setting Primary button action is
which defines what happens when the button is pressed. This can be Key-specific Action or Macro. The opposite of this setting is what will occur when the button is pressed at the same time as the FN key.
For example if the Primary button action is
setting is set to Key-specific Action, pressing the keywill increase the Feed override by 10%. Pushing the
+
will run Macro #1.
For example if the Primary button action is
setting is set to Macro, pressing the keywill run Macro #1. Pushing the
+
will run increase the Feed override by 10%
Setting Macros
The pendant supports configuration of up to 10 macros. These macros are short snippets of gcode which will be executed when the corresponding Macro buttons are pressed.
These can be configured in the Settings->Pendant screen by clicking the UI button corresponding to the Macro number.
This will bring up the Macro edit screen:

Usage
To jog with the pendant you must have the enabled on the main control screen. The button is blue when pendant based jogging is enabled. The action/macro buttons will work irrespective if
is enabled or not.

Linux
To use the pedant in Linux your system needs the libhidapi-hidraw0
package.
Linux device permissions
To use the pendant in Linux, you need to grant your user access to the USB device. Most Linux distributions (Ubuntu/Debian/Fedora) automatically add users to the plugdev
group, so the easiest and most secure approach is to create a udev rule that grants this group access to the device.
Run this command to create the udev rule:
sudo sh -c 'echo "SUBSYSTEM==\"hidraw\", ATTRS{idVendor}==\"10ce\", ATTRS{idProduct}==\"eb93\", GROUP=\"plugdev\", MODE=\"0660\"" > /etc/udev/rules.d/90-xhc.rules'
After creating the rule, you may need to reload the udev rules:
sudo udevadm control --reload-rules
sudo udevadm trigger
Known Limitations
There are a number of known limitations to the WBH04 pendant/integration.
Movement step is shown as % on LCD

The pendant LCD screen always shows the movement step (STP) as a %, however the actual movement size per rotary dial "click" is defined by the white text in mm:

Step/Continuous Buttons don't do anything
Currently the machine firmware doesn't support continuous jogging mode, thus the jog movements are always done in steps based on the speed selected by the movement dial. The step/continuous buttons don't do anything when pushed
Small movements appear to "cog"
Due to a number of factors relating to command queue processing on the machine whenever the machine moves from standstill there are a few millisecond pauses between movement steps compared to when multiple jog steps are "enqueued". No steps are missed.
Invalid Axis Values
When the Axis selector is set to Off or the Controller has not yet connected to the machine, the axis position values on the Pendant screen can display incorrect values.
Last updated