05-02-2012 07:20 AM
Hi,
I have download the modbus library, and I want to know if I can use it in mode ASCII and how can I do that ?
thanks
05-02-2012 08:53 AM
Yes.
The Modbus subVI's have inputs that define whether you are ASCII or RTU. It is an Enum for the MB init subVI. For the Modbus Serial Master Query, it is a part of the serial parameters cluster that is connected at the bottom of the subVI.
05-03-2012 02:21 AM
It's ok, but the process to send a ASCII command is the same way of RTU mode ?
It's what I do in RTU mode :
Should I use it like that for ASCII mode ?
05-03-2012 09:20 AM
Yes. You don't change the way you use the Modbus API subVI's. The difference is in the underlying subVI's and the way the data is transmitted to the device as hex characters rather than bytes.
By the way, you can typecast the single to an Array of U16's rather than to a U32 that you have to split apart and build into an array.