Hi, I am having trouble connecting multiple blocks for modbus functions. For example, if I have connected PLCnext as Client to external server device, I am able to read holding registers with startup program from Modbus TCP library. However, when I try with other function block to read registers from server, it connects to only one function block. There was error with iMT ID. Can you please look into this?
Any help on creating function where I can use different function blocks with udt Client is much appreciated.
Thank you
Hello sidpatel,
I think in this case the project analysis will be helpful. Please contact the Phoenix Contact Support in your local country subsidary. If you company located in germany, please use the following contact:
Support Contacts:
- support@phoenixcontact.de
- +49 5235/3 11 000
Office Hours:
Mo. - Fr. 8:00 Uhr - 16:00
Thanks & BR
Eduard
Hello sidpatel,</p>I think in this case the project analysis will be helpful. Please contact the Phoenix Contact Support in your local country subsidary. If you company located in germany, please use the following contact:</p>**Support Contacts: </strong> </p> - [support@phoenixcontact.de</a></p> - +49 5235/3 11 000</p>Office Hours: </p> Mo. - Fr. 8:00 Uhr - 16:00</p>Thanks & BR </p>Eduard</p>
Thank you for your reply. But, can you please advise on parameter iMT ID? What it is and how it is being used in modbus tcp application? There is not enough information in Modbus TCP 11 library manual.
Hello sidpatel,
the range for iMT_ID is 1 - 10 means, that you can only connect e.g. max 10 FC03 blocks to a MB_TCP_Client.
- → But note, you can also change the input parameters of the FC block to read / write different registers.
- → Normally only one FC of each used FC typ is neccessary in application.
- → Please set the fixed and unique iMT_ID for each FC block in the range from 1-10 (incremet the number for each FC block).
BR Eduard
Hello sidpatel, </p>the range for iMT_ID is 1 - 10 means, that you can only connect e.g. max 10 FC03 blocks to a MB_TCP_Client.</p>- → But note, you can also change the input parameters of the FC block to read / write different registers.</p>- → Normally only one FC of each used FC typ is neccessary in application.</p>- → Please set the fixed and unique iMT_ID for each FC block in the range from 1-10 (incremet the number for each FC block).</p>BR Eduard</p>
Thank you, so much for your reply. I have tried and it worked out.