01-11-2011 04:29 AM
Dear All,
I am working on 1 application, in that we are using Embedded PC windows7, it is more similiar to Windows7. in that we are getting data from a source panel, this data we have to pass to another pc using rs 485. in my embedded pc windows 7 i have rs485 port. but i am confused how to write data into that rs 485 and how i will read data into another pc from that rs 485 port.
to write and read the data from rs485 , we need some register address details. so please guide us on that part.
01-11-2011 06:32 AM
I think that if you install NI VISA you can select from the block diagram 'VISA OPEN', and wire a control to it. From the control you can select the correct COM port.
01-11-2011 08:44 AM
ya my rs485 port address is COM2, and i have used it, i have to write data into particular register address, so i have to define the register address and write data into that.
01-11-2011 11:17 AM
so whats the communication protocol?
For example, I use Modbus RTU over RS 485
01-11-2011 10:53 PM
yes i have to use modbus RTU
as a communication protocol.....
01-12-2011 06:21 AM
Ok, now with what are you communicating?
For example, I'm using Bronkhorst Flowmeters. They have specified Baudrate, parity and stop bits for their equipment.
See attached snippet for how to open communication (download the Modbus library for NI).
Next, wire the visa resource name to MB master query (VI from the modbus library). There are several things you can do: read or write digital values or read or write words.
if you're familiar with that you're good to go, if not post and I'll help you out.
Now what is important is that you know which registers you can read and write from your device. The manufacturer should give a list.
Also, make sure your device has the correct NODE ADRESS configured!
Apologies for the messy figures, dont know what happened :S
Felix