Setting the address

Once the Profibus slave was successfully added in TwinCAT, the address of the Profibus slave can be set. Devices with a DIP switch have a preset address. The address on the DIP switch must match the address set in TwinCAT.

For devices without DIP switch the address is only set in TwinCAT.

In this step the address is set in TwinCAT, so that the Profibus slave can be reached by the Profibus master via this address.

Prerequisites for this step:

  • An added Profibus slave in TwinCAT.

Parameterize the Profibus slave as follows:

1. Click on a slave box.
2. Click on the DP Slave tab.
3. Enter a value for the Profibus address in the Station No field, e.g. „31“.
Setting the address 1:
  • You have set the address successfully. The Profibus master can reach the Profibus slave with the set address.
    Next, you can create a PLC project for the Profibus slave.