MODBUS Configu
Posted: 05 Nov 2021, 22:10
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?
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?