- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-05-18 06:47 AM
Can we define another TCP port for Modbus TCP request?
Hello,
I would like to send request to a Modbus TCP/IP slave but on port 503 instead of the standard Modbus TCP 502 port.
I saw the stucture of the ADDMX string is like that ‘r0.s0.ch0{ip.ip.ip.ip}TCP.MBS\\r1.s1.ch1.d.MBS.
Is there any way to used someting different than TCP.MBS when using a Read_Var bloc?
Maybe it is possible with other type of bloc...
Thank you
PS: I have an M580 CPU and a NOC0301 board.
- Labels:
-
05. Networking & Communication
- Tags:
- english
Link copied. Please paste this link to share this article on your social media post.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Link copied. Please paste this link to share this article on your social media post.
Posted: 2022-05-31 05:34 AM
Yes, you definitely can, although I don’t think natively out of an addmx block. If you look at the resultant data out of an addmx block set for the read_var or write_var on normal modbus TCP you will see the port 502 in one of the array entries (off the top of my head it might be entry 6 or 7). From that you could just make a block to write into the ADDR type with the info directly, removing the need for the ADDMX block in this scenario.
- Tags:
- english
Link copied. Please paste this link to share this article on your social media post.

