Error message of "Controller’s IP address is already used by another device" of codesys profinet

I am working on a function test, which use a X3 through the service channel to change some parameters of Indradrive that the cyclic channel isn’t able to, through the Codesys Profinet for a customer. I used CtrlX work 1.20.11 and Profinet Controller 4.3.1.0 with PLC App 1.20.7. after having the profinet controller added I could scan the bus and found the Indradrive and added into the project. However when login and run an empty project the bus showed red and a message of “Controller’s IP address is already used by another device” showed in the status of the profinet controller. I tried to change the IP address of the drive and it didn’t work. Also changed the version of Codesys Profinet and the version of CtrlX works and apps. I always got the same error message. Cycled the power it still didn’t work. I checked the forum and none had the exact issue. It should be a simple process, but it ended up more complicated. Can someone help me on that?

Thanks,

 

 

Best reply by Jesse

THank both of you for the support. after getting a help from a colleage here I found out what I did miss.

here is what need to do:

after having the profinet scanned there still showed an error

what need to do is selecting the scanned devide then click on the function button Auto-IP below. then it works. I did click the Auto-IP button without selecting the scanned device or another way around, and that was why I didn't get it work. now I know what steps I did miss. after getting it worked we have another issue.

what we want to do is changing a parameter with a subindex number in a drive through the service channel, like P-0-2845.0.1, P-0-2845.0.2...

however from a document we got how to setup the service channel of profinet it mentioned that
index structure:

Bits 13-15 Fixed identifier

Bit 12: 0 Standard data (S-x-xxxx)

Bit 12: 1 Product data (P-x-xxxx)

Bits 11–0 Data block number from 0 to 4095

how can we convert 2845.0.1 into a range of 0-4095? or is there another way to change the parameter like P-0-2845.0.1, P-0-2845.0.2 through the service channel on profinet? let me know if you need more information.

Thank you for your support!

View original
7 replies