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


  • GE IS2I5WEMAHIA+IS210BPPBHZCAA Mark VIe Safety Controller & I/O Module Set
  • GE IS2I5AEPAHICH+IS210BPPBHZCAA Mark VIe Analog I/O Control Module Set
  • GE IS2I5WECAH1B+IS2108PPBHZCAA Mark VIe Controller Redundant I/O Set
  • VMIC HSDA 332-000111 Scanning Analog-to-Digital Converter Module
  • GE VMIC VMIVME1150B VME Module
  • FANUC VMIVME3128 VME Digital I/O Board
  • GE Fanuc VMIVME-7697-350 VMEbus Single Board Computer
  • GE Fanuc VMIVME-4150 PLC Board
  • FANUC VMIVME-1160A VMEbus Module
  • GE Fanuc VMIVME-4116 VMEbus CPU Processor Controller
  • FANUC VMIVME-9300 VMEbus Module
  • VMIVME-7589A Pentium VMEbus CPU Board
  • GE Fanuc VMIPCI-7767-13100 PCI Board
  • GE Fanuc VMIVME-4140 VMEbus Module
  • IS415UCVGH1A VME Controller Card
  • VMIC VMIVME-1150 VME Circuit Board
  • VMIC VMIVME7589 Processor Board
  • FANUC VMIVME-2200 VME Circuit Board
  • IS215UCVEH2A VME Controller Card
  • VMIC VMIVME-7589A-446 VMEbus CPU SBC
  • VMIC VMIVME-7658-330 VME Single Board Computer
  • VMIC SEMIVISION OPAL VMEbus CPU Module with VMIVME-7588
  • GE Fanuc VMIVME-4140 VME Module
  • Abaco VMIVME 2532A 32-Bit High-Voltage Digital I/O Board – VMEbus
  • VMIC VMIVME 100-Pin VME Bus I/O Cables
  • VMIC ASSY 11994R13 VMEbus Module
  • GE Fanuc VMIVME 1182 VMEbus Input Board – 332-011182-030A
  • VMIC VMIVME-7589 VMEbus Module with VMIVME-7434
  • VMIC VMIVME-7588-787 Single Board Computer – 332-250236
  • VMIC 7487A VMEbus CPU Board – 332-107487-033 H
  • FANUC VMIVME-3125 VMEbus Analog Input Board
  • VMIC VMIVME 6015 VMEbus Board – 332-006015-000
  • VMIC ASSY 11993R2 VMEbus Module
  • Cisco 2851 Router with VMIC2-1MFT-T1/E1 Module
  • Applied Materials VMIC 7505 800MHz CPCI SBC
  • VMIVME-2534-046D 32-Bit High-Voltage Digital I/O Board
  • VMIC 5530M Optical Extender PCB Board
  • GE VMIC XVB602 Control Module
  • VMIVME-6005-020 Octal ARINC-429 Controller
  • VMIC VMI PCI 3322 Board
  • FANUC VMIVME-7487 VME Processor Board
  • VMIC 332-800576-000A VMIACC 0576 Module
  • VMIC VMIVME-7805-231000 VME Board
  • ABACO VMIC VMICBL-000-F3-102 Reflective Memory Cable
  • VMIC 332-000131-B VMIVME PCB Card
  • VMIC 320-250236 with VMIVME-7588 Processor Board
  • VMIC ASSY 12149 Module
  • FANUC VMIC VMIVME5010 I/O PCB Board
  • VMIC VMIVME-7698-345 VME Single Board Computer
  • IS215UCVEH2A VME Controller Card
  • VMIC VMIVME-7658-330 VME Single Board Computer
  • VMIC VMIPCI-5790-000 Dual-Channel Ultra160 SCSI Adapter
  • VMIC VMICPCI-7756-460 Single Board Computer
  • VMIVME-4920 Dual Channel Digital Converter Board – VMEbus
  • GE Fanuc VMIVME-4140 VMEbus Module
  • VMIC VMIPMC-7440 PMC Sound Card
  • VMIC PCI 4320 VMEbus Board-333-854320-000
  • VMIC VMIVME 5530S VMEbus Interface Module
  • FANUC 332-999995-000 VMEbus PCB Assembly
  • FANUC VMIVME-4116-030 VMEbus Module
  • VMIC VMIVME-7658-330 VMEbus Single Board Computer
  • VMIC VME-2532A VMIVME2532A-413 Digital I/O Board
  • VMIC VMIVME-7696-650 VMEbus Processor Board
  • VMIC VMIVME-7487A Mainframe Board
  • GE Fanuc VMIVME-2120-175 Digital Output Board
  • Abaco VMIVME-4125A-000 System Test Calibration Board
  • VMIC VMICPCI-5579 Reflective Memory PCI Board
  • FANUC A860-2000-X003 Encoder Interface Module
  • FANUC 332-999992-000 VME Module
  • VMIC VMIVME-7698 VME Module
  • FANUC A860-2000-X003 Encoder Interface Module
  • VMIC 333-657755-000 B LSC-3 4201 Board
  • VMIVME-9304 CPU Board with NEC FGA-002A Interface Chip
  • VMIC VMIVME-7805 VMEbus Board – VMIVME-7805-234001
  • VMIC 332-000131-000M01 VMIVME PCB Card
  • FANUC GE VMIC VMIVME 2510B Digital I/O Board
  • VMIC VMIPMC-5795-000 PMC Ultra160 SCSI Adapter
  • GE Fanuc VMIVME 5588 High-Speed Reflective Memory Board
  • VMIC VMIVME 4132 VMEbus Analog Output Board
  • VMIC VMIVME-3418 8-Channel Strain Gauge and RTD Board
  • VMIC VMIPMC-5797-000 Ultra320 SCSI Host Bus Adapter
  • VMIC VMIACC 0562 Accessory Module
  • Abaco VMIVME 4116 8-Channel 16-Bit Analog Output Board
  • VMIC VMIVME 4512 Analog I/O Board – 332-004512-300
  • VMIC VMIVME 4120 VMEbus Circuit Board – 332-004120
  • VMIC VMIVME-3801-100C Analog-to-Digital Converter Module
  • IS215UCVEH2AE VME Controller Card
  • FANUC 333-00DMA0-000 VME Module
  • GE Fanuc VMIVME-5588-200 High-Speed Reflective Memory Card
  • VMIC VMIVME-7696-650 VMEbus Single-Board Computer
  • GE Fanuc VMIVME-5532S VMEbus Fiber-Optic Repeater Link
  • VMIC GE EV-DIO-01 Control Board
  • Abaco VMIVME-7751 Pentium III VME Single Board Computer
  • PMC-5565PIORC-110000 128MB Reflective Memory Card
  • Abaco VMIVME-5565-010000 Reflective Memory Board
  • VMIC VMIPMC-5565 Reflective Memory PMC Module
  • VMIC VMIVME 5504 Slave VME Module
  • VMIC VMIVME-5740-12000 VMEbus Hard Drive Module
  • VMIC VMIVME-7751 VMEbus Processor Module
  • VMIC VMIVME-7588 CPU Module
  • VMIC 332-000132 VMIVME PCB Card
  • GE Fanuc VMIVME-4514A Analog I/O Board
  • Abaco VMIVME-2528-000 128-Bit TTL Digital I/O
  • VMIC VMIVME 4514 Scanning Analog I/O Board
  • VMIPCI 5588-101 High Speed Fiber Optic Reflective Memory Card
  • VMIC VMIVME-1228 VMEbus Board
  • VMIC VMIVME-7455 CD-ROM Drive Module
  • VMIC VMIACC 0577 Compact PCI Board
  • IS415UCVGH1A VME Controller Card
  • VMICPMC-5664 VME PMC Dual Fiber Card
  • VMIVME1128 128-Bit High-Voltage Digital Output Board
  • VMIC VMIVME-2170A VMEbus PCB Board
  • VMIC 332-015565-010L VME Module
  • VMIC VMICPCI-7612-470 Single Board Computer
  • VMIC EV-CNT/01 Control Board
  • VMIC VMIVME 1181 VMEbus Input Board – 333-001181-000 A
  • VMIC VMIVME-1150 VMEbus Module
  • VMIC VMIVME-5576 VMEbus Module
  • VMIC VMIVME-4150 VMEbus Module
  • VMIC VMIOMAX-8001B PLC Rack
  • VMIC VMIVME 2128 High-Voltage Digital Output Board
  • VMIC VMIVME-1111 64-Bit High-Voltage Digital Input Board
  • GE Fanuc VMIVME 1182 VMEbus Input Board – 332-011182-060C
  • VMIC VMIVME-7696 VMEbus PC Board
  • VMIC VMIVME-7686 VMEbus Module
  • GE VMIVME-7486 VME PCB Board
  • VMIC VMIVME-7740-840 Processor Module
  • VMIC VMIACC BT01 REV 0 Transition Board