Arduino Modbus Digital pins not working

Hello,

Premise :
I am using Arduino-modbus library (GitHub - andresarmento/modbus-arduino: A library that allows your Arduino to communicate via Modbus protocol, acting as a slave (master in development). Supports serial (RS-232, RS-485) and IP via Ethernet (Modbus IP).) to use my Arduino device as a slave modbus. It is working fine.

Problem:
When i try to write to a Analog output Pin ( %QW0.0 which is pin No 9 in Arduino) using pymodbus, I can see the LED glowing.

But when i try to do the same to a Digital Output Pin ( %QX0.0 which is pin No 7 in Arduino ) using pymodbus the LED is not turning on. Cant seem to understand why.

Any help is appreciated.

Thanks in advance.

Premise :
I am using Arduino-modbus library (GitHub - andresarmento/modbus-arduino: A library that allows your Arduino to communicate via Modbus protocol, acting as a slave (master in development). Supports serial (RS-232, RS-485) and IP via Ethernet (Modbus IP).) to use my Arduino device as a slave modbus. It is working fine.

Which of the five? And using what sketch?