I have a Modbus question. I hope there are some Modbus gurus listening. 

I am trying to use mb2hal to control a bunch of VFDs on a gang router . 
I have successfully gotten mb2hal to communicate with the drives but... 

Several of the registers of these drives use a format of "A chain of two 8 bit 
unsigned integers" to quote the manual. 
Basically the drive is using 1 register to write two different pieces of data. 
The mb2hal component is writing both of these data points to a single s32 pin. 
How do I separate this into the two numbers I can use. Is there a component 
that can divide an s32 into 4 u8 numbers? Would I then have to change the 2 u8 
numbers I need back to u32 numbers to be able to use them for anything? 

I've also asked the question here. 
http://www.linuxcnc.org/index.php/english/forum/25-classicladder/26456-modbus-examples?start=30#34112
 
A pdf copy of the drives manual is attached to the first post of the thread. 

-- 

======================================== 

Todd Zuercher 
mailto:[email protected] 

======================================== 
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to