You will have to connect a logical signal (PushButton, Switch, etc.) to your coil in the connection editor like this :
Modbus1.1 = Switch1
Where Modbus1 is your Object, you're writing to coil 1, with Switch1.
Please write back if I did not understand your question correctly.
Regards,
Khalid