08-22-2006 10:51 AM
Function | Parameter | Value | Modbus Address | Input / Output |
Start | #18.31 | 1 | 41831 | Input |
Stop | #18.31 | 0 | 41831 | Input |
Direction | #6.33 | 0 = Fwd, 1 = Rev | 40633 | Input |
08-22-2006 11:10 AM
08-22-2006 11:30 AM
08-22-2006 11:38 AM
Thanks for the reply Khalid and Uncle bump,
I am using MB Serial Master Query.vi and as you mentioned, I used the func. code, starting address, qty and data. But, there is something called "Modbus Data Unit In" . Do I have to use that to actually send the data to the device?
Thanks,
08-22-2006 12:00 PM
No, you don't need to use the "MDU In" cluster if you've entered your commands in the "Modbus Command" cluster ... this saves you the trouble of converting decimal to hex, etc.
@chokro wrote:
... I am using MB Serial Master Query.vi and as you mentioned, I used the func. code, starting address, qty and data. But, there is something called "Modbus Data Unit In" . Do I have to use that to actually send the data to the device?
10-20-2006 11:45 AM
hi all,
I am looking at this vi from NIModbus.llb and I am bit confused in inputs and outputs.
MB Modbus Demo Box Example.vi
On the front panel of this vi, there are digital and analog inputs and outputs. What really confusing me is that in the block diagram, outputs are used as inputs and inputs as outputs. Also, when i run the vi, I can control the outputs but not the inputs.
Any suggestion or explanation? I am sure I am understanding it wrong.
Thank you,
11-02-2007 09:02 AM
11-06-2007 08:57 AM
Hi jabili,
What version of LabVIEW are you using? Does the device you are communicating with read hexadecimal or decimal registers?
The developer zone article LabVIEW Through Modbus Serial Devices explains in good detail how to communicate to devices using modbus.
A few other articles that might be useful in your application are located below.
Modbus Register Mapping in LabVIEW 8.x
Conversion between Hex and Decimal
How do I Interpret Modbus Registers Written in Hexadecimal Format?
Regards,
11-10-2007 02:23 AM
11-19-2007 07:15 PM