View Full Version : Read from Multiple Coils

Thu 02 March 2017, 10:23
I'm trying to read from multiple coils in a brain.

My Lenze VFD has the control bits in coils 0-15 and the spindle speed setting bits in coils 16-31.


I can control and read from the VFD in the Modbus test screen. The VFD can be stopped by addressing just one bit in the control word but will not start using that method.

I imagine the value in the brain would be a decimal representation of the binary word, but I don't know how to break that up for sending to the individual coils in one action.

Any pointers on reading 16 consecutive coils and processing them as a 16bit word, and/or sending a 16bit word to 16 coils?

Thank you in advance for any help.

Thu 02 March 2017, 13:04
Maybe this thread can help