Requirements
Joined: 1/25/2006. Last visit: 7/9/2020. Rating: (45) Hi everyone, I read that is possible to set S7 200, as Modbus master. I am planning to use one CPU 224XP as modbus master which it will be connect with three Control Techniques drives (which keep up Modbus RTU 2W(two wire)) and one Operater panel. This is a restriction for the Modbus Slave Protocol instructions. The points are not forced and the program can overwrite the values written by the Modbus request. 16 Write multiple holding registers. Function 16 writes multiple holding registers to the V memory of the S7-200. There can be up to 120 words written in one request. Description: Modbus Poll version 9.4.4 Build 1457, self-installing: File name: ModbusPollSetup32Bit.exe: ModbusPollSetup64Bit.exe: Download Site: Download 32bit. Read Digital Input Data From Modbus Slave S7 200 PLC. S7 200 modbus free download. Fenix Modbus / S7 Fenix, software for communication with devices in Modbus Network. You can easily take data from Modb.
- Modbus & OPC Edition or Ultimate Edition
This driver implements a Modbus TCP/IP Server (slave).
Configuration
Auto connect | Periodically tries to connect to the PLC. |
Host | Server IP address (read only). |
Port | TCP port number (default is 502). |
Slave ID | Slave ID. |
Network adapter | Network adapter to use. |
Write Digital | Where to write digital sensor values (Inputs or Coils). |
Read Digital | From where to read digital actuator values (Coils or Inputs). |
Write Register | Where to write analog sensor values (Input Registers or Holding Registers). |
Read Register | From where to read analog actuator values (Holding Registers or Input Registers). |
Scale | Floating sensor values are multiplied by this value; actuator values are divided by it. Using this approach, a floating sensor's value can be converted into an integer, sent to the client and converted back to a real number by dividing it by the scale factor (e.g. an input value of 3.14 with 100 as scale is sent as 314, then it can be divided by the same scale to obtain the real value of 3.14). |
Digital Inputs | Address offset and number of Digital Inputs to use (max 256). |
Digital Outputs | Address offset and number of Digital Outputs to use (max 256). |
Register Inputs | Address offset and number of Register Inputs to use (max 64). |
Register Outputs | Address offset and number of Register Outputs to use (max 64). |
How SIAMATIC S7-1200 Modbus RTU by the read address input word range from 9,999 to 65,535 of
Description
In addition to the software required STEP 7> = V13 SP1 (TIA Portal) , you also need S7-1200 CPU firmware version> = V4 (Article ID: 6ES721x-1xx40-0XB0).
Modbus RTU communication through the following modules.
- CB 1241 RS485 (order number: 6ES7241-1CH30-1XB0) binding S7-1200 CPU firmware to> = V4.1.1.
- CM 1241 RS422 / 485 (order number: 6ES7241-1CH32-0XB0) binding to the communication module firmware upgrade> = V2.1
- CM 1241 RS232 (order number: 6ES7241-1AH32-0XB0) combined with the communication module firmware upgrade to> = V2.1
In addition to 'Modbus_Master' instruction, but also 'Modbus_Comm_Load' command to establish communications.
Are two blocks 7 (TIA Portal) in STEP, 'Instructions> Communication> Communication processor> MODBUS (RTU)> = Version 3.0'.
Fig. 01
Modbus_Comm_Load
Modbus_Comm_Load block is used to select the communication module is provided with communication parameters and parameter master (or slave) of the connection parameters.
Fig. 02
Before the first call Modbus_Master (or Modbus_Slave), non-cyclic blocks run once and must Modbus_Comm_Load run is completed (DONE = 1). Modbus_Comm_Load be in the first cycle of the program call (by enabling the system memory bit M1.0 in the hardware configuration). After inserting the communication module in the hardware configuration, you can sign in name PORT parameter transmission communication module.
BAUD communication parameters (baud rate) and the PARITY (parity) must match the slave address. In the data structure MB_DB transmission parameters MB_DB Modbus_Master (or Modbus_Slave) background data, thus defining the communication module (identified by the parameter PORT) of MODBUS master (or slave). In addition, examples of the data must be changed in Modbus_Comm_Load static parameters for duplex mode of operation, the initial value setting (0 = full duplex (RS232) , 1 = full duplex (RS422) four-wire mode, 4 = half duplex (RS485) two-wire mode).
Fig. 03
Modbus_Master
using function blocks defined Modbus_Master communication module, and configured to select a block Modbus_Comm_Load MODBUS master.
Fig. 04
Modbus_Master block used to select the need to communicate with MODBUS slave match, the specified function code definition storage area and local data. The following table describes the parameters.
Parameter | Description |
---|---|
REQ | Enable communication. |
MB_ADDR | MODBUS-RTU station address. |
MODE | Type of the request: '0' = read, '1' = write '104' = read slave input word (address register 65535) ... |
DATA_ADDR | MODBUS defined start address (offset + = Slave Address Register): the MODE = 104: 0 = offest |
DATA_LEN | MODBUS define the data length (in the form of bits or bytes): the MODE = 104: Words |
DATA_PTR | Defining the master receiving area and local data transmission region. DATA_PTR parameter must reference a data block, the 'Optimized block access' attribute data block must have been disabled. |
Modbus Basics Pdf
Table 01
'MODBUS (RTU)' instruction library also contains functions 'MODBUS' instructions library.
However, if Modbus_Slave block, the MB_HOLD_REG parameter only supports the 'Word' data type of one-dimensional array.
Download
Download include '109474481_S7-1200_Modbus_Master_V13-SP1.zip' project. It contains the following program folder.
Modbus Software Download
- 'CPU-V4_CM1241RS485-V2d1' use S7-1200 CPU firmware version V4.0 of Modbus-RTU communication, and by CM 1241 RS422 / 485 V2 firmware version.
- 'CPU-V4d1_CB1241RS485' use S7-1200 CPU firmware V4.1.1 version of the Modbus-RTU communication via CB 1241 RS485.
Simply Modbus Download
Address of the slave Modbus 1, from a predetermined start address 53248 (16 # D000) 9 may read the input word (such ebm-papst's Motor VarioDrive C) through the RS485 communication using the monitoring table.
Copy '109474481_S7-1200_Modbus_Master_V13-SP1.zip' file into a separate directory and then double-click the file to open spot. You can use STEP 7 to open and process the project data extraction.