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


  • Lauer Systeme LCA620.1 Operating Terminal Industrial HMI Keypad Panel
  • LAUER LXT-K10m Beijer EXTER-K10m Operator Interface Keypad HMI Panel
  • LAUER EPC-PM-1500tc Embedded PC 15 Inch TFT Touch Screen Industrial Computer
  • Lauer Industrial VPC Color Panel Control ID64680
  • Lauer PCSsmart PCS-10TVD-102 Touchscreen Panel
  • Lauer EPC 1200TC Embedded Industrial PC
  • Lauer Control Console PCS 095
  • Lauer PCS-090 Topline Mini Operator Panel PG090.208.D
  • Systeme Lauer 14X Operator Panel
  • Lauer Topline midi PCS950C Operator Panel 24V
  • Lauer PCS090 Topline Mini Control Console – Compact Operator Panel
  • Lauer PCS950 Topline Midi Operator Panel PG 950.100.6 – HMI Terminal
  • Lauer LCA 285.0 Text Display – Alphanumeric Operator Terminal
  • Lauer PCS100 Operator Panel V100.305.7 – Industrial HMI Terminal
  • Systeme Lauer PCS810-1 Interface Module – Communication Board
  • Lauer EPCG Box Embedded 1000TC Motherboard
  • Lauer Systeme LCA285 LCA 285.9 Text Display – 24V Alphanumeric Terminal
  • LAUER PSC090.S Operator Interface Panel – Compact HMI with Serial Communication
  • Lauer PCS590p / PCS595p Busline Mini Profibus DP Panel
  • LAUER PCS009 Control Panel – Compact Operator Terminal
  • Lauer PCS595 Business Mini Profibus DP Control Panel – Compact HMI with Fieldbus
  • LAUER PCS600 Operator Panel PG 600.105.2 – Compact HMI Terminal
  • Lauer LCA Terminal 640.1 – Advanced Operator Workstation
  • LAUER PCS807 Profibus-DP Module 24V DC 5.0VA – Fieldbus Adapter
  • SYSTEME LAUER PCS810.1 Interface Module – Communication Adapter
  • Lauer PCS090 Topline Operator Panel PG 090.204.9 – Compact HMI
  • LAUER PCS950 Rismat Label Operator Panel PG 950.100.6 – HMI Terminal
  • Lauer PCS609 Operator Interface Panel – Keypad Display Terminal
  • LAUER PCS095 Branson Label Operator Panel PG 095.508.A – HMI Terminal
  • Systems Lauer LCA 265 Text Display – Alphanumeric Operator Terminal
  • Lauer PCS-10TVD-102 Touch Panel – Smart HMI for Industrial Control
  • Lauer PCS595i Industrial Operator Panel – High-Performance HMI
  • LAUER PCS950 Operator Panel – Advanced HMI Terminal
  • Lauer PCS100FZ Control Console – Industrial Operator Station
  • Lauer LCA320.0 Industrial Controller – Compact Logic Module
  • Lauer PCS950.000.5 Control Panel PG 950.103.0 – Branson Compatible HMI
  • Lauer LCA Busline 320 Controller Module i01457 – Industrial Logic Unit
  • LAUER PCS095 Complete Controller Display – Graphic Operator Panel
  • Lauer PCS807 Profibus-DP Module PX 807.101.5BM – Fieldbus Adapter
  • Lauer PCS090 Topline Operator Panel PG 090.206.D – Compact HMI Terminal
  • Lauer PCS095 Branson Label Operator Panel PG 095.507.A – HMI Terminal
  • Lauer PCS009 Topline Micro Operating Terminal PG 009.204.1 – Mini HMI
  • LAUER AVTCE210.2 – Industrial Vision and Control Terminal
  • LAUER LCA 245 Text Display SU 245.100.1
  • LAUER PCS807 Profibus DP Module 807.101.5BM
  • Lauer PSC090 Topline Mini Operator Interface Panel – Compact HMI
  • Lauer EPC X 550 TC Embedded Industrial PC with Touch Panel
  • LAUER SYSTEME PCS-900 Operator Panel – Advanced HMI Workstation
  • Lauer PCS095.P PCS Plus Profibus DP Operator Interface – Control Panel
  • Systeme Lauer LCA 180 Text Monitor LD 180.004.1 – Industrial Text Display Terminal
  • LAUER PCS950C – High-Performance Process Control Station
  • LAUER SYSTEME LCA142 – Compact Industrial Controller and Logic Unit
  • LAUER SYSTEME PCS-810-1 – Industrial Panel PC and Control Terminal
  • ASML Right Field Detector 874-0084-002 – Light Intensity Measurement Module
  • ASML IPCB SEM-I-319 Interface Board 4022.636.58181 – VME I/O Module
  • ASML Temperature Sensor Assembly PT1000 4022.481.27732
  • ASML PCB FEI PHILIPS FIDT BD 4022.192.71178
  • ASML IR1-NIR Module 4022.639.86644 – Infrared Near-Infrared Sensor Unit
  • ASML Interface PCB 4022.192.72303
  • SVG Silicon Valley Group 99-54149-01 HMDS Refill Canister for ASML 90S DUV
  • ASML SVG 121-142F Controller Low-Spin Motor Developer
  • ASML 879-0054-002 PROTEUS 150SST Flow Switch
  • ASML 4022.654.97871 LM 4C LPSA Power Supply
  • ASML 28320 PCB Assy OCTU/UC 4022.192.9463
  • ASML 900470 System Interface Card 137285
  • ASML 130-127 PCB Artic
  • ASML 4022.471.76592 PCB-I-E-1391=9G24
  • ASML 4022.430.12256 PCB-I-E-1463=ZA09
  • ASML 879-0262-002 Shutter
  • ASML 4022.654.97872 LM 4C LPSA Power Supply
  • ASML SMC Pneumatic Valve Manifold Assy 4022.472.5315
  • Premium NP-0606 Power Supply 26V/6A for ASML 4022.476.01341
  • ASML PCB Card 4022.428.1023 PAS 5000/2500
  • ASML LISAF 3P Power Supply 4022.634.44801
  • ASML Red/635 Solid State Laser Module 635nm ELEC-I-1050
  • ASML SEM-I-1512 Controller Module 4022.639.02772
  • ASML Chuck QML/MSXLOD 879-0362-002 – Electrostatic Wafer Chuck Assembly
  • ASML SEM-I-737 Interface Module 4022.486.04121.HLN
  • ASML RH-PU-Mk3 Parker Power Unit 4022.631.24391
  • ASML Processor PCB Board PAS 5000/2500 7122.714.1800
  • ASML 4022.455.1103 Rotator Beam OR BS Assy
  • ASML Servo Test Box Frameless Monoset U20L0203
  • ASML 4022.428.1804 Processor PCB Board PAS 5000/2500
  • ASML 12456 Motion Control Board 4022.436.6467
  • ASML 37155 CCD Camera with Lens 4022.456.12463
  • ASML 4022.654.97873 LM 4C LPSA Power Supply
  • ASML 4022.635.04286 MF LS Purging Supply Assy
  • ASML 4022.636.53513 WH PA Interface Box Assy
  • ASML C2913 Cymer Lens 750A 4022.454.48131
  • ASML 4022.472.42622 IR2-FIR Solid State Laser Module
  • ASML 4022.437.20602 Green Laser Head & Controller
  • ASML 4022.651.46362 End Effector & RH Robot Gripper
  • BRONKHORST ASL-100F ASML 4022.666.71411 Mass Flow Controller
  • ASML 4022.471.88172 PAAC 450/20 PRODRIVE
  • ASML ATLAS Vacuum Regulator 4022.481.81953
  • ASML 4022.230.0438 PCB Card for PAS 5000/2500
  • ASML 4022.430.0109 Reticle Table Control PCB
  • ASML 4022.436.2451 Procesador Sello Arriba/Abajo PCB
  • ASML IIB Base 2 PCB Set 4022.436.8304 4022.436.8601
  • ASML 4022.472.62895 Power Supply Interface Module
  • ASML 4022.436.45028 PID Board
  • ASML 4022.671.23212 TCMA Thin Client Module MK2
  • ASML 0021-06148 TAB Clamp Ring Endura 5500 PVD
  • ASML 4022.192.9103 Interface PCB
  • ASML 4022.436.5298 Stepper Barcode Reader
  • ASML SVG 879-0794-001 Micrascan Axiom Assembly
  • ASML 54-125495A02 PC Compact Industrial ASMA003
  • ASML 4022.430.0098 PCB Card PAS 5000/2500
  • ASML 7122.714.1200.5 Processor PCB Board PAS 5000/2500
  • ASML 4022.428.14901 PAS 5000/2500 PCB Card
  • ASML Kay Neum F2 Valve Block PAS 2500 5000
  • ASML 4022.436.2451 Processor Stamp PCB PAS 5000 2500
  • ASML 4022.640.52821 IXL XP Module
  • ASML 859-8184-002 Viewing Power Select Panel
  • OZ OPTICS 4022.656.10963 Laser Module
  • ASML 851-0618-003 Stepper Library Brake
  • GF+ U1000 V2 ASML Ultrasonic Flowmeter 4022.669.98971
  • ASML 4022.636.73571 Zero Sensor Laser Box
  • ASML EO084D Shutter Socket PCB Card
  • PANalytical 402233010044 MPPC Power Supply Driver Unit
  • ASML 4022.631.26719 Load Port Module SEM-I-1310
  • ASML 4022.637.22711 Pneumatic Assembly
  • ASML 851-8942-001 Encoder Buffer PCB
  • ASML 859-0927-007 Lamp Power Compensation PCB Card
  • ASML 4022.639.86643 CDA IR1-NIR Solid State Laser 780nm
  • SVG ASML 28-43015-01 S90 Track CP Module
  • ASML 4022.471.75263 PCB Assembly
  • ASML 4022.637.22711 SEM-I-398 Controller Module