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 | 949 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.


  • LTi SO84.450 Servo Drive Controller - 450A Three-Phase BG7
  • LTi SO84.375 Servo Drive Controller - 375A Three-Phase BG7
  • LTi SO84.325 Servo Drive Controller - 325A Three-Phase BG7
  • LTi SO84.250 Servo Drive Controller - 250A Three-Phase BG7
  • LTi SO84.170 Servo Drive Controller - 170A Three-Phase BG6a
  • LTi SO84.143 Servo Drive Controller - 143A Three-Phase BG6a
  • LTi SO84.110 Servo Drive Controller - 110A Three-Phase BG6
  • LTi SO84.090 Servo Drive Controller - 90A Three-Phase BG6
  • LTi SO84.072 Servo Drive Controller - 72A Three-Phase BG5
  • LTi SO84.060 Servo Drive Controller - 60A Three-Phase BG5
  • LTi SO84.045 Servo Drive Controller - 45A Three-Phase BG5
  • LTi SO84.032 Servo Drive Controller - 32A Three-Phase BG4
  • LTi SO84.024 Servo Drive Controller - 24A Three-Phase BG4
  • LTi SO84.020 Servo Drive Controller - 20A Three-Phase BG3
  • LTi SO84.016 Servo Drive Controller - 16A Three-Phase BG3
  • LTi SO84.012 Servo Drive Controller - 12A Three-Phase BG2
  • LTi SO84.008 Servo Drive Controller - 8A Three-Phase BG2
  • LTi SO84.006 Servo Drive Controller - Three-Phase 230-480V 6A
  • LTi SO84.004 Servo Drive Controller - Three-Phase 230-480V 4A
  • LTi SO82.004 Servo Drive Controller - Single-Phase 230V 4A
  • HMS Anybus AB7646-F Gateway Manual
  • Schneider ATV930D75N4 Inverter Manual
  • Mitsubishi Q2ASHCPU-S1 System Manual
  • Fanuc A20B-3300-0319 Board Specification
  • Mitsubishi QD60P8-G Counter Module Guide
  • Nidec Unidrive M701 Inverter Manual
  • ABB AO895 Analog Output Module Guide
  • Mitsubishi Q2ASHCPU Controller System Manual
  • ABB Pluto S20 v2 Safety PLC Manual
  • Omron CJ1W-NC413 Position Module Manual
  • B&R X20AI4632 Analog Input Module 4 Channel
  • OMRON CS1G-CPU44H Ver. 4.1 CPU Unit PLC
  • Beckhoff EL2911-2200 TwinSAFE Logic Terminal for EtherCAT
  • Mitsubishi 2D-TZ368 Parallel I/O Interface Card
  • Mitsubishi A3ACPU PLC CPU Module for MELSEC A Series
  • Mitsubishi NF630-SEW 4P Adjustable Circuit Breaker 300-630A
  • Keyence XG-8700L Multi-camera Vision System for Inspection
  • Beckhoff C6017-0010 Ultra Compact Industrial PC
  • B&R 3AT660.6 PLC Module from Automation Panel Series
  • GE F31X300CCHALG2 PC Board with 531X133PRUAPG1 Card
  • STMicroelectronics STM32L100R8T6ATR MCU Arm Cortex-M3
  • Omron CS1W-CLK13 Controller Link Unit
  • Schneider BMENOC0301 Ethernet Communication Module
  • HELUKABEL Braids PLC-30 40 E2UK Braided Cable Sleeve
  • Pe323 h0102de323a0 PLC I/O Module
  • Mitsubishi GT2512-STBA GT2512-STBD HMI 12.1 Inch Touch Screen
  • Samsung LTM213UP01 21.3 Inch LCD Monitor Panel
  • Allen-Bradley 440R-W23219 Guardmaster Safety Relay
  • Beckhoff EL2535 EtherCAT Terminal PWM Output
  • HELUKABEL Braids PLC-40 55 E2UK Braided Cable Sleeve
  • Allen Bradley 1769-OB16 16-Point Sourcing Output Module
  • Balluff BES 516-604-DZ-3 Delay Safety Relay for Industrial Timing
  • Siemens 6GK7542-1AX10-0XE0 PROFIBUS Communication Module for S7-1500
  • GE IC693BEM340 FIP Controller for Series 90-30 PLC
  • OMRON C200HG-CPU63-E Programmable Logic Controller CPU Unit
  • Schneider EOCR-PMZ Relay Manual
  • Honeywell C36TC0UA21D0 Controller Specifications
  • Emerson Ovation VE4001S2T2B4 Input Module
  • Omron CJ1M-CPU22 CPU Specifications
  • Grundig NEA02 AES 0 Card Specifications
  • Omron CJ1W-AD081-V1 Analog Input Specifications
  • IDEC FS1A-C21S Safety Controller Manual
  • IFM O3D303 Smart 3D Sensor Specifications
  • Siemens 6SN1123-1AB00-0BA2 Power Module Guide
  • B&R 4PP035.0300-01 Power Panel Manual
  • Siemens 6ES7 153-2BA10-0XB0 IM Module
  • Beckhoff EL3356-0010 Analog Input Module
  • Siemens 3RW4037-1BB04 Soft Starter
  • Lenze EVF8216-E VFD
  • Mitsubishi GT2310-VTBA GT2310-VTBD HMI
  • Allen-Bradley 1764-28BXB PLC MicroLogix 1500
  • SP-RDM2 Relay Module Dual Reader Interface
  • Keyence GC-S84 Programmable Safety Controller
  • Mitsubishi GT2310-VTBA GT2310-VTBD HMI 10.4 Inch
  • Eurotherm MINI8 PLC Temperature Controller
  • Mitsubishi GT2512-STBA GT2512-STBD HMI 12.1 Inch
  • ABB ACS380-040S-02A6-4 VFD 0.75kW 480V
  • Dage PC514 ISSUE A PLC O.P.I Board
  • ROBICON 460T46.01 REV C Printed Circuit Board
  • Omron NX502-1300 Controller Unit NX5 CPU
  • B&R X20CM0985 PLC Module
  • Banner XS26-2DE 85064 Safety Controller
  • Siemens 3SK2122-1AA10 Safety Relay
  • HMS Anybus AB7646-F Gateway PROFIBUS EtherNet/IP
  • Siemens 6SN1118-0DM11-0AA0 SIMODRIVE 611 Card
  • Siemens C98043-A7001-L2-4 CUD1 Control Board
  • Stein Sohn E 083.1 PLC Rack Module 0010026-054100A
  • Allen Bradley 800H-2HA7P Push Button Station
  • Schneider BMXNRP0200 M340 PLC Module
  • KEPCO BOP 200-1M Bipolar Power Supply Amplifier
  • Mitsubishi Q2ASHCPU PLC Module with A1SX42 A1SY42 QC24-R2 A1SD75P2-S3
  • Siemens Siprotec 7SJ61 Overcurrent Protection
  • Keyence LJ-V7000 Controller Laser Profiler
  • Siemens 6EP3437-8SB00-0AY0 Power Supply 20A
  • Pasaban MC-2006 03 CAN Bus PLC Card
  • ETAS ES600.2 PLC Module Prototyping
  • ABB ACS800-01-0005-3+P901 Frequency Converter
  • Omron NX102-1100 PLC Module Machine Automation
  • Square D BMXCPS3500 PLC Power Supply Module
  • Allen-Bradley 96657704 Fiber Optic Converter 1771-AF
  • Corcom 20VK1 Power Line Filter
  • Novellus 2805-11407 PLC Rack Assembly
  • Sick RLY3-EMSS100 Safety Relay Module
  • Microchip PIC12F508-I/P Microcontroller
  • Fanuc A02B-0098-B511 Motherboard
  • Merlin Gerin PB80 PLC Rack Module
  • ABB Pluto S20 V2 CFS Safety PLC
  • Honeywell TK-PRR021 Redundancy Module
  • B&R 7XX419L.50-1 Bus Controller
  • Mitsubishi NV400-SW 3P 300A Breaker
  • B&R X20AT2222 Temperature Module
  • Corcom 20VK1 EMI RFI Filter
  • Novellus 2805-11407 PLC Rack Assy
  • Mitsubishi FXAOM01BD Analog Output Module 4CH
  • NORIS A1-91 PCB Rack Module A1-91-4 A1-91-5 A1-91-6 A1-91-7 A1-91-8
  • Omron ZFV-SC50 Smart Camera Vision Sensor
  • Schneider Electric EOCR-PMZ Motor Protection Relay
  • B&R X20 SO 6300 PLC Module Safety Output
  • Mitsubishi A2ACPU21-S1 CPU Module MELSEC
  • Siemens 6ES7405-0KA02-0AA0 PS405 10A Power Supply
  • Samsung PVU-2424 Power Supply Unit DC24V 24W
  • ATTO controlSYS ATT0-CPU44 PLC with Display
  • Lenze EPZ-10203 CANPT010W3E Absolute Encoder
  • GE IS215WEMAH1A+IS210BPPBH2CAA Mark VIe Embedded Processor and Backplane Power Distribution Board
  • GE IS215AEPAH1CH+IS210BPPBH2CAA Mark VIe Application Processor and Backplane Power Distribution Board
  • GE IS215WECAH1B+IS210BPPBH2CAA Mark VIe Control Platform
  • GE PCM Regulator for EX2100e Power Conversion Module 151X1235DB15SA1
  • Lenze ECSEA048C4B servo drive