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


  • Omron NS5-MQ00B-V2 Touch Screen HMI
  • Siemens 6DP1280-8AB SIMADYN D Control Module
  • Schneider HJA36060U43X PowerPact H Breaker
  • WITTENSTEIN LP120X-MF2-50-1I1-3X-SPE Planetary Gear
  • Omron G9SX-GS226-T15-RT Safety Guard Relay
  • Omron CPM1A-40CDT1-D-V1 Programmable Controller
  • ABB ACH550-01-05A4-4 HVAC Drive 2.2kW
  • Schneider TSXDMZ28DT Modicon TSX Micro I/O Module
  • Siemens 6DL1131-6BH00-0EH1 ET200SP HA DI Module
  • B&R X20IF10E3-1 PROFINET IO Interface Module
  • Siemens QBE3000-D4 Transmitter
  • Inovance H3U-3624MT PLC Controller
  • Inovance AM600-CPU1608TP PLC Module
  • Omron NS8-TV00B-V2 NS8-TV00B-ECV2 HMI
  • Phoenix ILC 151 ETH PLC Module
  • National Instruments NI-9242 Analog Input Module
  • Fanuc A16B-3200-0521 Main Board
  • NLT NL8060BC26-35F 10.4 LCD Screen
  • Pilz PSEN cs1.1P 540050 Safety Switch
  • Keyence VT-SW4 VT-7SR Touch Panel
  • Siemens 6ES7 131-1BL11-0XB0 Digital Input Module
  • Mitsubishi RJ71EIP91 Ethernet IP Module
  • Siemens 3RW4047-1BB14 Soft Starter 55kW
  • Mitsubishi AJ71C21-A PLC Programmable Controller
  • NL8060BC21-06 8.4 Inch LCD Module
  • Siemens 6ES7215-1HG40-0XB0 PLC S7-1200
  • Siemens 3VA2463-5HL32-0AA0 630A Breaker
  • Saginomiya E-UJ-44030-B Control Board
  • Schmersal MV10H330-11y-M20-1348 Safety Switch
  • Fanuc A16B-1211-0301-04A Control Board
  • Siemens 6SN1123-1AB00-0AA2 LT Module
  • A100005506 Compair Delcos 3100 Control Panel
  • Omron ZFV-CA40 Smart Sensor Amplifier
  • Fanuc A16B-2200-0660 I O Board
  • Omron CJ1W-NC471 Position Control Unit
  • Siemens 6SN1112-1AA00-0AA0 Simodrive PWM Module
  • Mitsubishi GT2708 HMI Touch Panel
  • Siemens 3TK2834-1BB40 Safety Switch
  • INSYS EBW-E100 Industrial Ethernet Router
  • Schneider LC1F400 Contactor TeSys F
  • Mitsui RYP-51 PCB Control Board
  • Tamagawa TS2620N941E172 Encoder
  • Pilz PZE 9 Safety Relay
  • Omron C1000H-CPU01-V1 PLC
  • Siemens 6SL3210-1KE21-3UP1 Frequency Converter
  • Allen-Bradley 440E-L22BNSM Rope Pull Switch
  • ABB CI868K01 Interface Module
  • Stein Sohn E 083.1 PLC Rack
  • Mitsubishi GT2508-VTBD GT2508-VTBA HMI
  • ABB 3BSE018161R1 Module
  • CAREL ASD100 PGD1AY0I00 Operation Panel
  • ABB EK370-40-11 Contactor 220-230V
  • Eaton 9PX1500IRTM UPS 1500VA
  • NCV-20NGNMP Programmable Controller
  • Mitsubishi LE-40MTA-E Tension Controller
  • Fanuc A16B-3200-0429 Control Board
  • Mitsubishi GT2310-VTBA HMI Touch Screen
  • 3A99184G 1C31170G PCB Module Rev 10
  • Schneider 140NOM25200 Modicon Quantum Adapter
  • Mitsubishi NV400-SW 400A Circuit Breaker
  • Applied Materials 0190-51102 Heater Controller
  • Omron C200H-DA003 Analog Output Module
  • Yaskawa JANCD-YCP21-E DX200 CPU Board
  • IAI 12G2-60-250-P-L-C1-SP Intelligent Actuator
  • NLT NL8060BC21-11 8.4 LCD Screen
  • Omron NX502-1300 Controller Unit
  • ABB RVT-6 Power Factor Controller
  • Schneider TM258LF66DT4L PLC Controller
  • NLT NL6448BC26-27D 8.4 LCD Panel
  • NLT NL8060BC21-09 8.4 LCD Screen
  • Keyence XG-8700L Multi-camera Imaging System
  • EPC 50 3183045486 I O Motherboard
  • Nidec Emerson M701-054-00270A CT Drive
  • Therma Wave 18-011040 Controller Assembly
  • Mitsubishi Q03UDECPU PLC CPU Module
  • Allen-Bradley 2002-NX70-MWLINK PLC Module
  • AS-2P-60M-B Industrial PLC Cable
  • Yaskawa JANCD-YCP21-E DX200 CPU Board
  • PASABAN MC-2006 03 CAN PLC Card
  • Mitsubishi RJ71PB91V PROFIBUS DP Module
  • Fanuc A20B-8100-0137 PCB I O Board
  • D0-06DD2-D PLC Module DL06 PLC
  • Kepco BOP100-4M Power Supply Amplifier
  • Allen-Bradley 1785-L60B PLC-5 60 Module
  • Siemens 7MH4900-3AA01 Weighing Module
  • Pilz 773100 PNOZ m1p Safety Controller
  • Omron NS12-TS00B-V2 Graphic Operation Panel
  • EC20-4040BTA Programmable Controller PLC
  • Fanuc A16B-1212-0100-01 Power Unit CNC
  • Siemens 6ES7151-3BB23-0AB0 ET200S Interface Module
  • ATTO Control DU-01 PLC Display System
  • Keyence KV-RC8BXR Programmable Controller
  • Lenze GST04-1GVCK-063C22 Servo Motor
  • CKD AX9000GH AX9210H Control Unit
  • ABB PG6310 DC Trigger Control Board
  • Cutler Hammer 10316H621C Type L Device
  • TAIYO AA-277 EM CY TRIP PCB Card
  • Schneider BMXCPS2010 PLC Power Supply
  • Schneider TSXMRPC007M PLC PCMCIA Card
  • 101182218 Safety Stop Relay SSW301HV-230V
  • Cutler Hammer 9-1875-3 Size 6 Contactor 480V
  • Nidec UNI3401 Drive Module Control Board
  • Delta AS06XA-A PLC Module Analog Mixed IO
  • Lenze EPL 10201 13408978 Servo Drive 24V DC
  • Sigmatek CCP612-K PLC Module DI DO Module
  • Schneider ATS48D38Q Soft Starter Altistart 48
  • Fanuc A20B-3300-0472 Main CPU Board Series 30i
  • Mitsubishi A171SCPU-S3 Servo CPU Module PLC
  • ABB 1SFL597001R7011 700A 100-250V Soft Starter
  • Yaskawa JANCD-YCP21-E DX200 CPU Control Board
  • Schneider NS630N Circuit Breaker 3P 630A
  • Honeywell DPCB21010002 Rack Slot PCB
  • Mitsubishi RJ71EIP91 PLC Module
  • Siemens 3VL5763-1DC36-0AA0 Circuit Breaker
  • Siemens 6GK7542-1AX00-0XE0 Communication Module
  • Siemens 6SL3130-6AE15-0AB1 Smart Line Module
  • HMS Anybus AB7646-F Gateway
  • Honeywell 621-0020 Analog Input Module
  • Siemens 6ES7212-1HF40-0XB0 PLC Controller
  • MAK 1.00.7-36.21.00-40 PCB Module
  • ABB 3BSE006503R1 PFSA140 Power Supply
  • SAACKE F-GDSA 143303 Burner Controller
  • ABB PFSC230 25m Cable Set
  • GE HYDRAN 201Ci-1 Controller
  • ABB NINT-42C main circuit interface board
  • B&R 3AT660 6 Thermocouple Input Module
  • Honeywell EC7850A1080 Programmable Logic Controller
  • Mitsubishi A2ACPU21 CPU Module MELSEC A Series