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 #438 background imageLoading...
Page #438 background image
Libraries
9.3 Modbus library instructions
S7-200 SMART
438 System Manual, 09/2015, A5E03822230-AC
Parameter
Parity
is set to match the parity of the Modbus slave device. All settings use one
start bit and one stop bit. The allowed values are: 0 (no parity). 1 (odd parity), and 2 (even
parity).
Parameter
Port
sets the physical communication port (0 = RS-485 integrated in CPU, 1 =
RS-485 or RS-232 located on the optional CM01 signal board).
Parameter
Timeout
is set to the number of milliseconds to wait for the response from the
slave. The Timeout value can be set anywhere in the range of 1 millisecond to 32767
milliseconds. A typical value would be 1000 milliseconds (1 second). The Timeout parameter
should be set to a value large enough so that the slave device has time to respond at the
selected baud rate.
The Timeout parameter is used to determine if the Modbus slave device is responding to a
request. The Timeout value determines how long the Modbus Master will wait for the first
character of the response after the last character of the request has been sent. The Modbus
master will receive the entire response from the Modbus slave device if at least one
character of the response is received within the Timeout time.
When the MBUS_CTRL instruction completes, the Done output is turned ON.
The Error output contains the result of executing the instruction.
See also
Modbus master execution error codes (Page 442)
9.3.2.3
MBUS_MSG instruction
Table 9- 24 MBUS_MSG instruction
LAD / FBD
STL
Description
CALL MBUS_MSG, First, Slave,
RW, Addr, Count, DataPtr,
Done, Error
The MBUS_MSG instruction (or MBUS_MSG_P1 for port
1) is used to initiate a request to a Modbus slave and
process the response.
The MBUS_MSG instruction initiates a master request to a Modbus slave when both the EN
input and the First inputs are ON. Sending the request, waiting for the response, and
processing the response usually requires several PLC scan times. The EN input must be ON
to enable the send request, and should remain ON until the Done bit is set ON.

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