How to read Gateway status and Gateway reboot from REVPIMODIO 2

Topics about the Software of Revolution Pi
Post Reply
Jorgem
Posts: 2
Joined: 25 Jun 2019, 12:11

How to read Gateway status and Gateway reboot from REVPIMODIO 2

Post by Jorgem »

Hello all,

Is there a way to read the status of a Gateway from REVPIMODIO 2?

For status of the Gateway I mean things like:

- The Gateway is correctly connected to the RevPI
- The Gateway is connected to a remote device through the industrial network
- The Gateway has received new data from the industrial network
- The industrial network is in OK/failure state

In case of failure, is it possible to reboot the Gateway programmatically ?

Thanks in advance.
User avatar
nicolaiB
KUNBUS
Posts: 931
Joined: 21 Jun 2018, 10:33
Location: Berlin
Contact:

Re: How to read Gateway status and Gateway reboot from REVPIMODIO 2

Post by nicolaiB »

As the gateway modules doesn't write the fieldbus state into the process image this is unfortunately not possible. We use a workaround by sending a alife counter with the data from the plc and check in our monitoring if this counter is frozen. If so the monitoring tries to reset the driver via ioctl (also possible with piTest).

Cheers,
Nicolai
Jorgem
Posts: 2
Joined: 25 Jun 2019, 12:11

Re: How to read Gateway status and Gateway reboot from REVPIMODIO 2

Post by Jorgem »

Thanks, Nicolai.

Right now, we do something simmilar. We use a life bit that is updated by the PLC once in a second.

Kind regards,
Jorge
Post Reply