You might write your own code. It is not difficult. Start by studying :
the MODBUS specifications[
^].
Suppose you want to write 1 to the coil at address 250. Then you have to send on the serial line the following request (assuming the lave address is 1):
slv fun address data checksum
0x01 0x05 0x00 0xFA 0xFF 0x00 0x0B 0xAC
The only tricky part is the checksum computation. However, just
Googling you could find available code for that.