pascal Posted April 4, 2023 Report Posted April 4, 2023 Hi, I searched the forum, but didn't found something to help me. I have a unistream, connected with +-12 modbus gateway's (via TCP/IP). when I look after I downloaded my program to the PLC, then I see that some modbus slaves are not connected... Is there a limit on how many remote slaves IP's ?
pascal Posted April 4, 2023 Author Report Posted April 4, 2023 It has something to do with slave nr. 255.... What, I don't know, -> when I remove slave 255 then I have a good working modbus "bus".... When I add remote slave 255, then the problems begin -> no updating of some slaves a bug ? or maybe is adress 255 not a good idea in modbus ???
MVP 2023 Flex727 Posted April 4, 2023 MVP 2023 Report Posted April 4, 2023 You also have multiple slaves with the same IP address. I would expect that to be a problem.
Gabriel Franco Posted April 4, 2023 Report Posted April 4, 2023 According to the specifications, Modbus slaves are unlimited. In addition to Flex´s comment, ID=255 is reserved on Modbus. Are you sure those slaves have 255 as ID designation?
MVP 2023 Flex727 Posted April 4, 2023 MVP 2023 Report Posted April 4, 2023 I'm no expert on MODBUS, but I've found that the Slave ID usually only has significance if there is a conversion to serial somewhere in the pathway. If everything stays purely in the Ethernet (TCP, as opposed to RTU) domain then it can be ignored. However, there are a myriad of MODBUS slave implementations by various manufacturers and obviously their recommendations should be followed. I would say that in no case should multiple MODBUS TCP slaves have the same IP address. It looks to me, in your implementation, that you think that you can distinguish between MODBUS TCP slaves merely by Slave ID. You cannot do that.
pascal Posted April 5, 2023 Author Report Posted April 5, 2023 let's describe the system I want to communicate with : In my electrical cabinet, I have several Schneider Compact NSX circuit brakers (industrial fuse 😁) these are equipped with a micrologic that can be read by a device, where you can set the adress of. (IFM modbus interface module) all these IFM modules are coupled with an IFE ( modbus TCP interface for compact NSX). this IFE has an IP adress, where you can communicate with modbus TCP/IP to collect the data I have to adress this IFE with the slave nr. of the IFM module.... the problem is that you can connect 1 NSX directly to the IFE module, standard with adress 255 (can not be changed). Altough maybe I should find some documentation about this device, it's very hard to find... I reprogrammed the unilogic software, without slaves on adress 255 -> worked all night without problem ! now I have 14 slaves, without problems....
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now