Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Issue

Info

Connection could not be established between a Slave-Board in Linux and a Master in Windows.
All three LEDs of the Slave slave board remains on.

Solution

Please follow the below steps to setup the board in Linux as slave and connect it to a master board in Windows.

...

  1. Connect your master to the slave per Profibus

  2. Switch both on

  3. Setup board as slave in Linux:

    1. Compile the driver as explained in GettingStarted here:
      https://kunbus-gmbh.atlassian.net/servicedesk/customer/portal/1/topic/cb393a6c-c5be-4402-81bd-3c01251bda20/article/986939540

    2. Press I : Initialize DF PROFI II

    3. Press O : Open communication channel

    4. Press A : Initialize Slave (You will hear a clacking sound)

    5. Per default, the slave address of the board is 11 and the baudrate is 1500 kBit/s (6th pos.) ( the coding of the baudrate in the example code equals the ranking of the baudrate list in Configurator III. pp. Step 4.a. )

      1. If you wish to change baudrate and slave address, you have to change the defines "SLV_STATION_ADD" and "SLV_BAUDRATE" in the Example.c code and recompile it to get an updated executable.

  4. Setup board as master in Windows with Configurator III:

    1. Create a new configuration with your Profibus-Master module
      (e.g. address 1 and baudrate 1500 kBit/s = pos.6 in the list)

    2. Drag and Drop the slave module in the area to the master (e.g. DF PROFI II DP-Slave)

    3. Add the I/O-configuration to the slave module (e.g. 4byte-in/4byte-out)

    4. Switch to menu bar -> "Online" -> "Driver selection..." -> Search **** PB Devices --> Choose your Master out of the result list.

    5. Click the "Monitor / Modify connect" icon and save your configuration.

    6. The slave module will now be detected.

    7. Confirm to overwrite the FPGA and confirm the difference (the frame of the slave module in Configurator III turns green and the green and yellow LEDs of the board will turn on).

  5. In case the slave is not reachable it will framed red in Configurator III.

    1. Right click at master -> "Online porperties..." -> "Live List" -> here you can read the address of the slave you have actually connected.

      Image RemovedImage Added
    2. Close this window and deactivate the "Monitor / Modify connect" mode by clicking on the same icon.

    3. Right click on the slave with the red frame -> Object properties... -> Set the Slave-Address you have read -> confirm with OK.

    4. Click the "Monitor / Modify connect button" -> your Slave module will now be detected.

  6. In case the I/O-configuration of the slave differes from the connected one, it will be shown with a blue frame in Configurator III.

    1. Right click at Master -> "Online properties..." -> in the coloums "Input bytes" and "Output bytes" you can check the I/O-configuration your connected slave actually has.

    2. Close this window.

    3. Deactivate the "Monitor / Modify connect" mode by clicking on the same icon.

    4. Correct the I/O-Configuration of your slave. ( e.g. green configuration in 6.a. )

    5. Click the "Monitor / Modify connect button" -> your slave module will now be detected (green frame in Configurator III or the green and yellow LEDs are on)

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@968
showSpacefalse
sortmodified
typepage
reversetrue
labelskb-troubleshooting-article
cqllabel in ( "profibus" , "linux" ) and type = "page" and space = "KS"
Page Properties
hiddentrue