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


  • ETEL DSB2P131 & DSO-CAN111A Servo Amplifier Set
  • ETEL DSA2S211ZA-018A Digital Servo Amplifier
  • ETEL DSMAX212-111-001 568540-01 DSMAX2 Servo Controller
  • ETEL TMB+0291-150 Torque Motor Stator Assembly
  • ETEL EA-S0M-300-40/80A AccurET PSU
  • ETEL DSO-PWR112C-000B Power Supply Module
  • ETEL DSC2P141-111-000 Linear Servo Amplifier
  • ETEL DSB2S154-211-000H Servo Amplifier
  • ETEL DSCDP121-122-000 Digital Controller
  • ETEL DSCDP121-111E-000A Dual Position Controller
  • ETEL DSCDM332-111-000 Linear Servo Controller
  • ETEL DSB2P134-111E-000H Servo Amplifier
  • ETEL DSCDP132-111-000 Control Board Guide
  • ETEL DSB2S154-211E-000H Servo Amplifier
  • ETEL EA-SOM-300-40/80A Power Supply Module
  • ETEL ILM12-060-3PD-R20C Linear Motor with IWM Ways
  • ETEL P2M-300-07 AccurET Position Controller
  • ETEL DSB2P124-111E-000H Servo Amplifier
  • ETEL EA-P2M-048-05/10A Position Controller
  • ETEL EA-S0M-300-40/80A Power Supply Module
  • ETEL MWA070-0256-20B Linear Motor Magnet Guide
  • ETEL MWD070‑0128‑21A Linear Motor – Compact Ironless Linear Motor for High‑Speed Precision
  • ETEL DSB2P124‑211E‑000H Digital Servo Amplifier – 300 VDC Slave Drive for High‑Voltage Systems
  • ETEL MWD100‑0128‑00B Linear Motor – High‑Force Ironless Linear Motor for Precision Motion
  • ETEL AccurET EA‑S0M‑400 & P2M‑400‑05/10A Drive Module
  • ETEL EA‑S0M‑400‑40/80A‑0000‑00 AccurET Power Supply – High‑Power DC Supply for Motion Systems
  • ETEL MWA050‑0128‑20B Linear Motor Magnet – High‑Force Magnet Assembly for Linear Motors
  • ETEL DSB2S121‑111E‑000H Digital Servo Amplifier – High‑Current Drive for Demanding Motion
  • ETEL DSCDM332‑111C‑000B Digital Position Controller DSCDM – High‑Density Motion Module
  • ETEL EA‑P2M‑048‑2.5/5A‑0100‑01 AccurET Modular Position Controller
  • ETEL DSC2P121-111E-001A Digital Servo Controller – High‑Precision Motion Control
  • ETEL MWA050-0128-20B Linear Motor Magnet
  • ETEL DSB2P142-111E-000H Drive Specs
  • ETEL DSB2S234-111E-000H Servo Amplifier
  • ETEL EA-P2A-400-10-20A Position Controller
  • ETEL DSB2 Digital Servo Amplifier Controller DSB2P142-111E-000H SN 014661437
  • ETEL EA-S0M-400-40/80A-0000-00 AccurET Power Supply Module 650140-01
  • ETEL DSB2P131-111E-000H Servo Amplifier
  • ETEL EA-P2M-400-10/20A AccurET Controller
  • ETEL DSDP324-322F-000C Dual Motor Driver
  • ETEL DSB2S154-211E-000H Digital Servo Amplifier Drive
  • ETEL DSO-PWS111B-000C Power Supply Board 1130E-070-018
  • ETEL DSCDP324-322G-000A Servo Amplifier
  • ETEL DSB2P142-111E-000H Servo Amplifier Drive
  • ETEL EA-P2M-400-15/40A & EA-S0M-400 Drive Set
  • ETEL DSB2P142-111E-000H Digital Servo Amplifier
  • ETEL LMG15-070-3QC-H11 Linear Motor
  • ETEL TMA0140-070-3RB-S62B Torque Motor
  • ETEL DSA2S211ZA Digital Servo Amplifier
  • ETEL AccurET EA-P2M-300-4/7.5A-0100-01 Modular Position Controller
  • ETEL DSCDL332-131C-000A Servo Control Board
  • ETEL DSCDP324-322F-000C Dual Motor Driver
  • ETEL EA-P2M-400-10/20A Position Controller
  • ETEL DSC2P121 and DSO-HIO33 Servo Amplifier Set
  • ETEL EA-P2M-400-15/40A AccurET Drive
  • ETEL EA-P2M-300-07/15A Position Controller
  • ETEL EA-P2M-048-05/10A-0100-01 Servo Drive
  • ETEL EA-S0M-300-40/80A Servo Drive Guide
  • ETEL DSB2P131-111E-000H Digital Servo Amplifier
  • ETEL DSCDP334-421-000 Servo Drive Guide
  • ETEL EA-S0M-300-40 80A-0000-00 Motion Control Module
  • ETEL UltimET Light Motion Controller EU-LGP-0-0-1000-01 Multi-Axis
  • ETEL DSO-RAC601-029 Controller Rack
  • ETEL DSMAX212-121C-000C Board
  • ETEL DSCDL132-212B-000C Position Controller
  • ETEL TMB0291-050-3TDS-E82 Torque Motor
  • ETEL DSMAX212-121-000 Board
  • ETEL DSB2P131-111E-000H Digital Servo Controller Amplifier Unit
  • ETEL DSB 2S 124-211E-000H Digital Servo Amplifier
  • ETEL AccurET EA-P2M-300-4/7.5A-0100-01 Modular Position Controller
  • Beckwith Electric M-6280A Digital Capacitor Bank Control
  • Beckwith M-2355B Adapter Panel with M-2001C-6SL Tapchanger Control
  • Beckwith M-0359 Syncrocloser MOD512
  • Beckwith Electric M-2001C-6ELFA Tap Changer Controller
  • Beckwith M-3311A 4-Coil Transformer Protection Relay
  • Beckwith M-0124 Terminal Board Adapter Plate Guide
  • Beckwith Pride M-0296C 3-Phase Programmable Relay
  • Beckwith M-0388 Syncrocloser Check Relay Guide
  • Beckwith M-0170A AC Current Relay Guide
  • Beckwith M-3311 Transformer Protection Relay Guide
  • Beckwith Electric M3310 Integrated Transformer Protection Panel
  • Beckwith M-0145 First Customer Protector
  • Beckwith M-0170A AC Current Relay
  • Beckwith PRIDE M-0296C 3 Phase Programmable Relay
  • Beckwith Pride M-0296b 3-Phase Programmable Relay
  • Beckwith M-0245C High Speed Sync-Check Relay Guide
  • Beckwith M-0115A AC Parallel Balancing Module
  • Beckwith M-0389 Voltage Verifier Relay
  • Beckwith M-0115A Parallel Balancing Module
  • Beckwith M-0389 Voltage Verifier
  • Beckwith PRIDE M-0420 Multifunction Relay Protection Module 48VDC
  • Beckwith Electric M-3430 Generator Protection Relay
  • Beckwith Electric M-0067E Tapchanger Control
  • Beckwith Electric M-0420 Multifunction Relay
  • Beckwith Electric M-2001D-6L4S20C0S0X Tap Changer Control
  • Beckwith Electric M3425A-STD1 Generator Protection Relay
  • Beckwith Electric M-0245C High Speed Sync-Check Relay
  • Beckwith Electric M-3520 Intertie Protection Relay Guide
  • Beckwith Electric M-2001C-6SL Tap Changer Control
  • Beckwith Electric M-2001C Tap Changer Control Guide
  • Beckwith 35-12-635 Generator Protection Keypad Interface
  • Beckwith Electric P-2216 Generator Protection Main Board
  • Beckwith Electric M-2293 Tap Changer Control Guide
  • Beckwith M-4272-6AB1EH0 Integrated Synchronizing Motor Bus Transfer
  • Beckwith Electric M-4272 Motor Bus Transfer 60-140V 50/60Hz
  • Beckwith Electric M-2001B TapChanger Control
  • Beckwith Electric M-0193B Synchrocloser Unit
  • Beckwith Electric M-0115A AC Parallel Balancing Module
  • Beckwith Electric M-0169A Current Transformer
  • Beckwith Electric P-1939 Generator Protection Annunciator Panel
  • Beckwith Electric M-3311A Transformer Protection Relay Guide
  • Beckwith Electric M-0245B High Speed Sync-Check Relay
  • Beckwith Electric M3420 Generator Protection Relay
  • Beckwith M-0193B Syncrocloser Unit
  • Beckwith Electric M-520 Intertie Protection Relay
  • Beckwith Electric M-3425A Generator Protection Relay
  • Beckwith M-3425 Integrated Generator Protection Relay
  • Beckwith M-0115A Parallel Balancing Module
  • Beckwith Electric M-4272 Integrated Synchronizing Motor Bus Transfer
  • Beckwith Electric M-3420 Generator Protection System
  • Beckwith M-0193 Syncrocloser Unit
  • Basler Electric DECS-250-CN1SN1N Digital Excitation Control System
  • Basler Electric BE1-700 E0N2X1N Digital Protective Relay
  • Basler Electric SR4A-2B15B3A Static Voltage Regulator 120VAC 50/60Hz
  • Basler Electric 9261402111 PCB Control Board 9346000033
  • Basler Electric BE28053-002 Transformer BE28053002
  • Basler Electric BE3-25A Auto Synchronizer B1D Sync Module
  • Basler Electric BE3-GPR Generator Protective Relay