Page 1 of 1

mobus slave

Posted: 17 Dec 2022, 18:02
by chi.pham
Hi Nicolai,

Can you help me to figureout the mobus slave?

1 reload buster image.
2 ssh into the device and set a. piCore, serial and mac address
3. piserial and saw the corect password on the sticker
4. log into Pitory and set the Mbus slave "enable"
5. Added the IO module. And got goot result from piTest -d.
6. asserted 24 VDC to input 1. read from DIO module using "piTest -r I_1 =1" is expected
7. Removed @24 VDC from I_1. Read from DIO module using piTest -r I_1 = 0" is expected
8. asserted 24 VDC to input 1. read from DIO module using "piTest -r I_1 =1" is expected
9. Read from modbus slave by using "piTest -r Input_1 = 0" not correct.
10 using mobus simulation and got the same result.


Image

Re: mobus slave

Posted: 17 Dec 2022, 23:12
by nicolaiB
How did you test the modbus slave?

Nicolai

Re: mobus slave

Posted: 17 Dec 2022, 23:44
by chi.pham
I used QModMaster software. Do i need to write a program to transfer data from DIO to modbus slave? I was thinking using node read but how do i add the flow when system boot up?
Thank you for all you helps

Chi
Image

Re: mobus slave

Posted: 18 Dec 2022, 00:52
by nicolaiB
If you want to copy the DIO's input values to the Modbus slave you will need to write a small programm which does the work. All configured modules are independant from each other and there do not know the values of their neighbors.

Nicolai

Re: mobus slave

Posted: 30 Dec 2022, 17:20
by jube
Hi,
I have the same problem. I would like to see my inputs from the DIO module (for example as Counter_1) in QModMaster.
Does a program for this already exist? What do I need? I don't know where to start except that I probably need Python.

PiCtory:
Screenshot 2022-12-30 at 17-14-20 PiCtory - 1.2.5.jpg
Screenshot 2022-12-30 at 17-14-20 PiCtory - 1.2.5.jpg (785.47 KiB) Viewed 4376 times
Jube

Re: mobus slave

Posted: 30 Dec 2022, 23:26
by nicolaiB
I put together a small example, which should give you an idea for your own application: https://gist.github.com/nbuchwitz/ba652 ... bd39b38015

For more details about how to work with revpimodio please have a look at the documentation, especially the examples: https://revpimodio.org/en/homepage/ 

Nicolai

Re: mobus slave

Posted: 05 Jan 2023, 14:54
by dirk
Hi, just to round this up by the things untold yet - have a look at this wonderful RevolutionPi Gateway Tutorial
and the old-fashioned Python script to do a factory reset via SSH - without support :) https://revolutionpi.de/forum/viewtopic ... .ssh#p7476

Re: mobus slave

Posted: 07 Jan 2023, 17:02
by jube
Thanks! Everything is working as intended.