Invite a Co-worker
Send a co-worker an invite to the Exchange portal.Just enter their email address and we’ll connect them to register. After joining, they will belong to the same company.
Send Invite Cancel
80572members
346459posts

Can we define another TCP port for Modbus TCP request?

sesa199905_brid
Ensign Ensign
Ensign

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.

Tags (1)
1 Reply 1
SEStig
Crewman Crewman
Crewman
0 Likes
0
66

Re: Can we define another TCP port for Modbus TCP request?

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 (1)