Modbus read input hold?

i’m new to this fantastic world of HA.
i’ve already tried esphome and it works perfectly, but i want to do the same things via a wired link.
i’ve found a 8 in 8 out modbus module but i have a question: if i hold for half a second a push button wired to an input of the modbus module i want to toggle a scene. is it possible with modbus?
Thank you!