Modbus write on losant edge agent

I want to set a modbus value on an edge connected device value using a range slider input block in a dashboard.
Is there way to do that?
Do I have to set the slider value first then click a button?
But wait, I can’t use virtual button on an edge device.

The input controls block allows you to send a command to a device.

You could deploy an edge workflow that starts with a Device Command trigger and, given the number in the button’s payload (as set by your range slider), uses the Modbus: Write node set the value on your Modbus register.

Then, of course, deploy this workflow to the edge compute device and you’re ready to go.