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 | 301 次浏览: | 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 Fanuc - A16B-3200-0020 Circuit Board Industrial Automation Core Component
  • GE IS420UCSBH3A - Advanced Industrial Control Module
  • GE Fanuc - IC693APU300J PAC Systems RX3i PLC Controller
  • GE FANUC - IC693MDL654 Modular Control System
  • GE Fanuc - DS200GDPAG1AEB Industrial Control Module for Advanced Automation
  • GE Fanuc - IC694ACC310 Filler Module Advanced Process Control Solution
  • GE Fanuc - IC200MLD750 Output Module Versamax PLC
  • GE IS220PSCAH1A - Advanced Power Control Module for Turbine Systems
  • GE Fanuc - IC220STR001 Direct Motor Starter for Precision Control
  • GE Fanuc - IC698CPE020-GP Slot Rack Card High Performance Control Module
  • GE FANUC - IC693MDL240 Modular Control Module
  • GE Electric - IC693PBM200-FE Master Module Industrial Automation Control Core Component
  • GE URRHV - Power Supply Advanced Industrial Control
  • GE DS6800CCID1D1D - Industrial I/O Interface Module
  • GE MULTILIN - EPM 9650 POWER QUALITY METER PL96501A0A10000
  • GE Electric - Fanuc IC697CMM742-KL Advanced Type 2 Ethernet Interface Module
  • GE Fanuc - IS200TBAIH1C Analog Input Terminal Board
  • GE FANUC - IC600FP608K IC600LX624L Memory Module for Industrial Automation
  • GE Fanuc - 531X135PRGAAM3 Programmer Card Board
  • GE IC200PER101E - Power Supply
  • GE IS420ESWBH3A - High-Speed Industrial Ethernet IONet Switch
  • GE Electric - EPSCPE100-ABAG Standalone PACSystems RSTI-EP Controller
  • GE IS200ICBDH1ACB - Advanced Industrial Control PCB for Critical Applications
  • GE DS200FCGDH1BAA - Precision Gate Distribution & Status Card for Industrial Control Systems
  • GE Fanuc - IC660HHM501R Portable Monitor for Industrial Automation
  • GE DS200IMCPG1C - Power Supply Interface Board for Industrial Controls
  • GE FANUC - IC695ALG508 Advanced Control Module for Industrial Automation
  • GE VM-5Z1 - PLC Module Programmable Logic Controller
  • GE FANUC - IC754CKF12CTD QuickPanel Control Industrial-grade HMI for Precision Automation
  • GE UR - 9GH UR9GH CPU High-Performance Control Module for Industrial Automation
  • GE IS220PGENH1A - Generator Power Unit (I/O)
  • GE Electric - IS220PD0AH1A Industrial Control System I/O Pack Module
  • GE IC694ALG221B - High-Performance Bus Expansion Cable for Enhanced PLC Connectivity
  • GE IC693MDL752 - High-Performance Negative Logic Output Module
  • GE DS200VPBLG1AEE - High-Performance Circuit Board
  • GE Electric SR745-CASE - 745-W2-P5-G5-HI-T Excellent Value
  • GE IS200TTURH1CBB - High-Performance Programmable Logic Controller Module
  • GE A06B-0227-B100 - Servo Motor Precision
  • GE 8021-CE-LH - High-Performance AC/DC Coil Contactor
  • GE FANUC - IC693BEM340 High-Speed Ethernet Controller Module
  • GE DS200SDCIG2AGB - Advanced DC Power Supply & Instrumentation Board for Industrial Control
  • GE FANUC - IC693CHS397E CPU Base Advanced Control Module for Industrial Automation
  • GE UR7BH - Relay Module High Performance Relay for Industrial Control Applications
  • GE FANUC - A17B-3301-0106 CPU MODULE
  • GE Fanuc - HE693ADC415E Drive Module
  • GE IS200VAICH1D - Analog Input Module for Industrial Control Solutions
  • GE Fanuc - DS200SHCAG1BAA High-Performance Turbine Energy Shunt Connector Board
  • GE Fanuc - IS215VCMIH2CC | Communication Card
  • GE IC690ACC901 - Mini Converter Kit Efficient Communication Solution
  • GE Electric - DS3800HCMC Gas Turbine Daughter Board For Enhanced Control & Efficiency
  • GE Electric - FANUC IC200ALG320C Analog Output Module
  • GE Electric - (GE) IS420UCSBH3A REV D
  • GE IC693MDL646B - Advanced Input Module for Industrial Control Solutions
  • GE IC693MDL730F - Advanced Digital Input Module for Industrial Automation
  • GE IC200ALG240 - Analog Input I/O
  • GE IC660BBD020Y - | DC Source I/O Block
  • GE Electric - IC698ACC735 Shielded Single Slot Faceplate
  • GE Fanuc - IC200MDL730 Discrete Output Module
  • GE IS200VAOCH1B - VME Analog Output CD for MARK VI
  • GE IC200ALG328E - High Precision Analog Output Module
  • GE Fanuc - IC200CHS001 A Cutting-edge VersaMax PLC
  • GE UR6DH - Digital I/O Module Advanced Power System Communication
  • GE Fanuc - IC695CHS007 Universal Control Base
  • GE VMIVME-2540-200 - Intelligent Counter & Controller
  • GE Fanuc - DS200LDCCH1ARA Advanced Mark VI Circuit Board for Industrial Automation
  • GE DS3800HMPG - Cutting-Edge CPU Card for Advanced Industrial Control
  • GE IS220PAICH1B - 10 Analog Inputs & 2 Analog Outputs
  • GE DS200TCQAG1BHF - Analog Input/Output Card Precision Control for Industrial Automation
  • GE FANUC - 531X139APMASM7 Micro Application Board for Industrial Control
  • GE DS3800NPPC - Circuit Board Precision Control in Industrial Automation
  • GE IC200UEX626 - 6-Channel Analog Expansion Module for Advanced Process Control
  • GE IC693PWR331D - Advanced Power Supply for Industrial Automation
  • GE DS200TBQBG1ACB - Advanced RST Analog Termination Board
  • GE Fanuc - DS200TBCAG1AAB Advanced PLC for Industrial Automation
  • GE FANUC - DS200LRPAG1AGF Industrial Line Protection Module
  • GE IC693MDL654 - Advanced Logic Input Module for Industrial Control Systems
  • GE Industrial - Controls IC695LRE001B Transmitter Module
  • GE DS3800HUMB1B1A - Universal Memory Board
  • GE IC660BBD021W - Advanced 3-Wire Sensor Block for Industrial Control Systems
  • GE FANUC - IC694APU300 High-Speed Counter Module
  • GE IC694ACC300 - Input Simulator Module Advanced Control Solutions
  • GE FANUC - IC687BEM713C Advanced Bus Transmitter Module for Industrial Automation
  • GE IS200TGENH1A - Advanced Turbine Control Board for Gas and Steam Turbines
  • GE IC693MDL654F - Advanced Modular PLC Input Module for Industrial Automation
  • GE IS200AEPAH1BMF-P - | IS210BPPCH1AD I/O Pack Processor Board
  • GE IS230TRLYH1B - New in Box | Industrial Control Module
  • GE 489-P5-HI-A20-E - Industrial Generator Management Relay
  • GE Electric - (GE) IS200IVFBG1AAA Fiber Optic Feedback Card for Industrial Automation
  • GE Electric - IC693PWR322LT Advanced Industrial Power Supply
  • GE Fanuc - IC200ALG432 Analog Mixed Module VersaMax
  • GE Fanuc - IC693ALG392 Precision Analog Output for Industrial Control Systems
  • GE Fanuc - IC695ACC402 Evergreen Controller Advanced PLC Solution for Industrial Automation
  • GE IC693ACC300D - Input Simulator Module
  • GE 46-288512G1-F - Advanced Industrial Control Module
  • GE IC755CSS12CDB - High-Performance Control Module
  • GE DS200TCCAG1BAA - High-Performance PLC PC Board
  • GE IC3600TUAA1 - Advanced Industrial Control Module
  • GE 8810 - HI TX-01 Brand New Advanced Industrial Control Module
  • GE 750-P5-G5-D5-HI-A20-R-E - Relay
  • GE Fanuc - IC200MDL330 Network Interface Unit Advanced Networking for Industrial Automation
  • GE Fanuc - IC676PBI008 Waterproof Input Block
  • GE Circuit - Board 304A8483G51A1A
  • GE YPH108B - Measurement Board
  • GE UR6AH - Digital I/O Module Industrial Control
  • GE IC200ALG264E - High Precision Current Analog Input Module
  • GE IS200TRLYH2C - Relay Output Module with Contact Sensing Terminal Board; Manufacturer GE-FANUC
  • GE IC693ALG442B - Advanced Programmable Logic Controller Module
  • GE IC693ACC301 - Lithium Battery Replacement Module
  • GE Fanuc - DS200PTBAG1A Termination Board Advanced Control Module
  • GE IS200VCRCH1BBB - Mark VI Circuit Board
  • GE IS200UCVEH2A - High-Performance Exciter Bridge Interface BOARD for Industrial Automation
  • GE IS220PDIOS1A - Mark VI Control Module
  • GE IS210AEBIH3BEC - Advanced Input/Output Board for MKVI Control Systems
  • GE 6KLP21001X9A1 - AC Variable Frequency Drive
  • GE 531X123PCHACG1 - Advanced Power Supply Interface Card
  • GE Electric - STXKITPBS001 Profibus Interface Module for Industrial Control Systems
  • GE DS200TCRAG1AAA - Industrial Grade Relay Output Board for Enhanced Control Systems
  • GE UR9NH - CPUUR CPU Module
  • GE Electric - DS200TCQFG1ACC
  • GE Electric - Fanuc IC200ALG260H Analog Input Module Precision & Reliability in Automation Solutions
  • GE DS200SLCCG3RGH - Industrial Control Module
  • GE DS3800NMEC1G1H - Industrial Motor Control Module
  • GE Fanuc - 531X113PSFARG1 | Mark VI Circuit Board
  • GE Fanuc - IC693ALG392C Analog Output Module Precision Control in Industrial Automation
  • GE IC693ALG220G - Advanced Input Analog Module for Industrial Automation
  • GE DS200DTBCG1AAA - Industrial Control System's Reliable Core
  • GE F31X301DCCAPG1 - Control Board Advanced Industrial Automation Solution
  • GE Electric - (GE) IS200AEAAH1AAA Mark VI Printed Circuit Board