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


  • Bosch Rexroth CML10.1-NN-210-NB-NNNN-NW IndraControl L10 PLC
  • Bosch Rexroth R911173255 S20-PSDO-8/3 Safe Digital Output Module
  • Bosch Rexroth MSM040B-0300-NN-M0-CC1 Servo Motor
  • Bosch Rexroth MSK040B-0450-NN-M1-UG0-NNNN Servo Motor
  • Bosch Rexroth 3630630010 3/2 Way Directional Control Valve
  • Bosch Rexroth IndraControl S20 R911173359 S20-PN-BK+ Bus Coupler
  • Bosch Rexroth MKD041B-144-GP0-KN Synchronous Servo Motor
  • Bosch Rexroth Indramat BT 100 Industrial Panel PC
  • Bosch Rexroth MSM019B-0300-NN-M5-MH1 Servo Motor
  • Rexroth SE-B5.700.020-10.000 Synchronous Servo Motor
  • Rexroth 0608820115 Nutrunner Torque Transducer Size 4
  • Rexroth MAC090A-0-ZD-5-C/110-A-0/KI520LV Servo Motor
  • Rexroth 4WMM6J53/N Directional Control Valve
  • Rexroth HCS02.1E-W0028 IndraDrive Base Unit
  • Rexroth MDD090B-N-030-N2M-110GB0 Servo Motor
  • Mannesmann Rexroth VT11025-16 Amplifier Module 19666
  • Rexroth HCS01.1E-W0008-A-03-B-ET-EC-NN-L4-NN-FW Inverter
  • Rexroth MDD093C-N-030-N2M-110GB0 Servo Motor
  • Rexroth R162211322 Linear Guide Slider
  • Rexroth IndraControl L40 CML40.2-NP-330-NA-NNNN-NW Controller
  • Rexroth 3 842 532 421 Geared Motor 1380 rpm
  • Rexroth 4WEH 16 E67 Directional Valve Set
  • Rexroth HMS01.1N-W0110-A-07-NNNN Inverter
  • Rexroth P-057429-00000 Repair Kit
  • Rexroth MSM031C-0300-NN-M0-CH0 Servo Motor
  • Mannesmann Rexroth VT 11013 Amplifier Module
  • Rexroth 4DMC160 Transducer 0608820115
  • Rexroth 990500A Industrial Component
  • Bosch Rexroth HCS01.1E-W0003 Compact Drive
  • Rexroth 4WMM10E31/V Directional Valve R900593552
  • Bosch Rexroth EMC-032-NN-2 R021U10021 Linear Actuator
  • Rexroth VT-MX-4-10/K-AX4U-V50 Servo Interface Module
  • Rexroth 0811405144 Amplifier Card
  • Rexroth VM310 0608760109-103 Power Module
  • Rexroth HMD01.1N-W0012 IndraDrive Power Section
  • Rexroth LT303 0 608 750 084 Servo Amplifier
  • Rexroth DKCXX.3-040-7 Servo Drive 40 A
  • Rexroth 3842999760 UM 1 Return Module
  • Rexroth R911172284 Safety Controller SLC-3-CPU000300
  • Rexroth IMS2A-KWD-025-SNS-C1 R051702883 Measuring System
  • Rexroth NK350S Network Coupler MRN 3608877368
  • Bosch Rexroth CSB01.1N-AN-ENS Control Section
  • Rexroth R911330523 Power Cable RKL0045
  • Rexroth HMS01.1N-W0036 Single Axis Inverter
  • Rexroth 0 608 740 103 Connection Cable 2 m
  • Rexroth RWD-025-SNS-C2-P-2 Linear Bearing Block
  • Rexroth MSK050B-0300 Servo Motor R911309705
  • Bosch Rexroth KE312 Communication Module
  • Rexroth VCP05.2 IndraControl VCP 05 Panel
  • Rexroth CML40.2 IndraControl L PLC R911170254
  • Rexroth R911170826-206 Sercos Interface Module 24V DC
  • Mannesmann Rexroth VT 11030-12A 00010992 Valve Amplifier
  • Rexroth VT 11011-12 Amplifier Module R900010958
  • Bosch Rexroth SF-A1.0012.060-14.050 Servo Motor
  • Bosch Rexroth HCS01.1E-W0008-A-03-B R911325246 Inverter
  • Rexroth MDD093C-N-030-N2M-110PB2 Servo Motor
  • Bosch Rexroth MSK030B-0900-NN-M1-UG1-NNNN Servo Motor
  • Rexroth R900588201 4WE10E33/CG24N9K4 Solenoid Valve
  • Bosch Rexroth SR-A2.0020.030-00.000 Servo Motor 1070076772
  • Rexroth CML40.1-NP-220-NA-NNNN-NW Controller 1070170261-104
  • Yaskawa / Omron SGDM-01ADA - Sigma II Servo Drive 100W
  • Omron / KEP NT3S-ST123B-E - Interactive Display Operator Panel HMI
  • Yaskawa XD-01-MN01 - XtraDrive Servo Drive Controller
  • Applicom PC2000ETH - Ethernet Communication Interface Card
  • Fanuc A02B-0200-B523 - 6-Slot PLC Rack Chassis Series 160-MB
  • Endress+Hauser COS61-A2F0 - Dissolved Oxygen Sensor Probe
  • Kieback & Peter DDC4200L - Building Automation DDC Controller Display
  • Siemens 6ES5955-3LF12 - Simatic S5 Power Supply Module
  • Siemens 6ES5928-3UA21 - Simatic S5 PLC Central Processing Unit
  • Fanuc A06B-6077-H106 - Power Supply Module
  • KEB 15.F5.G1G-360A - Frequency Inverter Drive
  • Bonfiglioli Vectron ACU 210 - Frequency Inverter AC Drive
  • Allen Bradley MPL-A320H-MJ22AA - AC Servo Motor
  • Schneider (Telemecanique) XBTG2220 - Magelis Graphic Touch Panel HMI
  • Schneider (Telemecanique) XBTF011110 - Magelis Membrane Keyboard Overlay
  • Record STM20 - Automatic Sliding Door Processor Controller
  • Jetter JX2-SV1 - Servo Drive Controller Module
  • Siemens 6SL3120-1TE13-0AA4 - Sinamics S120 Motor Module Inverter
  • Grundig Electronic NPP 04 - Control Unit Module
  • Grundig NPA 01 - Power Supply Unit
  • Panasonic MDDCT5325B14 - AC Servo Drive Driver
  • Jetter JX2-SV1 - Servo Drive Controller Module
  • Schneider (Telemecanique) ATV32HU15M2 - Altivar 32 AC Frequency Inverter Drive
  • Sick ICR845-2E0020 - Image Code Reader Barcode Scanner
  • Endress+Hauser COM253-WX0110 - Dissolved Oxygen Analyzer Meter
  • Schneider (Telemecanique) XBTGT4230 - Magelis Advanced Touch Panel HMI
  • Siemens 6AV6640-0CA11-0AX1 - Touch Panel Operator Panel HMI
  • Jetter JX2-CNT1 - Counter Module PLC I/O
  • Omron NT3S-ST123B-E - Interactive Display Touch Terminal HMI
  • Omron C200HE-CPU42 - Sysmac C200HE PLC Modular System
  • Schneider Electric PM820MG - Multifunction Power Meter
  • Jetter JC-243 - JetControl Motion Controller PLC
  • Axor MTS-200-14/28-RX-S-0186 - Servo Drive Controller
  • Allen Bradley Ultra 3000i - Digital Servo Drive
  • Pro-face AGP3301-S1-D24 - Touch Screen Operator Interface HMI
  • Image AB 372151-00 - Keyboard Terminal Stand Mount
  • Harmonic Drive HA-220-5 - Harmonic Gearbox Servo Actuator
  • Omron NQ5-SQ000-B - Programmable Touch Panel HMI
  • Noax S12S-N8B-C1000 - Industrial Panel PC
  • Grundig Electronic NSP 02 - Control Unit Module
  • Omron NX-TS3201 - Temperature Sensor Input Unit PLC Module
  • Exor (UniOP) eTOP 11-0050 - Operator Panel Touch HMI
  • Schneider (Telemecanique) XBT P021010 - Magelis Operator Panel HMI
  • Omron NS5-SQ00-V2 - Touch Screen Operator Terminal HMI
  • Jetter JM-204-480 - Motion Controller Drive Module
  • Schneider (Telemecanique) XBTF024510 - Magelis HMI Touch Panel
  • Allen Bradley 22B-D010H204 - PowerFlex AC Drive Inverter
  • Yaskawa SGDV-2R8A15A - Sigma V Servo Pack Drive
  • National Instruments NI 9485 - C Series Solid-State Relay Output Module
  • Schindler SMICE 61.Q - Elevator Control Board PCBA
  • Schneider Electric (Telemecanique) TSXSUP40 - Power Supply Unit
  • Jandel SE272131 - Cylindrical Two Point Probe Sensor
  • National Instruments NI 9516 - C Series Motion Analog Input Module
  • Schneider Electric TSX3722101 - TSX Micro PLC Base Unit
  • Applicom International PC2000 V3.7.1 - Communication Card Interface
  • National Instruments cRIO-9014 - CompactRIO Controller Module
  • Qualiflow AFC-260 - Mass Flow Controller
  • Schneider (Telemecanique) HMIGTO3510 - Magelis GTO Color Touch Panel HMI
  • ESR Pollmeier BN 6751.3817 - Servo Controller Drive
  • Omron NT30-ST131-E - Touch Screen Operator Terminal HMI
  • Vickers / Moog BRM-P1-CF2100 - Brushless Servo Motor Drive
  • Festo SPC-200 - Multi-Axis Controller Module
  • Sartorius YDI 150 HD - Data Input Terminal Control Panel
  • Square D / Schneider (Telemecanique) XBTPM027110 - Magelis Operator Terminal HMI
  • Schneider (Telemecanique) HMIGTO2300 - Magelis GTO Color Touch Panel HMI
  • Schneider Electric ASIABLB3004 - Switched Mode Power Supply
  • Schindler MCCE 4.Q A - Elevator Control Board PCBA
  • Yaskawa SGDB-05VD - Servopack Servo Drive Amplifier