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
190 System Manual, 09/2015, A5E03822230-AC
INT 2 Network 1 Network 1
LD SM0.0
RCV VB100, 0
Transmit Complete interrupt: Enable
another receive.
7.3.3
Get port address and set port address (PPI protocol on RS485/RS232)
LAD / FBD
STL
Description
GPA ADDR, PORT
The GET_ADDR instruction reads the station address of the CPU port speci-
fied in PORT and places the value in the address specified in ADDR.
SPA ADDR, PORT
The SET_ADDR instruction sets the port station address (PORT) to the value
specified in ADDR. The new address is not saved permanently. After a power
cycle, the affected port returns to the last address (the one that was down-
loaded with the system block).
Non-fatal error conditions with ENO = 0
SM bits affected
006H Indirect address
0004H Attempted to perform a
SET_ADDR instruction in an interrupt
routine
0090H Port number is invalid
0091H Port address is invalid
None
Input / output
Data type
Operand
ADDR BYTE IB, QB, VB, MB, SMB, SB, LB, AC, *VD, *LD, *AC, Constant
(A constant value is valid only for the Set Port Address instruction.)
PORT BYTE Constant
:
0 or 1
Note: The two available ports are as follows:
Integrated RS485 port (Port 0),
CM01 Signal Board (SB) RS232/RS485 port (Port 1)

Table of Contents

Other manuals for Siemens Simatic S7 Series

Related product manuals