theColonel26
Lifetime Supporting Member
Is there a way to get the IP address of the controller programmatically? This would be for the 5x70 and 5x80 controller series.
Motivation:
I am creating a code library for our customers to communicate with EIP to our machines. I am trying to make it has idiot proof as possible. Each machine connecting to our PLC would use a different element in an array, this prevents collisions and allows me to track who requested what. The only problem with this is, it requires the Customer to not be stupid by having 2 different PLCs write in to the same array element.
So I thought what if I send the IP address of the customers PLCs in every request so that I can have some code on my end to detect if more than one machine is trying to write in to the same element.
P.S. I am using a Read/Write from the customer side so that I can keep my code as standard as possible.
Motivation:
I am creating a code library for our customers to communicate with EIP to our machines. I am trying to make it has idiot proof as possible. Each machine connecting to our PLC would use a different element in an array, this prevents collisions and allows me to track who requested what. The only problem with this is, it requires the Customer to not be stupid by having 2 different PLCs write in to the same array element.
So I thought what if I send the IP address of the customers PLCs in every request so that I can have some code on my end to detect if more than one machine is trying to write in to the same element.
P.S. I am using a Read/Write from the customer side so that I can keep my code as standard as possible.