Program instructions
7.3 Communication
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
215
Non-fatal errors with ENO = 0
• 006H Indirect address
• 0004H Attempted to execute a
SIP_ADDR instruction in an interrupt
routine
• IP address cannot be changed (see
following note)
• IP address is invalid for the current
subnet
None
ADDR DWORD ID, QD, VD, MD, SMD, SD, LD, AC, *VD, *LD, *AC
ID, QD, VD, MD, SMD, SD, LD, AC, *VD, *LD, *AC
ID, QD, VD, MD, SMD, SD, LD, AC, *VD, *LD, *AC
Note
To use the SIP_ADDR instruction, do not select the "IP address data is fixed to the values
below and cannot be changed by other means"
option for the Ethernet Port in the
Communication section of the System Block.
DDR instruction causes the CPU to store the IP address, subnet
mask, and gateway values in persistent memory.
Note that STEP 7-Micro/WIN SMART displays the outputs for the GIP_ADDR instruction,
ADDR, MASK, and GATE, as string values. For the SIP_ADDR instruction, however, you
provide the ADDR, MASK, and GATE inputs as hexadecimal values. For the SIP_ADDR
input values, think of each octet of the IP address, MASK and GATE as a hexadecimal
number.
For the SIP_ADDR instruction, consider the octets of the IP address "192.168.2.150":
You would use the combined hexadecimal values of the octets to form the ADDR input to the
SIP_ADDR instruction: 16#C0A80296. (You could convert this number to a decimal value,
but the hexadecimal value is representative of the values of the octets.)