Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - detunius

Pages: [1]
1
Support Questions / Re: Modbus rtu read Digital Inputs problem
« on: November 29, 2014, 12:56:45 PM »
That worked perfectly, thank you !

Now lot of arduinos can be as part of HMI hardware without using ethernet shields.

For curiosity - What that change actualy does ? becouse i am not a vb specialist.

2
Support Questions / Re: Modbus rtu read Digital Inputs problem
« on: November 29, 2014, 12:25:15 PM »
Yes i am using the same library example. only my slave station adres is 10 and i add more random generators for more digital input values. In the example only for 10001 is added 01 random simulation. But this is not the case. You are not getting communication at all

It is nice to have such quick support.

3
Support Questions / Re: Modbus rtu read Digital Inputs problem
« on: November 29, 2014, 11:54:22 AM »
And with Arduino mega 2560 same thing, i have full communication , but can read only first addres of analog inputs, others no effect.
Communication is made throught the same port as used program arduino usb serial. 9600b 8N1 handshake controll -none.

4
Support Questions / Re: Modbus rtu read Digital Inputs problem
« on: November 29, 2014, 11:46:02 AM »
Arduino leonardo is based on ATmega32u4 maybe this is the problem off communication. I am using arduino uno type board with Atmega328 chip.
Now i will try to do same thing with arduino mega 2560, will post the result.

5
Support Questions / Re: Modbus rtu read Digital Inputs problem
« on: November 29, 2014, 11:27:14 AM »
I am using standar 9600,  8E1,
have you set arduino:


//Assign the modbus device ID. 
  regBank.setId(1)

and the same id in the modbus rtu properties station address ?

6
Support Questions / Modbus rtu read Digital Inputs problem
« on: November 29, 2014, 10:28:09 AM »
Hi,

I have diy setup:

Arduino uno running simple modbus rtu slave library:
http://code.google.com/p/arduino-modbus-slave/downloads/detail?name=MODBUS.zip&can=2&q=
 , some sketch for testing inputs outputs from same arduino libbrary.
My arduino is connected to PC using rs232 ->USB adapter. I am using Windows 7 x64 and AdvancedHMI v35.
Problem is that i can only read (basic indicator) first input address from arduino. like: 10001 , but other basic indicators with next addresses stays inactive all the time.
Write function working perfect, can read and can write without problem adresses 00001-00016, analog read also all ok addr:30001-10010. All workin values are changing as supposed to be. Only one problem with digital inputs read, if i change address for the first basic indicator it starts reading that input, but all others stays inactive.
My arduino setup is working correctly(i think) i have tested it with mbus tester:   http://www.modbus.pl/node/10 it reads the digital inputs corectly with correct addresses.
What could be the problem? is it related with arduino modbus library or i don't know how to put correct adreses in advanced HMI . I am putting them simply 10001, 10002, 10003 one address for each indicator in PlcAddressSelectColor2.
Please help.


Pages: [1]