EasyManuals Logo

Siemens Simatic S7 Series System Manual

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
Page #179 background imageLoading...
Page #179 background image
Program instructions
7.3 Communication
S7-200 SMART
System Manual, 09/2015, A5E03822230-AC
179
Non-fatal errors with ENO = 0
SM bits affected
0006H Indirect address
0009H Simultaneous Trans-
mit/Receive on port 0
000BH Simultaneous Trans-
mit/Receive on port 1
0090H Port number is invalid
Receive parameter error sets
SM86.6 or SM186.6
CPU is not in Freeport mode
SM 86.6 Receive message terminated on port 0
SM 186.6 Receive message terminated on port 1
Input / output
Data type
Operand
TBL
BYTE
IB, QB, VB, MB, SMB, SB, *VD, *LD, *AC
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)
Using Freeport mode to control the serial communications port
You can select the Freeport mode to control the serial communications port of the CPU by
means of the user program. When you select Freeport mode, your program controls the
operation of the communications port through the use of the receive interrupts, the transmit
interrupts, the Transmit instruction, and the Receive instruction. The communications
protocol is entirely controlled by the user program while in Freeport mode. SMB30 and
SMB130 are used to select the baud rate and parity.
Two special memory bytes are assigned to the two physical ports:
SMB30 to the integrated RS485 port (Port 0)
SMB130 to the CM01 RS232/RS485 Signal Board (SB) port (Port 1)
The Freeport mode is disabled and normal communications are re-established (for example,
HMI device access) when the CPU is in STOP mode.
In the simplest case, you can send a message to a printer or a display using only the
Transmit (XMT) instruction. Other examples include a connection to a bar code reader, a
weigh scale, and a welder. In each case, you must write your program to support the
protocol that is used by the device with which the CPU communicates while in Freeport
mode.
Freeport communications are possible only when the CPU is in RUN mode. Enable the
Freeport mode by setting a value of 01 in the protocol select field of SMB30 (Port 0) or
SMB130 (Port 1). While in Freeport mode, communication with an HMI on the same port is
not possible.

Table of Contents

Other manuals for Siemens Simatic S7 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Siemens Simatic S7 Series and is the answer not in the manual?

Siemens Simatic S7 Series Specifications

General IconGeneral
CPUVaries by model (e.g., S7-300, S7-400, S7-1200, S7-1500)
Communication InterfacesPROFIBUS, PROFINET, Ethernet, MPI
ProgrammingTIA Portal, STEP 7
Programming LanguagesLAD, FBD, STL, SCL, GRAPH
I/O ModulesDigital, Analog, Specialty modules available
Operating Temperature0°C to 60°C (standard models)
MountingDIN rail mounting
Operating Voltage24V DC or 120/230V AC (varies by model)
Protection ClassIP20 (standard models)
MemoryVaries depending on the S7 model. Includes work memory (RAM) for program execution, load memory (EEPROM or Flash) for program storage, and system memory for operating system functions. Memory sizes range from kilobytes to megabytes.

Related product manuals