SIMATIC Instructions
9-196
S7-200 Programmable Controller System Manual
A5E00066097-02
Get Port Address
The Get Port Address instruction reads the station
address of the CPU port specified in PORT and places
the value in the address specified in ADDR.
Get Port Address: Error conditions that set ENO = 0:
SM4.3 (run-time), 0006 (indirect address)
Inputs/Outputs Operands Data Types
ADDR VB, IB, QB, MB, SB, SMB, LB, AC, *VD, *AC, *LD BYTE
PORT Constant BYTE
Set Port Address
The Set Port Address instruction sets the port station
address (PORT) to the value specified in ADDR.
Set Port Address: Error conditions that set ENO = 0:
SM4.3 (run-time), 0006 (indirect address)
The new address is not saved permanently. After a
power cycle, the affected port will return to the last
address (the one that was downloaded with the system
block).
Inputs/Outputs Operands Data Types
ADDR VB, IB, QB, MB, SB, SMB, LB, AC, Constant, *VD, *AC, *LD BYTE
PORT Constant BYTE
S
T
L
GPA ADDR,
PORT
L
A
D
F
B
D
GET ADDR
EN
ADDR
PORT
ENO
222 224
✓✓✓
221 226
✓
S
T
L
SPA ADDR,
PORT
L
A
D
F
B
D
SET ADDR
EN
ADDR
PORT
ENO
222 224
✓✓✓
221 226
✓