MechMate CNC Router Forum

MechMate CNC Router Forum (http://www.mechmate.com/forums/index.php)
-   701. Motor Drives (http://www.mechmate.com/forums/forumdisplay.php?f=14)
-   -   Read from Multiple Coils (http://www.mechmate.com/forums/showthread.php?t=5514)

lukebarber Thu 02 March 2017 10: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.

http://www.actechdrives.com/PDF/Lenz...-StateLine.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.

danilom Thu 02 March 2017 13:04

Maybe this thread can help

http://www.mechmate.com/forums/showt...ght=techniques


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

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