Hello Guest it is April 19, 2024, 03:56:13 AM

Author Topic: Read from Multiple Coils  (Read 3726 times)

0 Members and 1 Guest are viewing this topic.

Read from Multiple Coils
« on: February 21, 2017, 08:43:39 PM »
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.

http://www.actechdrives.com/PDF/Lenze/Lenze-8400-BaseLine.pdf

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.