Dear Community User! We are updating our platform to a new system.
Read more: Important information on the platform change.

cancel
Showing results for 
Search instead for 
Did you mean: 

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

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

Jesse
Established Member

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,

Jesse_0-1729084521214.png

 

 

5 REPLIES 5

CodeShepherd
Community Moderator
Community Moderator

So what are the IP settings of your ctrlX CORE, ctrlX EtherCat master and PROFINET controller?

Jesse
Established Member

Thank you for the replay. I don't know why I didn't get an update on the topic. I found it out just when i login again to check if there is any feedback. anyway here are the IP addresses.

the profinet IP address in the PLC is 0.0.0.0

the core XF10: 192.168.1.1 and subnet mark is 255.255.255.0

Jesse_0-1730141164175.png

 

the core XF50 is not connected to any Ethercat devices and show tap0 disabled

Jesse_1-1730141237856.png

 

when the core XF51 is set: DHCP

Jesse_2-1730141398625.png

after adding a profinet controller in the PLC project it showed an error

Jesse_6-1730142921553.png

 

when set the IP address of XF51 to 192.168.0.1 and submask to 255.255.255.0

Jesse_5-1730142108086.png

 

it showed an error

Jesse_7-1730143134373.png

when changed the profitnet IP address of the Indradrive to 192.168.0.2

Jesse_8-1730143312085.png

the drive can be scanned and added to the project, but after downloading an empty project the profinet showed an error

Jesse_9-1730143814020.png

the IP address is used by another device. if changed the IP address of drive to another one it got the same error again.

let me know if you need more information.

 

 

 

 

 

 

CodeShepherd
Community Moderator
Community Moderator

Are there any other applications running on your ctrlX OS occupying the IP address 192.168.0.1? Like data bases or other apps using TCP based communication.

Is the drive directly connected to the ctrlX CORE or are there switches connecting other devices?

Is the needed license added to use the PROFINET controller?

Did you check the available how tos already?

georkueh
Community Moderator
Community Moderator

Hi,

maybe the following steps help to solve your problem.

1. Please download the current PROFINET controller package from our collaboration room. Currently version 4.5.2.0 is provided there.

2. Configure the IP address and subnet mask of the network adapter on ctrlX CORE (This is a X7, but that should not be relevant)  via the network settings. Please note that the ip ranges must not overlap with other network adapters! Otherwise ip telegrams can be misdirected.

georkueh_0-1730902002433.png

3. Select the configured network adapter on the Ethernet node in the PLC Devices tree via the Browse button

georkueh_1-1730902694519.png

4. Download the configuration and scan the bus to assign ip addresses and names to the connected PROFINET devices.

Now the PROFINET controller should work as expected.

 

 

Jesse
Established Member

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

Jesse_0-1731331087624.png

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!

Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist