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.
Get port address and set port address (PPI protocol on RS485/RS232)
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.
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
• 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
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)