Welcome to the Industrial Automation website!

NameDescriptionContent
XING-Automation
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)

F: | Au:佚名 | DA:2023-11-21 | 1035 Br: | 🔊 点击朗读正文 ❚❚ | 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.


  • Basler D90 96801 100 PCB Card
  • Basler XR2002F Voltage Regulator (110 VAC, 48-480 Hz)
  • Basler SR8A-2B14B3A Regulator
  • Basler 9561500100 Module
  • Basler DECS-400 BE1-11 System
  • Basler DECS-100-B15 Excitation Control
  • Basler SCP 210 Frequency Controller
  • Basler SR4A-2B15B3A Static Voltage Regulator
  • Basler BE1-32R Power Relay
  • Basler PIA2400-17GM Power Interface Adapter
  • Basler MVC 232 Manual Voltage Control Module
  • Basler SSR 32-12 Static Voltage Regulator
  • Basler 5MW AVR Generator Voltage Regulator
  • Basler VR63-4B Voltage Regulator
  • Basler DECS-100-A05 AVR for Engine Generator
  • Basler DECS-100-B15 Automatic Voltage Regulator
  • Basler BE1-32R Directional Power Relay
  • Basler BE1-87B Differential Relay
  • Basler UFOV 260A Protective Module
  • Basler 9-2614-02-100 PCB Rev M
  • Basler DECS-100-B15 Digital AVR
  • Basler 9284900103 PS DECS-400N
  • Basler D4N3H1U Intertie Protection
  • Basler DECS-100-B15 A15 AVR
  • Basler KR4F Voltage Regulator
  • Basler BE26434 T14 Transformer
  • Basler SR8A-2B15B3A Regulator
  • Westinghouse 774B472A12 AR Relay
  • Basler DECS-100-B15 AVR
  • Basler XR2002F Regulator 110V
  • Basler SR125-E Static Regulator
  • Basler SSR 125-12 Regulator
  • Basler MOC2599 Motor Pot
  • Basler BE1-DFPR Feeder Relay
  • Basler CBS 305 Current Boost
  • Basler BE1-25 AutoSync
  • Basler MVC 300 Voltage Control
  • Basler BE3-25A AutoSync
  • Basler KR7FF Static Regulator
  • Basler 90-49000-100 Regulator
  • Basler 880 kVA Dry Type Transformer Specs
  • Basler Electric BE1-25 Sync-Check Relay Specs
  • Basler SSR 125-12 Voltage Regulator Specs
  • Basler Electric BE1-851 Overcurrent Relay Review
  • Basler Electric 149D930G02 Control Sub-Assembly
  • Basler Electric BE1-81O/UT Frequency Relay Specs
  • Basler Electric BE1-51/27C Overcurrent Relay
  • Basler Electric 149D956G02 Industrial Component
  • Basler Electric BE1-51A Overcurrent Relay Specs
  • Basler Electric BE1-40Q Loss of Excitation Relay
  • Basler DECS-200 Excitation Control System
  • Basler DECS-200 Voltage Regulator 56-277V AC / 125V DC
  • Basler BE1-87T Transformer Differential Relay
  • Basler RDP-110-S1 Protection Relay
  • Basler BE1-700V Digital Protective Relay
  • Basler BE1-951 Overcurrent Protection System
  • Basler DECS-300 Digital Excitation Control
  • Basler DECS-200 Digital Excitation Control
  • Basler DECS-200-1C Excitation Control System
  • Basler DECS-200-1L Digital Excitation Control
  • Basler Electric BE1-GPS Generator Protection System
  • Basler Electric DECS-200-1C Digital Excitation Controller
  • Basler Electric DECS125-15 Excitation Control with Power Module
  • Basler Electric BE1-87G Differential Relay
  • Basler Electric BE1-11 Protection System I5A3M2P2N0EA00
  • Basler Electric DECS-200-1C Excitation Control System
  • Basler Electric BE1-11g Generator Protection Relay
  • Basler Electric DECS 125-15-B2C1 V2.0.9 Excitation Control
  • Basler Electric BE1-81O/UT3ED1JA7N2F Frequency Relay
  • Basler Electric BE1-81O/UT3EE1YB7N1F Frequency Relay
  • Basler Electric DECS-200-1L Digital Excitation Control System
  • Basler DECS125-15-B2C1 Excitation Control
  • Basler 9507900205 SSR Retrofit Voltage Regulator
  • Basler BE2000E Digital Voltage Regulator
  • Basler BE1-GPS Generator Protection System
  • Basler DECS-250-CN1CN1N Digital Excitation Control
  • Basler DGC-2020 Genset Controller
  • Basler BE1-81O UT3ED1LA7N0F Frequency Relay (Variant)
  • Basler BE1-81O UT3EE1YA9S0F Frequency Relay (Variant)
  • Basler BE1-81O Over/Under Frequency Relay
  • Basler DECS125-15 Digital Excitation Control
  • Basler Electric BE1-951 Overcurrent Protection System
  • Basler Electric BE1-700V Digital Protective Relay
  • Basler Electric APR63-5 Automatic Voltage Regulator
  • Basler Electric BE1-851 Overcurrent Protection System
  • Basler Electric DECS-250-LN1SN1N Excitation Control
  • Basler Electric BE1-87T Transformer Differential Relay
  • Basler Electric DECS-200-1L Excitation Control System
  • Basler Electric 9310300100 DECS-300 Excitation Control
  • Basler Electric SSE-N 125-4.5KW Shunt Exciter Regulator
  • Basler Electric DGC-2020HD-5NS1DNSBA Genset Controller
  • Basler Electric BE1-81-O/UT3EE1JB7N1F Frequency Relay
  • Basler Electric BE1-81T1EE1WA0N1F Frequency Relay
  • Basler Electric BE1-25M1EA6PN5R1F Sync-Check Relay
  • Basler Electric BE1-GPS Generator Protection System
  • Basler Electric DECS-250-LN1SN1N Excitation Control Rev V
  • Basler Electric DECS-250-CN2CN1N Excitation Control
  • Basler Electric BE1-50/51B-207 Overcurrent Relay
  • Basler Electric DECS-300-C0N0 Excitation Control System
  • Basler Electric DECS-200 Digital Excitation Control System
  • Basler Electric DECS-250-LN1CN1N Excitation Unit
  • Basler Electric DECS-250 LN2SA1D Excitation Unit Specs
  • Basler Electric BE1-87T Transformer Relay Review
  • Basler Electric BE1-11 Protection System
  • Basler Electric BE1-GPS100-E4N1H1N Protection System
  • Allen-Bradley 442G-MABH-R Safety Module
  • Beckhoff CX1030-0111 PLC Assembly Profile
  • FANUC IC693CPU364 PLC Module
  • Orange Denmark Type 200816 220 PLC Specs
  • OMRON C200H-SNT31 Sysmac PLC Module
  • Allen Bradley 20AB022A3AYNANC0 PowerFlex 70
  • OMRON C200HW-PCU01 Position Control Unit
  • ABB AO845A-eA Analog Output Module
  • OMRON CJ1M-CPU22 CPU Unit
  • Allen Bradley 100-E265ED11 Contactor
  • Honeywell 51304511-100 Interface Module
  • SOLEXY BXF3S0101N0018 Gateway Module
  • OMRON CJ2H-CPU65 CPU Unit
  • Automation Direct GS2-45P0 AC Drive
  • M68-2000 2-Axis Motion CNC Controller
  • OMRON CJ1M-CPU11 V3.0 PLC CPU Unit
  • OMRON CJ1W-NC413 4-Axis Positioning Controller
  • OMRON 3G2A3-PRO16 Programming Console HMI
  • Siemens 3VT8440-2AA04-2GA2 Molded Case Circuit Breaker
  • Siemens 3RT5045 Contactor Series
  • OMRON C200HS-CPU01-E SYSMAC PLC Controller
  • OMRON C500-NC103-E Positioning Control Unit
  • OMRON CJ1W-TC001 Temperature Control Unit