change slave_IP_address / slave_TCP_port

Topics about the Software of Revolution Pi
Post Reply
Maxence
Posts: 1
Joined: 17 Aug 2021, 17:15

change slave_IP_address / slave_TCP_port

Post by Maxence »

Hello,

I am looking if it is possible de change the slave_IP_address and slave_TCP_port by software.
I am writing a application for a customer, where we need to install a few identical configuration but to request information each on a specific PLC by modbus master.
I am expecting to give the PCL IP address by a config file read a the start of the program.

I am working with a Kunbus Pi Core 3

Many thanks in advance for you answer

Regards

Maxence
User avatar
dirk
KUNBUS
Posts: 2174
Joined: 15 Dec 2016, 13:19

Re: change slave_IP_address / slave_TCP_port

Post by dirk »

Hi Maxence, in PiCtory there are values which cannot be changed dynamically, e.g. "MEM".
A workaround is to edit the "_config.rsc", e.g. with "sed". Then use "piTest -x" to make this change live.
Post Reply