EasyManua.ls Logo

Siemens Simatic S7 Series

Siemens Simatic S7 Series
726 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, 09/2015, A5E03822230-AC
191
7.3.4
Get IP address and set IP address (Ethernet)
LAD / FBD
STL
Description
GIP ADDR, MASK, GATE
The GIP_ADDR instruction copies the CPU’s IP address into ADDR, the
CPU’s subnet mask into MASK, and the CPU’s gateway into GATE.
SIP ADDR, MASK, GATE
The SIP_ADDR instruction sets the CPU’s IP address to the value found
in ADDR, the CPU’s subnet mask to the value found in MASK, and the
CPU’s gateway to the value found in GATE.
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
In order to use the SIP_ADDR instruction, the
"IP address data is fixed to the values
below and cannot be changed by other means"
checkbox must be unchecked. This
configuration checkbox is located in the "System Block", "Communication" node in the
"Ethernet" field.
The IP address, subnet mask, and gateway values are written to persistent memory.

Table of Contents

Other manuals for Siemens Simatic S7 Series

Related product manuals