Welcome to the Industrial Automation website!

NameDescriptionContent
HONG  KANG
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)

来源: | 作者:佚名 | 发布时间 :2023-11-21 | 440 次浏览: | 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.


  • ABB NE810 3BSE080207R1 Network switch
  • ABB NE802; NE802 Network switch 3BSE080237R1
  • GE HYDRAN 201Ti Single Channel Gas Monitoring Transmitter
  • GE Hydran M2-X Transformer Online Monitoring Equipment
  • GE Hydran M2 Transformer Monitoring System
  • Kollmorgen Seidel 65WKS-CE310/6PB - Servo Drive Control
  • Kollmorgen U9M4T - Servodisc DC Motor, With Harmonic Drive Transmission
  • KOLLMORGEN TT-2952-1010-B - INLAND BRUSH SERVO MOTOR WITH TACH
  • ONE VF-RA2474N-5/10/12/15 - Servo Drive Power Cable
  • Kollmorgen S30601-NA - Servostar 346 + EtherCat
  • Kollmorgen HDIL100P1 - Direct Drive Linear Hall Effect Assembly
  • Kollmorgen TT-4239-1010-AA - DC Servo Motor 875 RPM
  • PMI Kollmorgen 00-00907-999 - ServoDisc DC Motor 0.5" Diameter Shaft
  • INLAND KOLLMORGEN TT-2952-1010-B - MOTOR (USES RESOLVER)
  • KOLLMORGEN CTI-187-2 - BRUSHLESS MOTOR DANAHER MOTION
  • Kollmorgen 12-0857 - Lead Screw Electric Cylinder without Motor
  • Kollmorgen AKM13C-ANCNR-00 - Servo Motor
  • kollmorgen 6sm, 10m - Cable
  • KOLLMORGEN ME2-207-C-94-250 - GOLDLINE SERVOMOTOR-ENCODER COMMUTATED
  • Kollmorgen MT308A1-R1C1 - GoldLine Motor
  • Kollmorgen 73 & 54 cm Travel - Ironless Linear Motors on THK Rail
  • Kollmorgen AKM53H-ACCNR-00 - Servo Motor
  • Kollmorgen PA5000 - Power Supply
  • KOLLMORGEN D082M-12-1310 - GOLDLINE DDR DIRECT DRIVE ROTARY MOTOR 230Vrms 300 RPM
  • Kollmorgen RBEH-01210-A14 - Brushless Motor, Heidenhain D-83301
  • KOLLMORGEN Servotronix PRD-CC18551H-11 - Servo Board
  • Kollmorgen DH083M-13-1310 - Ho Direct Drive Rotary. Max Speed: 400/500 RPM
  • KOLLMORGEN BMHR-4.8XX - INLAND MOTOR
  • Kollmorgen Seidel 84421 - Motor Cable 20 Metre 6SM 27/37 AKM DBL Engines
  • Kollmorgen AKD1207-NBCC-0000 - Drive
  • HP Indigo / Kollmorgen VLM32H-ALNR-00 - Motor
  • SUPERIOR ELECTRIC / KOLLMORGEN GM05009005 - POWERSTAT 50 AMP VARIAC w/ PMI MOTOR
  • Kollmorgen CM12A1-015-033-00 - MOTOR CABLE for AKD B/P/T/M Motor AKM 1-7 Cable
  • Kollmorgen U9M2 - DC Motor
  • Kollmorgen AKM11C-ANMN2-00 - 3-Phase PM Servo Motor 110W
  • Kollmorgen 60-023168-000 - MOTOR GEARBOX ASSEMBLY SERVODISC DC NO REAR SHAFT
  • Kollmorgen AS10300 - servo drive servo star Cincinnati
  • Kollmorgen AKM23D-EFC2C-00 - Servo Motor AKD Drive
  • KOLLMORGEN E33HRFB-LNK-NS-01 - STEPPER MOTOR 2.7AMP 251W 1500RPM 170V
  • Kollmorgen AKM21G-ENM2DB00 - Servomotor
  • KOLLMORGEN SERVO STAR 620-AS - 230-480V 20A Servo Drive
  • Kollmorgen CFE0A1-002-006-00 - Encoder Cable 6.00m
  • KOLLMORGEN AKM21C-ANM2DBOO - PM SERVOMOTOR
  • Kollmorgen 03200-2G205A - ServoStar Servo Drive
  • Kollmorgen CR10251 - SERVOSTAR CD AC Servo Driver
  • Kollmorgen VF-DA0474N-03-0 - 10 Ft Feedback Cable
  • KOLLMORGEN AKM21S-ANMNR-03 - Servo Motor
  • Danaher Motion Kollmorgen S403AM-SE - Servostar 443M-S Servo Drive
  • Kollmorgen Seidel digifas 7204 - Servo Amplifier Digital
  • Kollmorgen Industrial Drive B-406-B-A1-B3 - Goldline Brushless Servomotor
  • Danaher Motion S20630-CNS - Servo Kollmorgen S200 Series
  • KOLLMORGEN B-206-A-31-B3 - GOLDLINE BRUSHLESS PM SERVO MOTOR 1400RPM
  • Kollmorgen Seidel SR6-6SMx7 - 4m Cable
  • Cincinnati Milacron Kollmorgen Vickers PSR4/5-250-7500 - Power Supply
  • Kollmorgen AKM 13C-ANCNR-00 - Gripper Handling with Neugart PLE 40 gears
  • Kollmorgen SERVOSTAR 403 A-P - 3a servo drive
  • KOLLMORGEN S6M4H - INDEXER ASSY SERVO MOTOR
  • SERVOMOTOR KOLLMORGEN SEIDEL 6SM 57M-3.000-G-09 - Servo Motor
  • Kollmorgen VP-507BEAN-03 - Valueline AKD 10 Ft Power Cable
  • KOLLMORGEN 28454 - SERVO DRIVE, SERVOSTAR 300 SERVOSTAR 310
  • KOLLMORGEN TT-4205-4017-C - INDUSTRIAL DRIVE DC MOTOR
  • Kollmorgen T150551 - Servostar 343 Control Drive
  • Kollmorgen ICD05030A1C1 - Platinum DDL Direct Drive Linear Motor w/ 30" Rail Way
  • Kollmorgen SERVOSTAR 303 S30361-SE - Servo Drive
  • Kollmorgen 00-00907-002 - ServoDisc DC Motor Varian Semiconductor 3500054
  • Kollmorgen CM12A1-025-005-00 - MOTOR CABLE for AKD B/P/T/M Motor AKM 1-7 Cable
  • KOLLMORGEN MOTION TECH IL18100A3TRC1 - BRUSHLESS LINEAR MOTOR PLATINUM DDL
  • Kollmorgen SERVOSTAR 406 M-C - Servo Drive FW: 7.36
  • Kollmorgen IC11030A1P1103 - platinum direct drive linear motor
  • W&T 10/100BaseT - Com Server Highspeed 3×RS232/RS422/RS485
  • Kollmorgen S30361-NA - drive brand
  • Kollmorgen Industrial Drives PSR3-208/50-01-003 - Power Supply
  • Kollmorgen RBE-03011-A00 - Brushless Frameless Servo Motor, OD: 5-5/64"/129mm
  • Industrial Drives SBD2-20-1101-5301C2/160-20 - Servo Amplifier Board For Parts
  • Industrial Drives SBD2-20-1101-5301C2/160-20 - Servo Amplifier Board For Parts
  • Industrial Drives SBD2-20-1101-5301C2/160-20 - Servo Amplifier Board For Parts
  • Kollmorgen IC44030A2P1 - LINEAR DRIVE MOTOR
  • KOLLMORGEN AKM22E-ANS2R-02 - servo motor + Micron X-TRUE 60
  • Kollmorgen 18442-01B - Pendant (E2)
  • Kollmorgen AKD-P00306-NBEC-0069 - Drive
  • Kollmorgen AKM53H-ACCNR-00 - Servomoteur
  • Kollmorgen AKD-P01207-NACN-0056 - Servo Drive
  • Kollmorgen SERVOSTAR 403a-c - Servo Drive
  • Kollmorgen B-204-B-39-016 - Servo Motor
  • Giddings & Lewis Dahaner Motion Kollmorgen M.1017.3140 R3 - Output Module
  • Kollmorgen KNSG300 - Emergency Light Unit
  • KOLLMORGEN 62-0050 Model T31V-EM-C0 - Servo Motor Shaft Size 3/8" Dia 1-1/4" Long
  • Kollmorgen S30601-NA-ARM9 - SERVOSTAR346 Controller w/o Fan As Is
  • Kollmorgen PMI Motors 00-00903-010 - ServoDisc DC Motor Type U9M4H 1/2" shafts
  • Kollmorgen PMI Motion U12M4 - Servo Disc DC Motor Universal Instruments 11467000
  • Kollmorgen AKM53H-accnr-00 - Servo Motor
  • DANAGER MOTION / KOLLMORGEN ACD4805-W4 - (70A ) Vehicle / Motor Controller
  • Kollmorgen s60300 - SERVOSTAR 603 3 x 230-480v 2kva
  • KOLLMORGEN B-404-C-21 - GOLDLINE BRUSHLESS P.M. SERVOMOTOR
  • Kollmorgen T-5144-A - GE Aviation 739034-01 Direct Drive DC Torque Motor
  • KOLLMORGEN M.1302.8761 - CABLE, POWER
  • Kollmorgen CE03250 - Servostar Servo Drive
  • Kollmorgen K-342 - dual axis automatic autocollimator
  • Kollmorgen TT-4500-1010-B - Inland Motor
  • Kollmorgen S20260-Srs - Synqnets200 Series Servo Drive Forparts
  • Kollmorgen PRDRHP720SND-65 - drive CR06703-R
  • KOLLMORGEN S70362-NANANA - driver
  • Kollmorgen CR06260-000000 - SERVOSTAR CD AC Servo Driver
  • KollMorgen akd-m00306-mcec-D000 - Multi-Axis Master Programmable Drive AKD PDMM
  • KOLLMORGEN S61000 - SERVOSTAR 610 3X230-480V 10A
  • Kollmorgen AKD-P00306-NBCC-0000 - AKD Servo Drive
  • KOLLMORGEN CP306250 - SERVOSTAR SP Servo Drive
  • Kollmorgen MPK411 - controller
  • Kollmorgen S64001 - SERVOSTAR 640, factory-certified
  • Kollmorgen Servotronix Prdr0087006Z-00 - Lvd Servo Drive
  • Kollmorgen AKD-P00306-NAAN-0000 - Servo Drive Controller, 1.2KVA, 240Vac, 3 Phase
  • Kollmorgen MCSS08-3232-001 - MCSS06-3224-001 ServoStar Drives (AS-IS)
  • Kollmorgen CR06250-2D063A - drive
  • YASKAWA SGDP-04APA - SERVOPACK SERVO DRIVE
  • Kollmorgen s62001 - servostar 620-as 14kva 20a ip2o 3x 230-480v
  • Kollmorgen Seidel S60100 - Servostar 601 Servo Drive
  • KOLLMORGEN CR06703-R - HP SERVOSTAR CD CONTROLLER
  • kollmorgen Prdr0052200z-05 - graco inter Servo Component
  • KOLLMORGEN S403AM-SE - drive SERVOSTAR 443M-S
  • YASKAWA SGDP-01APA - SERVOPACK SERVO DRIVE
  • Kollmorgen CE06200-1H348H - SERVOSTAR CD Servo Driver
  • Kollmorgen S71262-NANANA - S700 Servo Amplifier 208Y/120V 480Y/277V
  • Kollmorgen S70302-NANANA-NA - S700 Servo Driver
  • KOLLMORGEN S61401-560 - ATS-SERVOSTAR 614-AS Servo Drive
  • KOLLMORGEN Industrial Drives BDS4A-103J-0001/102A21P - Servo Controller
  • Kollmorgen S71202-NANANA-NA-024 - S700 Servo Driver
  • KOLLMORGEN S70302-NANANA - driver
  • Kollmorgen CR06250 - SERVOSTAR Servo Drive