guoke1225 Posted December 9, 2021 Share Posted December 9, 2021 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? Quote Link to comment Share on other sites More sharing options...
steve.milici Posted December 14, 2021 Share Posted December 14, 2021 Both stations cannot have the same IP address. Quote Link to comment Share on other sites More sharing options...
guoke1225 Posted December 14, 2021 Author Share Posted December 14, 2021 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? Quote Link to comment Share on other sites More sharing options...
Omron Forums Support Posted December 14, 2021 Share Posted December 14, 2021 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. Quote Link to comment Share on other sites More sharing options...
guoke1225 Posted December 22, 2021 Author Share Posted December 22, 2021 I still don't understand how to deal with, could you give me the detail about the hand shake, or directly example code. thanks. Quote Link to comment Share on other sites More sharing options...
Omron Forums Support Posted December 23, 2021 Share Posted December 23, 2021 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.MODBUS TEST SETUP EXAMPLE.pdf Quote Link to comment Share on other sites More sharing options...
guoke1225 Posted March 6, 2022 Author Share Posted March 6, 2022 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 ? Quote Link to comment Share on other sites More sharing options...
steve.milici Posted March 10, 2022 Share Posted March 10, 2022 This is a technical support issue. Please contact the Omron Delta Tau (ODT) support group at ODT-Support@Omron.com with your issue details. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.