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


  • Atlas Copco 48R050-01001 Relay Module
  • Atlas Copco 49-4100-01C5L Power Supply
  • Atlas Copco D303-DL-BASIC Controller
  • Atlas Copco 8433056445 I/O Expander Error Proofing Module
  • Atlas Copco PF4000-G-HW Screwdriver Controller
  • Atlas Copco 1202-66270-9325 Cooler Cover Valve
  • Atlas Copco EA2-TX-100 Dew Point Sensor
  • Atlas Copco PF4000-C-HW Controller 240VAC
  • Atlas Copco 1900 0701 05 Elektronikon Control Panel
  • Atlas Copco PF3107-C-HW Tensor 3-7 Controller
  • Atlas Copco TPS Control 8202900410 Controller
  • Atlas Copco 1900-1005-27 Circuit Board XAS 750
  • Atlas Copco Power Focus SL PF4002-C-HW Controller
  • Atlas Copco 1900520490 Air Compressor Control Panel
  • Atlas Copco QCM2-T-34050 Mass Flow Meter
  • Atlas Copco CSS91-B2 Compressor Controller Module
  • Atlas Copco PF3109-C-DN-HW Industrial Controller
  • Atlas Copco P1900520060 Air Compressor Controller Gateway
  • Atlas Copco Coupling 1635099600 Compressor Part
  • Atlas Copco ACTA 4000 Torque Calibrator
  • Atlas Copco 1626850005 Compressor Control Panel
  • Atlas Copco DMC50412 Digital Motion Controller
  • Kontron 2-DH34-0100-03 Atlas Copco SOKO-M@C-IIA-70 HMI 12-24V
  • Atlas Copco PF3107-G-HW PF3107GHW Controller
  • Atlas Copco PF3109-G-DN-HW PF3109GDNHW Controller
  • Atlas Copco 8433-2742-00 Power Supply Module
  • Atlas Copco 1900-0710-82 Controller Module
  • Atlas Copco 9040120204 Industrial Component
  • Atlas Copco 2906-0674-00 Zr55-90 8000H Maintenance Kit
  • Atlas Copco 1900 0701 23 High Range Regulator for Compressor Controller
  • Atlas Copco 4220263610 PF4 Tool Cable 10M ST Cable
  • Atlas Copco XC2002 1604951601 Compressor Panel
  • Atlas Copco S9 Tensor PF3009-G-DN-HW Controller
  • Atlas Copco 80471.000009 Pneumatic Roller Screw Unit
  • Atlas Copco 8433710005 PF4000-C-HW Compact Controller Profibus
  • Atlas Copco PF4002-G-HW Power Focus Controller
  • Atlas Copco 8431038150 Impulse Nutrunner
  • Atlas Copco PF6000 Power Focus Nutrunner Controller
  • Atlas Copco 1626850006 Compressor Controller Panel
  • Atlas Copco STR61-70-13 Tensor Angle Wrench
  • Atlas Copco ETV ST61-40-10 Right Angle Electric Screwdriver with Cable
  • Atlas Copco MK5S Touch Display Controller P1900520400
  • Atlas Copco 1900520020 Controller Panel for Compressor
  • Atlas Copco SRTT-B 1000Nm-50 Transducer 8059094675
  • Atlas Copco ETV ST61-50-10 Right Angle Electric Screwdriver with Cables
  • Atlas Copco 4240070100 Power Supply Module
  • Atlas Copco TC-52S-I TC52SI Controller
  • Atlas Copco ACTA 4000 QC Torque Calibrator
  • Atlas Copco 8433 1236 51 ETV S42-10-10 Right Angle Nutrunner
  • Atlas Copco ETV STB63-50-B10-BCR-IRCW Tensor STB Right Angle Nutrunner
  • Atlas Copco PF6000 SE-10523 Screwdriver Control System
  • Atlas Copco Power MACS TC52S 4240 0442 81 Controller
  • Atlas Copco 1900071162 Operator Interface Panel
  • Atlas Copco 4230-1705-80 I/O Expansion Module
  • Atlas Copco 8433 0005 10 Power Supply Module
  • Atlas Copco 8433-0020-20 Interface Module
  • Atlas Copco TC-4000-S 8435 6500 00 Controller
  • Atlas Copco PF4002-C-HW Power Focus SL Controller
  • Atlas Copco STanalyser STA-6000 8059095560 Torque Analyzer
  • Atlas Copco ComNode 2 Touch 8433271110 Communication Gateway
  • Atlas Copco PF3000-C-HW Tensor S4 S7 RBU Controller
  • Atlas Copco PPBE0613 24VAC Control Panel
  • Atlas Copco PF3000-C-HW Tensor S4 S7 Controller
  • Atlas Copco Neos ARC-D130-S+ Inverter Drive
  • Atlas Copco Power Focus SL PF4002-G-HW Controller
  • Atlas Copco 8436 6770 00 ILT Base Station
  • Atlas Copco 1900520400 Air Compressor Control Panel
  • Atlas Copco 1900-0711-51 Display Keypad Unit
  • Atlas Copco 1900-0710-52 Communication Control Board
  • Atlas Copco 1900-0701-04 Control Interface Module
  • Atlas Copco 8092 1143 40 SRTT Transducer 180Nm
  • Atlas Copco MT Focus 6000 Controller with Pump and Screwdriver
  • Atlas Copco Elektronikon GraphicPlus Controller PPBE0622 PPBE0633
  • Atlas Copco PF3109-G-DN-HW Tensor 8-9 Power Focus Nutrunner Control
  • Atlas Copco Elektronikon P1900520440 Touch Controller
  • Atlas Copco Power Focus 8 Controller 8436280002
  • Atlas Copco 8436 1500 03 FlexCarrier 3-Slot Torque System Component
  • Atlas Copco Power Focus 6000 PF6000 Industrial Controller
  • Atlas Copco TC-4000-P-PB-ES Power Macs Controller
  • Atlas Copco 8433-0015-20 8433001520 Cable Assembly
  • Atlas Copco 49X10301AB Pressure Transducer Sensor
  • Atlas Copco 8436180002 Replacement Filter Element
  • Atlas Copco C4700A01V216 Compressor Control Module
  • Alcatel-Lucent 3HE01019AAAA01 High-Speed Interface Module
  • Alcatel-Lucent 111381 Power Distribution Module
  • Alcatel TN 2523 1:1 CDN III Module – MRPQAE3
  • Alcatel-Lucent 3he06151aaac01 8-Port Interface Module – IPUIBKB3AA
  • Alcatel-Lucent LNW46 DMX Metro OC12 Interface Module – 108694878
  • Alcatel-Lucent 41A12C FT-2000 Optical Transponder Unit – 108188053
  • Alcatel-Lucent 8DG02607AA POW100 DC-DC Converter Module
  • Alcatel-Lucent LambdaXtreme WWBQ21 40G Optical Transponder
  • Alcatel-Lucent TN1891 5ESS Protocol Handler PHV5 Commcode 108747064
  • Alcatel-Lucent 300-0303-900 T1D3PDL1AE Digital Matrix Card
  • Alcatel-Lucent G-821M-A Module
  • Alcatel Lucent MPT-GC Eth 1G+ARM TX 81-86GHz 3DB80005AAAAO1
  • Nokia 3KC48990AB 1830PSS 16FAN2 Fan Unit
  • Alcatel 3EC17041AA PSPC-G4 PCB CP011200552
  • Alcatel 300-0437-906 Rev F DEXCS DMC T1D1L0S Module
  • Alcatel-Lucent 3DW03697ABBA01 TFD64A Module
  • Alcatel-Lucent AWR12 S1-1 UN Interface T3PQAC3AAA
  • ALCATEL LUCENT 9500-MPR ODU RADIO MPT-HC V2 9558HC 3DB20914BAAA03 6GHZ
  • Alcatel-Lucent 9500-MPR ODU 300 11GHz Microwave Radio MPT 3DB23035AEAA01
  • Alcatel 2C7-1005-000 Teflon Bell Jar Holder Ring – 146111
  • Alcatel-Lucent BNJ118 S1:4 Circuit Board – Interface Module
  • Alcatel-Lucent 9500-MPR ODU 300 6GHz Microwave Radio MPT 3DB23215AFAA01
  • Alcatel 3EM04001AA Signal Processing Unit with Accessory Cards
  • Alcatel VAUCAL5KAB AA1418FE2BG 3FE67437AAD02 Interface Card
  • Alcatel-Lucent 1642 Edge Multiplexer N1217P YF – Access Node
  • Alcatel-Lucent 3HE07158BA 7750 SR-12 12-Port 10GIGE MultiCore IMM IPUCA741AA
  • Alcatel 101200429000 Power Divider 746-776 MHz with Heatsinks
  • Alcatel-Lucent 9500-MPR ODU 300 MPT 6GHz 3DB23215ADAA01 High Power Radio
  • Alcatel-Lucent 9500-MPR MPT-HC 23GHz 2/2P ODU Radio 3DB20474BA
  • Alcatel-Lucent 9500-MPR ODU 300 MPT 6GHz 3DB23215AAAA01 Low Power Radio
  • Alcatel 3BA52126ABAA OmniPCX 4400 Compact Cabinet
  • Alcatel-Lucent 3HE12300AA 7750 SR-1 Subrack with Licenses
  • Alcatel 300-1368-903 Rev C DEXCS SPA-1 T1PQAC1 Line Card
  • Alcatel-Lucent 408977981 WOWUAB6HAA 10G XPR OTU2 XPonder Card
  • Alcatel-Lucent-Nokia 3HE08423AARC01 7750 SR Control Processor Module IPUCBGZ1AA
  • Alcatel-Lucent 9500-MPR ODU 300 MPT 6GHz 3DB23215ABAA01 Low Power Radio
  • Alcatel-Lucent CPU7-2 3BA23259ABJE 05 Control Processor Module
  • Alcatel WTM11AD 3DW03915DABA01 Optical Transponder Module
  • Alcatel-Lucent 1340FMPK Card Chip BA5IVY6BAA – Processor Module
  • Alcatel-Lucent 3HE06151ACAC01 Control Fabric Module
  • Alcatel-Lucent 9500-MPR 18GHz 1P-1 Protection ODU Radio 3DB20433BA AA04
  • Alcatel-Lucent 9500-MPR ODU MPT-HC 18GHz Radio 3DB20433BAAA04
  • Alcatel-Lucent SM269 LMPQ04KAXX Circuit Pack – Interface Module
  • Alcatel OME25HP Filter Cartridge – 107494
  • Alcatel-Lucent ALU-BZ74 99BC-4 –48V Battery Cabinet