D
I have to write a small Modbus application that will be running on a Windows XP PC.
It will be running constantly and every 2 seconds it will be collecting the values of 10 Modbus registers and inserting them into a file or database.
The Computer running the application is connected to the DCS computer system that acts as the Modbus master. The master will be sending commands every 2 seconds to update the values of the registers. The connection will be through Modbus TCP (RTU). The application will be using the second on board Ethernet connection on the PC which is the slave.
(I am quite a newbee in Modbus) Here are my questions:
• What I thought I need is to set up a slave program that listens for Modbus commands 06 (write single register) and 16 (write multiple registers) and sending me the values. It should also know how to handle errors.
• Can someone recommend a package that would do this? Preferably something that would be easy to automate, I use Matlab, autoit3 and Labview, anything that would work with one of these would be great. I looked through the link list and I get a bit lost.
• So far I have been able to find mainly software that would emulate a slave in order to test communication with a master, or others that would act as a master. However what I need is something that would act as a slave. That means as far as I know accept and handle all the commands and would be able to know what is in the registers. Where can I find something like that?
I am currently using autoit for automation. I can also program Matlab or Labview. I know all of these can handle external DLL’s or perhaps Active X. Can you recommend anything in specific that would be easy to set up?
Thanks
It will be running constantly and every 2 seconds it will be collecting the values of 10 Modbus registers and inserting them into a file or database.
The Computer running the application is connected to the DCS computer system that acts as the Modbus master. The master will be sending commands every 2 seconds to update the values of the registers. The connection will be through Modbus TCP (RTU). The application will be using the second on board Ethernet connection on the PC which is the slave.
(I am quite a newbee in Modbus) Here are my questions:
• What I thought I need is to set up a slave program that listens for Modbus commands 06 (write single register) and 16 (write multiple registers) and sending me the values. It should also know how to handle errors.
• Can someone recommend a package that would do this? Preferably something that would be easy to automate, I use Matlab, autoit3 and Labview, anything that would work with one of these would be great. I looked through the link list and I get a bit lost.
• So far I have been able to find mainly software that would emulate a slave in order to test communication with a master, or others that would act as a master. However what I need is something that would act as a slave. That means as far as I know accept and handle all the commands and would be able to know what is in the registers. Where can I find something like that?
I am currently using autoit for automation. I can also program Matlab or Labview. I know all of these can handle external DLL’s or perhaps Active X. Can you recommend anything in specific that would be easy to set up?
Thanks