Siemens SIMATIC S7-200 System Manual page 108

Programmable controller
Hide thumbs Also See for SIMATIC S7-200:
Table of Contents

Advertisement

S7-200 Programmable Controller System Manual
Example: Transmit and Receive Instructions, continued
I
N
T
0
I
N
T
1
I
N
T
2
94
Network 1
//Receive complete interrupt routine:
//1. If receive status shows receive of
//
end character, then attach a
//
10 ms timer to trigger a transmit and return.
//2. If the receive completed for any other reason,
//
then start a new receive.
LDB=
SMB86, 16#20
MOVB
10, SMB34
ATCH
INT_1, 10
CRETI
NOT
RCV
VB100, 0
Network 1
//10-ms Timer interrupt:
//1. Detach timer interrupt.
//2. Transmit message back to user on port.
LD
SM0.0
DTCH
10
XMT
VB100, 0
Network 1
//Transmit Complete interrupt:
//Enable another receive.
LD
SM0.0
RCV
VB100, 0

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents