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


  • Bonfiglioli ACT 401-19A Frequency Inverter
  • Bonfiglioli C102PP71 Variable Speed Gearmotor
  • Bonfiglioli C312 P P90 Reducer with Clutch
  • Bonfiglioli VF44 F1 10 Gearmotor with VEM Motor
  • Bonfiglioli C31 3 P P63 PV V5 Reducer
  • Bonfiglioli WR75UD28150P71B5B3 Gearbox
  • Bonfiglioli ACT401-13FA Frequency Inverter
  • Bonfiglioli VF 62/P Worm Gearmotor 38 to 1
  • Bonfiglioli ME210124001Y Inline Gearbox
  • Bonfiglioli VF63PIP90BI4 Worm Gearbox
  • Bonfiglioli VF86FC256 Worm Gearbox 1010B03004
  • Bonfiglioli VF44F1 Gearmotor 0.43kW 460V
  • Bonfiglioli W 75 UF1 D30 P80 B14 Gearbox i=100
  • Bonfiglioli VF63NP80B5 Worm Gearbox
  • Bonfiglioli 300R3133FPP80POG0A Gear Reducer
  • Bonfiglioli VF49F1N56C Gearbox
  • Bonfiglioli Trasmittal 300L19 Gearmotor with MEZ UD 1104 Motor
  • Bonfiglioli BCS30 Permanent Magnet Motor with Encoder
  • Bonfiglioli BN56B4 Gearmotor with VF30 Reducer
  • Bonfiglioli VF44 Gearbox 100480150
  • Bonfiglioli VF63PIP90B14 Gearbox
  • Bonfiglioli 830420150 BN63A4 230/400-50 IP55 CLF B14 with VF30F2 P63B14B3-I40
  • Bonfiglioli BN63A2 Motor
  • Bonfiglioli VF44 ALP63B5 Gearbox
  • Bonfiglioli A102 UR P80 Gearbox
  • Bonfiglioli MP 105 2 16 STD 95A1 CD 19 S1 OR SB KE Planetary Gearbox
  • Bonfiglioli T56BN/4 Motor
  • Bonfiglioli 8E20020594-M285018 Motor
  • Bonfiglioli VF49 V P71 B5 Gearbox
  • Bonfiglioli X VFR49 L1 FA1 180 P63B5 B3 Gearbox
  • Bonfiglioli W63U7P90B14V6 Right Angle Gear Reducer
  • Bonfiglioli VF/W30/63UFC2 Gear Reducer i=168
  • Bonfiglioli VF44 Gear Reducer 100480150
  • Bonfiglioli ACU 201-07 FA Frequency Converter
  • Bonfiglioli BN-80B-4 Motor with VF63 Gearbox 38:1
  • Bonfiglioli MVF 49 Gear Reducer for Servo Motor
  • Bonfiglioli ACT 400-034 A Frequency Inverter 11kW
  • Bonfiglioli SYN10-S-220-03-AF AC Drive 0.5HP
  • Bonfiglioli LC 090 1 7 STD FM CD 19 KE Gearbox
  • Bonfiglioli TQFK070350GR80A1CD Gear Unit
  • Bonfiglioli BN 80 B6 FD Three Phase Motor
  • Bonfiglioli W63U Worm Gear Reducer
  • Bonfiglioli 830G2310M-B048052 Gear Motor
  • Bonfiglioli VF49P128P71B5B3 Worm Gearbox
  • Bonfiglioli W75UD30719/140B3 Worm Gearbox
  • Bonfiglioli VF49F17HSB3 Worm Gearbox
  • Bonfiglioli C12 2P 20.6 P90 B3 Gearbox
  • Bonfiglioli BN80B4 623136 Geared Motor
  • Bonfiglioli 4APC3-4 9142882 Geared Motor 0.18 kW
  • Bonfiglioli W86 80/90-B5 Worm Gear Reducer 20:1
  • Bonfiglioli ACU 210-07 1 FA PLC Peripheral Module
  • Bonfiglioli MVF44/F Worm Gearbox
  • Bonfiglioli W63U Worm Gear Reducer
  • Bonfiglioli BN63A2 Electric Motor
  • Bonfiglioli BN 132 M B 4 Electric Motor 9.2kW
  • Bonfiglioli VF49 L1 P1 P63B5 Worm Reducer i=45
  • Bonfiglioli C413 P S2 7717/1000 Gearmotor 1.5kW
  • Bonfiglioli VF49F1P63B5B3 Worm Gearbox
  • Bonfiglioli BTD5-1870-05-400-ENC8A Servo Motor
  • Bonfiglioli ACU401-03FA Frequency Inverter
  • Bonfiglioli MVF63/N Gearbox with AEG Servomotor
  • Bonfiglioli BN80A4 Gearmotor VF49L1P1P80B14
  • Bonfiglioli VFR 72/FC2 Gear Reducer
  • Bonfiglioli W R 86 U 120 Gearbox Assembly
  • Bonfiglioli W 75 U 30 Gear Reducer
  • Bonfiglioli W R 86 U 120 P80 B5 V5 Gearbox
  • Bonfiglioli RAO 50/DC Gearbox
  • Bonfiglioli VF49 F1 P63B5 Gearmotor with SPZ MS6324
  • Bonfiglioli X_LC 090 Planetary Gearbox
  • Bonfiglioli A302 UH35 P90 Gearbox
  • Bonfiglioli VF63FCHS Worm Gearbox 103100390
  • Bonfiglioli VF 44 P63 B14 Gearbox M00480210008
  • Bonfiglioli MPD1006S0006 Precision Planetary Gearbox
  • Bonfiglioli VF49F1N56C Worm Gearbox
  • Bonfiglioli TR G 105 3 20 STD Planetary Reducer
  • Bonfiglioli VFR49P1P63B5 Worm Gearbox
  • Bonfiglioli WR 86 U 120 P80 B5 V5 Gearbox 2G30013944
  • Bonfiglioli BRA 400-060 BF2 Brake Chopper
  • Bonfiglioli VF49P P71B5 Worm Gearbox
  • Bonfiglioli C402 P VG1 Gear Speed Reducer 31.4:1
  • Bonfiglioli ISMET LCVT050 DK308/50 Line Reactor
  • Bonfiglioli C 22 2 F GR063 Gearbox
  • Bonfiglioli C31 3 P P63 PV V5 Reducer
  • Bonfiglioli CM-485 T Communication Module
  • Bonfiglioli W75UF1D30P90B5 Gearbox
  • Bonfiglioli BN63 B4 VF49 Gearmotor 0.18kW
  • Bonfiglioli ACT 400-004 FA Frequency Inverter
  • Bonfiglioli W110U100P90B5B3 Worm Gearbox
  • Bonfiglioli SYN10 T 400 05 AF Inverter
  • Bonfiglioli MP080.1.4.15.16.40.80.100 Gearbox
  • Bonfiglioli SYN10S Inverter
  • Bonfiglioli VF44L2P160 Gearmotor
  • Bonfiglioli W 86 U 40 P90 B5 B3 Gear Reducer
  • Bonfiglioli BTD5-1870-05-400 Servomotor
  • Bonfiglioli MP 080 2 2C Gearbox with BLDC Motor
  • Bonfiglioli MP080.1.10 Planetary Gearbox
  • Bonfiglioli C212PHS Reducer
  • Bonfiglioli MVF 49F1 Gearbox with ICME T71B4
  • Bonfiglioli VF 49 v P71 B5 Gearbox
  • Bonfiglioli VF 44 P1 Gearmotor
  • Bonfiglioli C 22 2 NP 6.1 Helical Gearbox
  • Bonfiglioli F203 316.9 Gearbox with Kaiser Motor
  • Bonfiglioli SYN10 S 220 07 AF Frequency Inverter
  • Bonfiglioli 301L251.8-HC-P90 Gearbox 1/51.8
  • Bonfiglioli ACT401-25A Frequency Inverter
  • Bonfiglioli W75 U D30 30 P90B14 B3 Worm Drive
  • Bonfiglioli 830G2310M-307638 Motor
  • Bonfiglioli C112-P-P90 Inline Gearbox i=6.2
  • Bonfiglioli SYN10-S-220-03-AF AC Drive
  • Bonfiglioli VFR49 A HS Worm Drive i=180 B3
  • Bonfiglioli ACT 401-29 A AC VFD Drive 22kW
  • Bonfiglioli VF49PIP63B14 Gearbox
  • Bonfiglioli ANG 410-18 2 FA Inverter
  • Bonfiglioli GVX2000-7.5-T Converter
  • Bonfiglioli EM-ENC-02-24 Optical Module
  • Bonfiglioli ACT 401-33 A VFD Drive
  • Bonfiglioli MVF 49F1 Gearbox with ICME T71B4
  • Bonfiglioli BN112M4 Motor
  • Bonfiglioli MP080.1.7 Planetary Gearbox
  • Bonfiglioli VF-EP 49 BN-71-B2 Gearmotor
  • Bonfiglioli W75UD3010P80B14B3 Gear Reducer
  • Bonfiglioli W 110 U 100 P80 B5 B3 Worm Gearbox
  • Bonfiglioli ACT 201-11 FA Frequency Inverter 1.5kW
  • Bonfiglioli MP080380STDISS5 Planetary Gearbox
  • Bonfiglioli ACU 210-05 1 FA Frequency Inverter
  • Bonfiglioli BN63B4 Electric Motor 265 460V
  • Bonfiglioli BN 63 C 2 Electric Motor
  • Bonfiglioli 12.502.410 BCLP 40XDSM Assembly