Addressing via DHCP
10.4 Configuring the client ID
Communication
Function Manual, 05/2021, A5E03735815-AJ
369
Configuring the client ID
To configure the client ID in STEP 7, follow these steps:
1.
Select the PROFINET interface of the S7-1500 CPU in STEP 7.
2.
In the properties of the interface, navigate to "Ethernet addresses" > "Internet Protocol
Version 4 (IPv4)"> "IP address of DHCP server".
3.
For "Operating mode:" select the required operating mode from the drop-down list:
–
Use MAC address as client ID (default setting)
–
User-defined client ID
If you have selected the option "Use MAC address as client ID", then you are already
finished here. For "User-defined client ID", continue with step 4.
4.
Enter a valid client ID for "Client ID".
–
A character string with 7-bit ASCII characters is allowed in the area from 0x21 to 0x7e.
–
Some DHCP servers expect a leading "0" (e.g. some SCALANCE devices). In this case,
enter "\ 0" followed by your client ID.
–
You can also leave the field blank. In this case, you must select the "Client ID can be
changed at runtime" check box.
5.
In order to make the user-defined client ID adaptable during runtime, select the "Client ID
can be changed during runtime" check box.
Adapting the client ID during runtime
You can use the "CommConfig" instruction to adapt the client ID via the user program. Call
the instruction. The DATA parameter must point to a UDT "Conf_ClientId" or a UDT
"Conf_ClientId_Opaque". The client ID must be specified in the UDT.
If you have left the user-defined client ID free in the configuration in STEP 7, then the CPU
uses the MAC address as the client ID until the client ID is adapted for the first time.
Note
Validity of data obtained via DHCP
If you change ClientId with "CommConfig", all data obtained via DHCP will be invalid: IP Suite,
domain name, NTP server, DNS server. Therefore, you should only change ClientId in urgent
cases and not during operation.
You can find more information on the instruction "CommConfig" and the UDTs
"Conf_ClientId" and "Conf_ClientId_Opaque" in the STEP 7 online help.
Summary of Contents for SIMATIC ET 200AL
Page 2: ......
Page 143: ......
Page 218: ......
Page 250: ......
Page 296: ......
Page 337: ......
Page 365: ......
Page 392: ......
Page 419: ......
Page 451: ......
Page 483: ......
Page 597: ......
Page 648: ......
Page 702: ......
Page 739: ......
Page 781: ......
Page 804: ......
Page 828: ......
Page 853: ......
Page 880: ......
Page 906: ......
Page 996: ...Diagnostics ...
Page 1121: ......
Page 1565: ......