MechMate CNC Router Forum

MechMate CNC Router Forum (
-   701. Motor Drives (
-   -   Read from Multiple Coils (

lukebarber Thu 02 March 2017 09:23

Read from Multiple Coils
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.

danilom Thu 02 March 2017 12:04

Maybe this thread can help

All times are GMT -6. The time now is 18:32.

Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.