Welcome to the Industrial Automation website!

NameDescriptionContent
HONG  KANG
E-mail  
Password  
  
Forgot password?
  Register
当前位置:

Based on the S7-300/400 Ethernet module CP343-1 &CP443-1 Modbus TCP used in STEP7 Door (V6.0)

来源: | 作者:佚名 | 发布时间 :2023-11-21 | 620 次浏览: | Share:

id: indicates the ID of the configured connection in Configure Network. The connection ID is the unique identification of the connection between the CPU and the connection partner through the CP. Enter the number for the connection configuration here. This parameter ranges from 1 to 64.

db_param: parameter data block that contains modbus data parameters for the modbus block instance. The CPU determines the value range of this parameter. DB number 0 is reserved for the system and cannot be used. Enter the DB number "DBxy" in plain text format. If multiple connections are to be implemented, the parameter data block can contain the parameters required for all connections in order.

REG_KEY_DB: Registration key used for authorization.

MONITOR: Monitoring time MONITOR is used to monitor incoming data from connection partners. The time format T# is used to specify the monitoring time. It is recommended that the monitoring time be about 1.5s.

In "S7 as server" mode, the input of the second part of the frame is monitored by MONITOR time. If the monitoring time is exceeded, an error is reported. This time is calculated from the receipt of the MODBUS/TCP specific packet header and ends when the request is fully received.

Init: initializes the Modbus block when there is a rising edge in the parameter. Initialization can only be performed if no jobs are currently running. This condition must be ensured in the program by ENQ_ENR = FALSE and BUSY = FALSE.

(2) Parameter data block DB2

Parameter data block DB2 (name MODBUS_PARAM_CP). This parameter DB block is used to set the modbus data area.

Notice To modify Data in the DB block, switch the DB block to Data view and modify the DB block in the Actual value column.

In this example, you need to change DB2 ID2_ID to 16#1 according to the connection Settings in Figure 3-7. To facilitate the mapping of subsequent communication test addresses, change the start and end addresses of the modbus register to 16#0 and 16#1F3 respectively.

3.4 Communication Test

Download the project to the CPU, open the Modsan32 application, the following to the hold register as an example to introduce the communication test process.

First, select connect under the Connection menu for ModScan32 and set the IP address and port number for ModScan32 to access the PLC as the server side.

Finally, set the start address and length of Modbus to be accessed in Modscan32 software (in this test, Modscan32 uses data type 3 and the start address of the access hold register is 10 words of 40001), establish a communication connection with PLC, and carry out data reading.

You can view the communication status in the network configuration window.

Some considerations for using the function block "MODBUSCP" :

1) The S7-300CPU supports communication with multiple Modbus clients through the function block "MODBUSCP" of the Ethernet module CP343-1. The number supported depends on the number of TCP connections supported by the CP343-1. The function block "MODBUSCP" must be invoked once for each client connection. Parameters such as background data block, ID, and port number must be unique.

2) The S7-300CPU can be used as the Server and Client of Modbus TCP through the Ethernet module CP343-1.

3) The S7-300CPU supports multiple protocols through the Ethernet module CP343-1, which can run PROFINET, TCP/IP, S7 and other protocols in addition to Modbus TCP.

4 Configure the Ethernet module as the Modbus TCP Client to establish communication with the communication partner

The following uses the S7-300 single-site system and ModSim32 software as an example to describe how to configure the S7-300 single-site system as the Modbus TCP Client through the Ethernet module CP343-1 to communicate with Modsim32 as the Server.


  • YOKOGAWA CP451-50 processor module
  • YOKOGAWA AAI143-H50 Analog Input Module
  • YOKOGAWA 22.5 × 17.4 × 10 Compact Industrial Control Module
  • YOKOGAWA AMM42 multiplexer input module
  • YOKOGAWA SDV144-S63 Digital Input Module
  • YOKOGAWA AIP830-111 single player keyboard
  • YOKOGAWA S9361DH-00 Terminal Board Module
  • YOKOGAWA ATK4A-00 S1 KS Cable Interface Adapter
  • YOKOGAWA PW701 power module
  • YOKOGAWA AVR10D-A22010 Duplex V-net Router
  • YOKOGAWA PW441-10 power module
  • YOKOGAWA VI451-10 Communication Interface Module
  • YOKOGAWA VC401-10 Coupling Module
  • YOKOGAWA ALP121 Communication Module
  • YOKOGAWA NFAI841-S00 Analog Input Module
  • YOKOGAWA AIP591 Process Control Module
  • YOKOGAWA AIP578 optical link transceiver
  • YOKOGAWA PW501 power module
  • YOKOGAWA YNT511D fiber optic bus repeater
  • YOKOGAWA AIP171 transceiver control module
  • YOKOGAWA VI702 Vnet/IP Interface Card
  • YOKOGAWA 2302-32-VLE-2 electronic mixer
  • YOKOGAWA ATK4A-00 Cable Interface Adapter
  • YOKOGAWA ALR121-S00 Communication Module
  • YOKOGAWA CP461-50 processor module
  • YOKOGAWA AIP121-S00 Control Module
  • YOKOGAWA UR1800 Recorder
  • YOKOGAWA LC82 * A Industrial Controller
  • YOKOGAWA ANR10D bus node unit
  • YOKOGAWA SDV144-S13 Digital Input Module
  • YOKOGAWA NFAI143-H00 Analog Input Module
  • YOKOGAWA EB501 Bus Interface Module
  • YOKOGAWA CP451-10 Process Control Module
  • YOKOGAWA V0/E1/TCAM/L08 Advanced Process Control Module
  • YOKOGAWA VO/E2/TCDM24/L8 high-precision temperature control module
  • YOKOGAWA 16137-119 high-precision digital input module
  • YOKOGAWA 16114-500 module rack
  • YOKOGAWA PSCDM024DCBAN Key Discrete Module
  • YOKOGAWA 16137-151 Process Control Module
  • YOKOGAWA 16137-188 Process Control Module
  • YOKOGAWA 16137-222 Process Controller
  • YOKOGAWA 16137-223 high-precision temperature transmitter
  • YOKOGAWA 16137-153 Digital Input Module
  • YOKOGAWA 866257000 high-precision temperature controller
  • YOKOGAWA 8596020000 Digital I/O Module
  • YOKOGAWA 866256000 high-precision process control module
  • ABB AFS670 19" Ruggedized Switch AFS670-EREEDDDSSEEEEEEEPZYX05.1.0
  • NI VXIpc-871B Controller
  • YOKOGAWA PSCAMAAN Process Control Analog Input Module
  • YOKOGAWA DR1030B60 servo actuator
  • YOKOGAWA ADV551 Digital Output Module
  • YOKOGAWA AAI543 proposed output module
  • YOKOGAWA LR 4220E Level Transmitter
  • YOKOGAWA SR1008B62 External Wiring Module
  • YOKOGAWA SC200S Control Valve Positioner
  • YOKOGAWA PW301 power module
  • YOKOGAWA NP53 * C Precision Control Module
  • YOKOGAWA F3YD64-1A transistor output module
  • YOKOGAWA F3XD64-3N Industrial Module Controller
  • YOKOGAWA F3WD64-3N High Performance Module Controller
  • YOKOGAWA F3SP21-0N CPU module
  • YOKOGAWA F3PU10-0N AC power module
  • YOKOGAWA F3PU06-0N power module
  • YOKOGAWA F3NC02-0N positioning module
  • YOKOGAWA F3NC01-0N positioning module
  • YOKOGAWA F3LC21-1N Multi Link Module
  • YOKOGAWA F3BU06-0N Base Module
  • FORCE PMC234 control module
  • FORCE CPU-2CE/16 Industrial Control CPU Module
  • Foxboro PBCO-D8-010 FBM I/O cards
  • FOXBORO PBCO-D8-009 Digital Output Module
  • FOXBORO FBM207C RH917GY High Density Contact Induction Input Module
  • FOXBORO AD916AE Digital Control System Module
  • FOXBORO FBM217 discrete input module
  • FOXBORO RH926GH processor module
  • FOXBORO H90 H90C9AA0117S Differential Pressure Transmitter
  • FOXBORO P0926GJ high-precision differential pressure transmitter
  • FOXBORO RH928AW control module
  • FOXBORO N-2AX+DIO signal distribution module
  • FOXBORO RH924WA Fiber Optic Network Adapter
  • FOXBORO P0924JH Control System Module
  • FOXBORO H92 Process Automation System
  • FOXBORO PP0926KN control module
  • FOXBORO P0916FH controller
  • FOXBORO E69F-T-I2-JRS on-site installation signal converter
  • FOXBORO P0926JM Standard 200 Series Baseplates
  • FOXBORO E69F-BI2-S Current Pneumatic Signal Converter
  • FOXBORO P0926GU FBM230 Field Equipment System Integration Module
  • FOXBORO RH931RQ cable terminal
  • FOXBORO H92A049E0700 server module
  • FOXBORO H90C9AA0117S Differential Pressure Transmitter
  • FOXBORO RH101AA High Performance Pressure Transmitter
  • FOXBORO FPS400-24 P0922YU power module
  • FOXBORO P0973LN differential pressure transmitter
  • FOXBORO P0926GV FBM231 Field Equipment System Integration Module
  • Foxboro FBM202 P0926EQ thermocouple/mV input module
  • FOXBORO FBMSVL Safety Valve Logic Solver
  • FOXBORO P0926PA Industrial Control Module
  • FOXBORO L0130AD L0130AE-0H Digital Input Module
  • FOXBORO 0399085B 0303440C+0303458A combination control module
  • FOXBORO SY-0399095E SY-0303451D+SY-0303460E DC power module
  • FOXBORO 0399071D 0303440C+0303443B Combination Control Board
  • FOXBORO RH924UQ controller module
  • FOXBORO E69F-TI2-S dual line temperature transmitter
  • FOXBORO 0399144 SY-0301059F SY-1025115C/SY-1025120E Combination Control Board
  • FOXBORO SY-60399001R SY-60301001RB SY-60702001RA/SY-61025006RA/SY-61025004RA/SY-61025001RA High performance industrial control module
  • FOXBORO 0399143 SY-0301060R SY-1025115C/SY-1025120E Sensor
  • FOXBORO 873EC-JIPFGZ Industrial Control Module
  • FOXBORO FBM230 P0926GU Communication Module
  • FOXBORO P0916PH P0916JS Input/Output Module
  • FOXBORO P0916PH P0916AL I/O module
  • FOXBORO 870ITEC-AYFNZ-7 Intelligent Electrochemical Transmitter
  • FOXBORO FBM207 P0914TD Voltage Monitor
  • FOXBORO FBM201D Discrete Input Module
  • FOXBORO P0923ZJ switch I/O interface module
  • FOXBORO P0923NG Intelligent Differential Pressure Transmitter
  • FOXBORO P0916KN power module
  • FOXBORO P0916KM I/A series module
  • FOXBORO P0916WE Terminal Cable
  • FOXBORO P0916VB power supply module
  • GE Hydran M2-X Transformer Condition Monitoring Device
  • FOXBORO P0916VL control module
  • FOXBORO P0916VC High Performance Terminal Cable
  • FOXBORO P0916WG system module
  • FOXBORO P0972ZQ interface channel isolation 8-input module
  • FOXBORO P0973BU high-frequency fiber optic jumper
  • FOXBORO P0926MX Splasher Confluencer
  • FOXBORO P0961S connector module