Rev Pi Connect Modbus RTU Master Initialisation

Topics about the Software of Revolution Pi
Post Reply
martinw
Posts: 3
Joined: 19 Aug 2022, 10:46
Answers: 0

Rev Pi Connect Modbus RTU Master Initialisation

Post by martinw »

Hi,

I have a control system that requires a Modbus RTU Master to communicate on power up.

The only way I can get the extended data to start transmitting on power up is to "file save as start-config" and then "tools reset driver" via PiCtory, then everything works.

Is there any other way (maybe programmatically?).

Cheers,

Martin
User avatar
nicolaiB
KUNBUS
Posts: 871
Joined: 21 Jun 2018, 10:33
Answers: 7
Location: Berlin
Contact:

Re: Rev Pi Connect Modbus RTU Master Initialisation

Post by nicolaiB »

Hi Martin,

I'm not sure if I understood your questions correct, but you can do the driver reset via `piTest -x` programmatically.

-Nicolai
martinw
Posts: 3
Joined: 19 Aug 2022, 10:46
Answers: 0

Re: Rev Pi Connect Modbus RTU Master Initialisation

Post by martinw »

Hi Nicolai,

I know I can probably look in the code for piTest (-x), but what's the 'C' command to do that, I have a program running that I can add the command to.

Cheers,

Martin
martinw
Posts: 3
Joined: 19 Aug 2022, 10:46
Answers: 0

Re: Rev Pi Connect Modbus RTU Master Initialisation

Post by martinw »

Found it :)

piControlReset();

Cheers,

Martin
Post Reply