Jump to content
OMRON Forums

Modbus TCP communication with UMAC


guoke1225

Recommended Posts

I have an application about the Modbus TCP, There are two sub stations which is taken as client, the both sub station have some input/output module separated , and take UMAC which active socket is 2 as Modbus Server .

I set I67 = $10700, so the start address of client Modbus Buffer is $10780.

I have some puzzle about addressing for each client.

when addressing, if the both sub stations occupy the addresses starting with word 0, how to distinguish their address? or how to avoid overlap address between two sub station?

Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

I knew that the both sub station need to be set different IP address.

the question is that how to distinguish the start Modbus address for each station?

From the data structure, the start of client/server Modbus buffer is always from 0x80 + I67,

so if the both client occupy the start buffer(0x80 + I67), does it address conflict?

 

for example, if I set M1128->X:$10780,0,1 , then I read M1128 in PLC, which sub client I read?

 

do I describe it clearly?

Link to comment
Share on other sites

There is no conflict if each Client on the PMAC uses different Modbus addresses in the User Buffer.

 

However, the same addresses can be written to. It's just that what one writes will get overwritten by the other. I think it might be necessary to hand shake so not reading or writing at the same time. That's how I did it in some test programs.

Link to comment
Share on other sites

I reread your initial post, and now I don't understand the setup. It sounds like there are two Clients and maybe two Servers, and the UMAC is one of the Servers. If that is the case, I can't speak for the other Clients.

 

If PMAC is a Client to multiple Servers which have the same Modbus addresses, there is no conflicting or overlapping because each Server will have a unique IP address, and those addresses will be mapped to unique addresses in PMAC. For example, see the attached "ExampleSetupScreen" to see how it's done in the Modbus Setup window, copied from the attached "MODBUS TEST SETUP EXAMPLE" document.

ExampleSetupScreen.thumb.jpg.c0af5af98b73cb3bd32efbca1e5ac0e9.jpg

MODBUS TEST SETUP EXAMPLE.pdf

Link to comment
Share on other sites

  • 2 months later...

I want to confirm that the Modbus Reference and PMAC Reference are both offset value or actual address? 

I want to read multiple register from Festo Module using modbus, the Modbus reference address is from 45392, and the Pmac reference is 60($10780 + $3C = $107BC), 

M2120->X:$107BC,0,16,U

M2121->Y:$107BC,0,16,U

...

M2136->X:$107C4,0,16,U

M2137->Y:$107C4,0,16,U

the detail setting is below,  actually M2120 to N2137 can't read the status of Festo Input module. 

and I also try to set Modbus reference is 5392, still can't work.

what's wrong ?

1034845278_2022-03-0616_35_50-PEWIN32PRO2---E__Electrical_6_UMACPrograme_UMACV2.0.2_UMAC_PRO_INI.png.bc747dca1f7c47f94809f080814125ab.png

 

2022-03-06 16_36_11-Untitled - CPX-FMT - [ONLINE TCPIP 192.6.94.3].png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...