IP configuration - STEP 7

Communications modules and network components

ft:publication_title
Communications modules and network components
Product
STEP 7
Version
V20
Publication date
11/2024
Language
en-US
IP configuration

Reference

Configuration of the IP parameters in the parameter group of the PROFINET or Ethernet interface

Meaning

You can decide the route and the method with which the IP address of the local interface is obtained and assigned.

With the options available here, it is possible to assign IP addresses "dynamically" outside the configuration.

The selection you make also decides whether communication connections are set up by the project engineering or via the interface in the user program (IP_CONFIG instruction).

The following options are available:

  • Set IP address in the project

    This is the default setting for PLCs. You specify the IP address when the device is networked. The IP address CP is therefore fixed.

    Communications connections must be configured when using this option.

  • Obtain an IP address from a DHCP server

    With this option you specify that the IP address is obtained from a DHCP server when the device starts up.

    • IPv4

      The DHCP server is informed of the MAC address of the interface or the optionally configurable client ID.

      Length of the client ID: 2.. 63 printable ASCII characters

    • IPv6

      The DHCP server is informed of the client ID and must be configured.

      Length of the client ID: 1.. 128 printable ASCII characters

    When configuring of the connections, note the following:
    If you are using DHCP, it is initially not possible to create a fully specified connection in the project because the local IP address is not known. You therefore select "unspecified" with passive connection establishment as the connection type.

  • Set IP address in the user program

    With this option, you specify that the IP address is set over the user program interface (function block IP_CONFIG). This allows the IP address to be supplied dynamically during operation.

    In this case, communications connections are set up only via the interface of the user program. Connection configuration is no longer possible (relates to connections via TCP, ISO‑on‑TCP, UDP, ISO-Transport).

  • Set IP address on the device

    With this option, you specify that the IP address is set by other services outside the configuration.

    In this case, connection configuration is no longer possible (relates to connections via: TCP, ISO‑on‑TCP, UDP, ISO-Transport).

Note

If you have already configured communications connections via the interface configured here and you select a setting other than "Set IP address in the project", a message will then be displayed indicating that the configured connections no longer function.