MODBUS Configu

Topics about the Software of Revolution Pi
Post Reply
jassa
Posts: 11
Joined: 25 Oct 2021, 12:28

MODBUS Configu

Post by jassa »

Hi,

I have an ADAM 6015 analog IO module:
http://advdownload.advantech.com/productfile/Downloadfile4/1-1M99LTH/ADAM-6000_User_Manaul_Ed_9.pdf

I have a RevPi Core 3 and I've set up a virtual Modbus TCP Master in Pictory. I have a PT-100 in input 0 of the ADAM unit and I'm trying to read the temperature value.

I have followed the steps here - https://revolutionpi.com/tutorials/modb ... -tutorial/

I believe I have the slave address and tcp port configured correctly (using default 10.0.0.1 for the slave address as per the PDF above and 502 as the tcp port). I can ping 10.0.0.1 from the Pi as well.

In the Extended Data section I'm not entirely sure of the values I should be entering.
- I've have 255 as the Unit ID (as I think it will be ignored anyway)
- The Function Code is READ_HOLDING_REGISTERS
- The Register Address is 400001
- The Quantity of Registers is 1
- I'm using Input_Word_1 as the device value.

However when I call piTest -r Input_Word_1 it always returns a hex value of 0.

My only guess is the register address is incorrect? If you look at page 106 of that PDF, this is where I'm getting the values from. Do you have any ideas?
jassa
Posts: 11
Joined: 25 Oct 2021, 12:28

Re: MODBUS Configu

Post by jassa »

It's worth noting I can retrieve the analog input values using the webservice outlined in the PDF above on page 234. E.g I get the channel 1 input value successfully using http://10.0.0.1/analoginput/1/value so the device is operating as expected and the IP settings I have are correct. I believe the issue is with my TCP Modbus virtual device configuration. Any help would be appreciated!
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: MODBUS Configu

Post by dirk »

Hello jassa,
have a look here:
RevolutionPi Gateway Tutorial
You just have to register with your E-Mail address to access it.
The registration page is currently in German language only so here is a short animation how it works:
Attachments
Video.JSD.Registration GIF.gif
Video.JSD.Registration GIF.gif (755.56 KiB) Viewed 2516 times
Post Reply