Siemens Simatic S7 Series System Manual page 184

Hide thumbs Also See for Simatic S7 Series:
Table of Contents

Advertisement

Program instructions
7.3 Communication
The Receive instruction supports several start conditions:
Idle line detection:
1.
transmission line. A receive is started when the communications line has been quiet or
idle for the number of milliseconds specified in SMW90 or SMW190. When the Receive
instruction in your program is executed, the receive message function initiates a search
for an idle line condition. If any characters are received before the idle line time expires,
the receive message function ignores those characters and restarts the idle line timer
with the time from SMW90 or SMW190. See the following figure. After the idle line time
expires, the receive message function stores all subsequent characters received in the
message buffer.
The idle line time should always be greater than the time to transmit one character (start
bit, data bits, parity and stop bits) at the specified baud rate. A typical value for the idle
line time is three character times at the specified baud rate.
You use idle line detection as a start condition for binary protocols, protocols where there
is not a particular start character, or when the protocol specifies a minimum time between
messages.
Setup: il = 1, sc = 0, bk = 0, SMW90/SMW190 = idle line timeout in milliseconds
Start character detection:
2.
character of a message. A message is started when the start character specified in
SMB88 or SMB188 is received. The receive message function stores the start character
in the receive buffer as the first character of the message. The receive message function
ignores any characters that are received before the start character. The start character
and all characters received after the start character are stored in the message buffer.
Typically, you use start character detection for ASCII protocols in which all messages
start with the same character.
Setup: il = 0, sc = 1, bk = 0, SMW90/SMW190 = don't care, SMB88/SMB188 = start
character
184
The idle line condition is defined as a quiet or idle time on the
Receive instruction is executed: Starts the idle time
Restarts the idle time
Idle time is detected: Starts the Receive Message function
First character is placed in the message buffer
The start character is any character which is used as the first
System Manual, 09/2015, A5E03822230-AC
S7-200 SMART

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Simatic s7-200 smart series

Table of Contents