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


  • GE Fanuc VMIVME-5588 High-speed Reflective Memory Board
  • VMIC VMIVME-5565 Reflective Memory Board
  • VMIC VMIVME-2127 Voltage Source Digital Output Board
  • VMIC VMIVME 4512 Analog VME Process PCB Assembly
  • GE Fanuc VMIVME-3122-022 Analog I/O Module
  • VMIC VMIVME 5576 High Speed Fiberoptic Network Board
  • FANUC VMIVME-7452 VMEbus Analog I/O Board
  • FANUC VMIVME-2210 VMEbus Digital Output Board
  • FANUC VMIVME-7750-734000 VMEbus Single Board Computer
  • VMIC VMIVME 2210 VMEbus DO 28V Digital Output Board
  • VMIC VMIVME DR11W VMEbus DMA Interface Module
  • VMIC VMIVME-2536-200 5V Optically Coupled Digital I/O Board
  • VMIC VME-7754 VMIVMF7754-259000 VMEbus Control Card
  • VMIC 2170A VME Interface Board
  • GE VMIC PMC-5565PIORC-210000 Reflective Memory PMC Node Card
  • VMIC VMIVME-7750-750000 VME Single Board Computer
  • VMIC VMIVME-7751 VME Single Board Computer
  • VMIC 332-004512 Analog VME Process Board
  • VMIC VMIVME2528 VME Interface Board
  • FANUC VMIVME-2120 VME Bus Interface Board
  • FANUC VMIVME-2540 VME Bus Interface Board
  • FANUC VMIVME-3230 VME Bus Interface Board
  • FANUC VMIVME-4514 VME Bus Interface Board
  • ETEL DSB2S154-211E-000H Servo Amplifier
  • ETEL DSCQT112-111-000 Motion Control Module
  • ETEL LMG20-050-3QB-211A Servo Motor – High Torque Linear
  • ETEL EU-LCP-0-0-1000-01 Communication Card
  • ETEL DSA2P174ZA-033A Servo Amplifier Driver
  • ETEL EA-P2M-400-15/40A-0100-00 Servo Driver
  • ETEL DSC2P152-111-000 Servo Drive Amplifier
  • ETEL LMS15-050-3UA-209A Linear Motor
  • ETEL DSC2P152-111D-000A Controller
  • ETEL DSB2P131-111E-000B Digital Servo Amplifier Position Controller
  • ETEL DSO-PWR111C-000B Power Supply Module
  • ETEL DSCDP324-321F-000C Servo Driver
  • ETEL DSC2P152-111B-000D Controller
  • ETEL DSB2P142-111E-000H Circuit Board
  • ETEL LMG05-030-3QA-H01 Linear Motor
  • ETEL DSC2P152-111F-000A Controller
  • ETEL DSA2S211ZA Servo Drive
  • ETEL DSCDM332-112-000 Drive Module
  • ETEL DSCDP334-421-000 Digital Position Controller Servo Drive
  • ETEL EA-P2M-400-15/40A-0100-00 AccurET Servo Drive
  • ETEL TMA0140-050-3UB-202B Torque Motor
  • ETEL DSA1DL1D.PCB Servo Drive Board
  • ETEL DSA2DL 1A Servo Drive
  • ETEL DSMAX111B-000B Servo Drive
  • ETEL DSO-PWS111C-000B Power Supply Module
  • ETEL DSC2P142-111B-000D Servo Drive Amplifier
  • ETEL DSC2P132-111D-000A Servo Drive Amplifier
  • ETEL DSC2P152-111B-000D Servo Drive Amplifier
  • ETEL DSB2P131-121E-000H Servo Drive Amplifier
  • ETEL DSB2P142-111E-000H Servo Drive Amplifier
  • ETEL DSO-PWR112C-000A Power Supply Module – High Power
  • ETEL DSO-PWR111C-000A Power Supply Module
  • ETEL DSB2P121-121E-000H Servo Drive Amplifier
  • ETEL DSB2S134-111E-000H Digital Servo Amplifier
  • ETEL RTMA0140-070-AQN-21E Motor
  • ETEL DSCDP132-111-000 Dual Controller Circuit Board – Motion Control
  • ETEL LMS15-050-3UA-209Aft Linear Motor
  • ETEL DSCDP324-322G-000A Position Controller
  • ETEL DSA2P174ZA-033A Servo Amplifier Driver
  • ETEL DSA2P174ZA-017A Servo Amplifier Driver
  • ETEL LMD10-050-3QA-223A Linear Motor
  • ETEL EU-LGP-0-0-1000-00 PCI Network Card
  • ETEL DSO-PWS111C-000B Power Supply Module
  • ETEL DSC2V174-111C-001A Servo Controller
  • ETEL EA-P2M-600-15/40A-0000-01 AccurET Modular Position Controller
  • ETEL RTMA0140-070-AQN-21B DD Motor
  • ETEL DSC2P144-421-000 Servo Driver
  • ETEL EA-P2M-400-15-40A-0100-00 Servo Drive
  • ETEL DSCDM341-111C-000B Board
  • ETEL LMD10-050-3QA-223A Motor
  • ETEL RTMA0140-070-AQN-21E DD Motor
  • ETEL DSCDM342-111-000 Servo Variator
  • ETEL DSC2P152-111E-000A Servo Amplifier
  • ETEL LMS15-050-3UA-209A Motor
  • ETEL RTMA0140-070-AQN-21C DD Motor – High Torque Direct Drive
  • ETEL DSCDP334-421G-000A Servo Drive
  • Etel DSB2S154-211E-000H Digital Servo Amplifier
  • ETEL EA-P2M-400-15/40A-0100-00 AccurET Servo Drive
  • ETEL DSA2P-174ZA-017A Digital Servo Amplifier
  • ETEL EA-P2M-400-15/40A-0100-00 Servo Drive
  • ETEL LMP07-100-3TAS-229 Linear Motor Primary Part
  • ETEL LMA11-120-3ZA-359A Linear Motor
  • ETEL EA-S0M-400-40/80A-0000-00 Drive Power Supply
  • Etel DSCDP334-421-000 Driver
  • ETEL DSCDM341-111C-000B DSCDM Drive Board
  • Etel DSA1 Digital Servo Amplifier
  • ETEL DSA2P174ZA-033A Servo Amplifier
  • ETEL DSCDM342-111-000 Servo Verifier
  • ETEL LMS15-050-3UA-209A Linear Motor
  • ETEL P2M-048-2.5/5A AccurET Position Controller – Modular
  • ETEL LMD10-050-3QA-223A Linear Motor – Compact Precision
  • ETEL EA-P2M-400-05/10A-0000-01 Drive – Precision Motion
  • ETEL LMP07-100-3TAS-229 Linear Motor Primary Part
  • ETEL EU-LGP-0-0-0000-00 Motion Control Card – Precision Control
  • ETEL DSC2P152-111E-000A Servo Amplifier
  • ETEL EA-P2M-400-15/40A-0100-01 Servo Drive
  • ETEL EA-SOM-300-40/80A-0000-00 AccurET Power Supply Module
  • ETEL LMG10-1050-3QA-H01 Linear Motor
  • ETEL EA-SOM-300-40/80A-0000-00 AccurET Modular Power Supply
  • ETEL EA-P2M-400-15/40A-0100-00 AccurET Servo Drive
  • ETEL EA-P2M-400-15/40A-0100-01 Servo Driver
  • Etel RTMA0140-070-AQN-21B High Speed Motor
  • ETEL DSC2P141-111-000 Linear Servo Amplifier
  • ETEL DSB2S134-211E-000H Digital Servo Amplifier
  • ETEL 3LM-23C Motion Controller
  • Etel DSO-SER211-000 Power Add-On Board
  • ETEL DSCDP334-421-000 Servo Drive
  • CTI-Cryogenics 8116071G001 Enhanced On-Board 8F Cryopump
  • ETEL LMD10-050-3QA-223A Linear Motor
  • Etel DSO-SER211-000 Servo Card Power Add-On
  • ETEL LMG05-050-3QA-213A Linear Motor
  • Etel DSO-SER211-000 Power Add-On Board
  • ETEL EU-LGP-0-0-0000-00 Motion Control Card
  • ETEL EA-P2M-400-15/40A-0100-00 AccurET Servo Drive
  • ETEL DSA2P1540A Digital Servo Amplifier
  • ETEL DSC2P131-111-000 Drive Board
  • ETEL DSC2P131-111D-000A Servo Drive
  • Etel SA-IL 03-208 Linear Motor Section 208mm
  • ETEL EA-P2M-300-4/7.5A-0000-01 AccurET Position Controller
  • ETEL DSO-SER211-000 Power Board
  • ETEL DSC2P131-111F-000A Servo Amplifier
  • ETEL DSA1P6242B Digital Servo Amplifier
  • ETEL DSC2P131-111B-000B Regulator
  • ETEL DSA2P1540A Digital Servo Amplifier
  • ETEL EA-P2M-048-2.5/5A-0100-01 Drive