Configuring the YAKO stepper motor driver

I am working on a project that utilizes a RAMP 1.4 card, Arduino MEGA, a stepper motor and an external driver. I have a few YKD2405PR stepper motor drivers of YAKO. One of these drivers was previously used on similar setup (built by somebody else). The problem is that only this old driver is working. The other drivers were purchased recently and it seems that they need to be somehow configured by Modbus. communication. In general, the driver is connected to the RAMPS by a few wires. The RAMPS supplies the step and DIR signal, and the enable signal. The enable signal is wired to the X0 input of the driver and it seems that this input must be configured to receive the signal. How can I configure this input? Can I use a USB to RS485 adapter? What kind of software I need to configure the enable signal? Thanks.

If You post links to the datasheets, or technical manuals, of the drivers, more helpers could assist You.

This is the link to the driver's page on the website of the manufacturer - [ModBus stepper drive YKD2405PR]

The connections to RAMPS are as follows:
"enable" - to X0 input of the driver
STEP - to the PU+ input of the driver
Dir - to the DR+ input of the driver
GND - to PV-, DR-, and XCOM inputs of the driver.

As I understand it, I simply need to configure the X0 input to receive the enable signal. The manual of the driver states that "Each time the driver is powered on, X0-X7 are defaulted to be in unspecified state. In this condition, the input signal is invalid. The user can configure the X0-X7 input via the bus".

Can You translate that into schematics? It makes no sense, minus connected to plus......

Thanks.

This schematic works, at least with the old YKD2405PR driver. My problem is with a couple of new YKD2405PR stepper motor drivers. It seems that the X0 input of them must be configured to receive the ENABLE signal and the configuration must be done through the Modbus (RS485). The manual is not clear. I can buy an USB to RS485 adapter but I don't know: 1) which software should I use; 2) which command should I send in order to configure the X0 as an ENABLE input.