EasyManua.ls Logo

Siemens SIMATIC S7 - Page 215

Siemens SIMATIC S7
866 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Program instructions
7.3 Communication
S7-200 SMART
System Manual, V2.3, 07/2017, A5E03822230-AF
215
Non-fatal errors with ENO = 0
SM bits affected
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
Input / output
Data type
Operand
ADDR DWORD ID, QD, VD, MD, SMD, SD, LD, AC, *VD, *LD, *AC
MASK
DWORD
ID, QD, VD, MD, SMD, SD, LD, AC, *VD, *LD, *AC
GATE
DWORD
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.
Execution of the SIP_A
DDR instruction causes the CPU to store the IP address, subnet
mask, and gateway values in persistent memory.
Example
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":
Octet decimal value
Hexadecimal value
192
C0
168
A8
2
02
150
96
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.)

Table of Contents

Other manuals for Siemens SIMATIC S7

Related product manuals