
Originally Posted by
anthonyb
Hello,
For the moment this is not possible to change the IP address opened by the Modbus Slave.
I guess, the goal is to force the Slave to open a specific Ethernet card.
Currently, as my colleague said, it opens the default communication port (1100 on a straton runtime) of every device's Ethernet cards.
In order to open another port, you can either start the runtime with a specific option (./t5runtime /evsport=xxx) or use the MBSLAVETCP block.
This block allows to open a different port than the communication one.
Eg.:
Inst_MBSLAVETCP (bOpenPort , 1105 );
bOpenOk := Inst_MBSLAVETCP.OK;
Normally this block is only for test purposes; thus it is not officially tested during quality assurance tests so use it carefully. This is also why it is not documented.
I hope it answers to your request
Anthony