The S7-300/400 communicates with SINAMICS S120 via the DP bus

Create Date: 2024-8-30 12:03:23|Source: Siemens/Siemens

1. Overview of DP bus communication function
Periodic and non-periodic data communication between the S7-300/400 and SINAMICS S120 via the DP bus. Using the standard S7 function block SFC14/SFC15, the S7-300/400PLC can send the control word 1 (CTW1) and the master setting value (NSETP_B) to the drive through the PROFIBUS periodic communication mode. With the standard S7 function blocks SFC58/SFC59, it is possible to achieve non-periodic data exchange, read or write the parameters of the drive.

2. The connection between S7-300/400 and S120 device
3. Drive station address setting
1. There are two ways to set the PROFIBUS communication address of the drive:
(1) The address setting is realized by the DIP switch on the CU control unit, and the effective address value is: 1... 126, in this example, the address setting is shown in the figure below.
Note: When changing the address through the DIP switch, the power supply of the inverter should be disconnected
                                                                                                                                          
(2) When the DIP switch is all dialed to the OFF or ON state, the address can be set by using the parameter P918, otherwise
The address set in the P918 parameter is invalid.
By default, the Baud rate for PROFIBUS communication of the drive unit is 1.5 Mbps
2. The station address of the drive device set in the hardware configuration of the S7-300/400 should be consistent with the station address of the drive device.
4. Communication message settings
Only specific message structures can be selected for different drives, as described in SINAMICS_S120_Commissioning_Manual. Table 1 lists commonly used packets.
Table 1.


Packet format 999 is a user-defined message, and when the user selects this packet format, the start and stop control positions of the motor need to be associated by the user. In this case, the PLC control request must be set to 1 (P854=1).
Note: You can configure the packet structure as needed during the S7-300/400 hardware configuration
compilation and saving; After that, open Starter and check whether the packet structure is consistent
Open "configuration" and click the "Transfer to HW config" button.

Figure 2








DC/AC drive packet setting



fig.3

5. Use DP bus to start, stop and speed control the motor
        The S7-300/400PLC sends the control word 1 (CTW1) and the master setting value (NSETP_B) to the drive via PROFIBUS periodic communication.
        (1) Bit0 in the control word is used to control the start and stop of the motor.
        (2) The main setpoint is the speed setpoint, and the frequency setpoint and the actual value are standardized so that 4000H (hexadecimal) corresponds to 100%, and the highest frequency (max) of transmission is 7FFFH (200%). The reference frequency can be modified in the P2000 (the default value is 50Hz).
        (3) When the configured packet structure PZD=2 or free packet 999, the "MOVE" command can be used to transmit data in S7-300/400; When the configured packet structure PZD〉2, the SFC14 and SFC15 system function blocks need to be called in S7-300/400.
        • SFC14 ("DPRD_DAT") is used to read process data from Profibus slaves
        • SFC15 ("DPWR_DAT") is used to write process data to Profibus slaves
Examples: SERVO_02 control word, transmission of master setting value, status word, and actual frequency reading program
       (1) Control the drive to run:
       The drive is started by sending the control word (STW1) 047E and then 047F, which is specified in DB10.DBW8 (see Figure 4), the master setting value is set in DB10.DBD10, and the operating signal is M1.0. These values are set and monitored VAT_2 variable tables. The control procedure is shown in Figure 3.
   (2) Stop the drive:
       The control word 047E should be sent to the drive.
   (3) Read the actual value of the drive status word and frequency:
       The PLC receives the status word 1 (ZSW1) and stores it in DB10.DBW0, and the actual value of the frequency transmitted by the receiving driver is stored in DB10.DBD2.

Figure 3.  Control



Figure 4. DB10

6. Reading and writing drive parameters
1. Extended PROFIBUS DP Functionality (DPV1)
The non-periodic data transfer mode allows:
    • Exchange large amounts of user data (up to 240 bytes)
    • Non-periodic data exchange can be achieved with the functions of DPV1 READ and WRITE. Number of transfers
The contents of the block should be in accordance with the PROFIdrive Parameter Channel (DPV1) dataset DS47 (non-periodic parameters
multi-channel structure).
2. Structure of parameter request and parameter response
    A parameter request consists of three parts: the request title, the parameter address, and the parameter value.
Table 2.Parameter request format



Table 3.Parameter Response Format



Table 4: Parameter request and response description



Table 5.Description of Error Values in DPV1 Parameter Answers


3. The S7-300/400PLC reads the driver parameters through PROFIBUS non-periodic communication.
Please note: The PLC must use two function blocks SFC58/SFC59 to read the drive parameters (see Figure 5 for the program)
Here are some examples:
       (1) USE THE FLAG M10.0 AND THE FUNCTION SFC58 BLOCK TO SEND A WRITE REQUEST (DATASET RECORD DB1) (FIGURE 6) TO THE DRIVE.  
       Set M10.0 to the value of 1 to start a write request, and when the write request is completed, the request must be set to 0 to end the request. MW108 (RET_VAL) displays an error code that indicates an error that occurred while the function was being processed. For a description of the error, see "System Functions/Function Block Help".
       (2) After that, a read request is sent to the drive using the flag bit M10.1 and the function SFC59 block, and the drive returns a parameter value response (response block DB2) (see Figure 7).
    Set M10.1 to the value of 1 to start a read request, and when the read request is completed, the request must be set to 0 to end the request. MW110 (RET_VAL) display includes error codes.
    Used to represent errors that occur while the function is being processed. For a description of the error, see "System Functions/Function Block Help".

Figure 5.  Read the drive parameter program


Figure 6.  Write request block DB1





fig7. The drive returns the parameter value data block DB2


4. The S7-300/400PLC writes the driver parameter P1217 through PROFIBUS non-periodic communication.
Here are some examples:
       The PLC only needs to use SFC58 to write parameters and send a write request DB1 (see Figure 9) to the driver in Network 3 of this project. SFC59 is used when the PLC reads the "Write Parameter" response, and in this case the parameter value data block returned by the read drive is DB2 (see Figure 10). See Figure 8 for the procedure.
       (1) Set M10.0 to the value of 1 to start a write request, and when the write request is completed, the request must be set to 0 to end the request. MW108 (RET_VAL) displays an error code that indicates an error that occurred while the function was being processed. For a description of all errors, see "System Functions/Function Blocks Help".
       (2) Set M10.1 to the value of 1 to start a read request, and when the read request is completed, the request must be set to 0 to end the request. MW110 (RET_VAL) display includes error codes.
       Used to represent errors that occur while the function is being processed. For a description of the error, see "System Functions/Function Block Help".

Figure 8.  Write to the drive parameter program




Figure 9.  Write request DB1




Figure 10.  The data block returned by the drive DB2

This article is from Siemens' official website, if there is any infringement, contact to delete

The S7-300/400 communicates with SINAMICS S120 via the DP bus

The S7-300/400 communicates with SINAMICS S120 via the DP bus
More on that
Siemens and Tsinghua Suzhou Institute for Environmental Innovation jointly released a white paper titled "Green Star: A Pioneer in China's Low-Carbon Parks". Siemens and Tsinghua Suzhou Institute for Environmental Innovation jointly released a white paper titled "Green Star: A Pioneer in China's Low-Carbon Parks".

Siemens and Tsinghua Suzhou Institute for Environmental Innovation today jointly released a white paper titled "Green Star: A Pioneer in the Low-Carbon Path of China's Parks", which aims to evaluate the low-carbon development performance of parks with a scientific index system and contribute to the low-carbon transformation of China's parks. The white paper examines the low-carbon development of 32 homes...

Siemens joins hands with Jingyuntong to promote the high-quality development of the photovoltaic industry Siemens joins hands with Jingyuntong to promote the high-quality development of the photovoltaic industry

Siemens and Beijing Jingyuntong Technology Co., Ltd. ("Jingyuntong") recently signed a strategic cooperation agreement. Based on Siemens' advanced automation and digital solutions, the two sides will open up cooperation in the development and production of high-end photovoltaic equipment, and jointly promote the high-tech development of the new energy photovoltaic industry.

Siemens is investing 600 million euros in an industrial and technological center in Berlin Siemens is investing 600 million euros in an industrial and technological center in Berlin

Sept. 16 (Reuters) -- Siemens returned to its headquarters in Berlin on Wednesday to announce plans to invest 600 million euros ($681 million) in an industrial and technological center in Germany's capital. This investment will contribute to the creation of a new Siemensstadt in the Berlin area, the predecessor of Siemens ...

Daimler Trucks and Siemens have partnered to build a digital integrated engineering platform Daimler Trucks and Siemens have partnered to build a digital integrated engineering platform

Siemens Digital Industries and Daimler Trucks have announced a new collaboration to leverage Siemens Xcelerator industrial software and services portfolio to build an advanced digital engineering pipeline. The channel will enable Daimler Trucks to explore the innovations of commercial vehicles.

Siemens provides a baggage handling system for the T2 terminal of Hefei Xinqiao International Airport Siemens provides a baggage handling system for the T2 terminal of Hefei Xinqiao International Airport

Siemens Logistics has been awarded a contract for a new airport baggage system to provide sophisticated baggage handling technology to the T2 terminal of Hefei Xinqiao International Airport in China. The baggage handling system contract includes the delivery of ICS pallet technology, a rack-mounted early arrival baggage storage system, and a high-end software system for intelligent baggage control.

Siemens is supporting the opening of Expo 2020 Dubai Siemens is supporting the opening of Expo 2020 Dubai

Siemens is providing the skills to support the recently opened Expo 2020 Dubai campus, ensuring that its buildings, including infrastructure, will be part of the event's enduring legacy.   As the first World Expo to be held in the Middle East, Africa and South Asia, Expo 2020 Dubai offers visitors the opportunity to experience ...

What does the fan of the Siemens 3RW soft starter do? What does the fan of the Siemens 3RW soft starter do?

The function of the 3RW soft starter fan is to speed up the heat dissipation, which can effectively improve the operating frequency of the soft starter. 3RW30 soft starter cannot be equipped with a fan. 3RW402-404 Soft Starter Fan is not a standard equipment ...

The Siemens plant automates the motor industry The Siemens plant automates the motor industry

In recent years, many motor production enterprises have also taken precautions and begun to focus on the intelligent automation of motor production. However, due to the messiness and particularity of the motor production process, in the specific process of motor production, in order to ensure the accuracy of the parts, it is still necessary to rely on traditional manual operation, ...

Siemens launches the Zero Carbon Pioneer Program in China Siemens launches the Zero Carbon Pioneer Program in China

Siemens China today officially launched the "Zero Carbon Pioneer Program", announcing the company's clear policy and action plan for low-carbon development. Siemens proposes to use digital innovation and cross-domain knowledge and experience to work with all parties to create a green ecology in China and empower the creation of end-to-end zero-carbon ...

Siemens and HBIS Group have comprehensively deepened their cooperation on digital and low-carbonization Siemens and HBIS Group have comprehensively deepened their cooperation on digital and low-carbonization

Siemens today signed a strategic collaboration agreement with Shenzhen Liye Group Co., Ltd. (Liye Group). The two ends will take the construction of Liye Group's new lithium battery industrial park as the key, and further deepen the in-depth cooperation between the two ends in the fields of digitalization, low-carbonization, and digital talent training.

Siemens and GAC further deepened their cooperation Siemens and GAC further deepened their cooperation

GAC Group ranks among the world's top 500 companies, and its business covers the entire value chain of the automotive industry. In recent years, GAC Group has deepened its layout in the fields of intelligent networking and new energy, continued to focus on the five major directions of electrification, intelligent connectivity, digitalization, sharing and internationalization, and actively implemented the "GLASS Green ...

Do the Siemens 3RW series soft starters have a communication function? How the communication function is implemented Do the Siemens 3RW series soft starters have a communication function? How the communication function is implemented

For the 3RW series soft starters (current models 3RW30/31, 3RW40, 3RW44, discontinued models 3RW34, 3RW22), the high-performance 3RW44 and 3RW22 have their own communication functions. The high-performance 3RW44 soft starter is equipped with a local device RS ...

Siemens CEO Philip Boleren delivered a speech at the opening ceremony of the World Artificial Intelligence Conference Siemens CEO Philip Boleren delivered a speech at the opening ceremony of the World Artificial Intelligence Conference

The 2021 International Artificial Intelligence Conference (WAIC) was officially opened, and Roland Busch, Chairman of the Board of Directors, President and CEO of Siemens AG, was invited to attend the opening ceremony and deliver a speech.   Bo Leren pointed out that digital transformation is the key to all shopping malls and even social and economic ...

Siemens publishes a white paper on leadership Siemens publishes a white paper on leadership

Siemens today released the Siemens Leadership China White Paper (hereinafter referred to as the "White Paper"), which combines the evolution of leadership theory and its performance in the business environment, comprehensively sorts out the development and upgrading of its own leadership methodology and its application in the course of more than 100 years, and deeply analyzes the development and upgrading of its leadership methodology and its application over the past century.

The Siemens CNC Digital Empowerment Center was officially launched in Nanjing The Siemens CNC Digital Empowerment Center was officially launched in Nanjing

The Siemens CNC Digital Empowerment Center (hereinafter referred to as MTS DEAX) was officially launched in Nanjing today. From the original skill use center to the experience and empowerment center, MTS DEAX not only comprehensively demonstrates Siemens' cutting-edge machine tool CNC system processing plan covering the whole value chain, but also ...

Siemens SIMATIC S7-1200 PLC hardware composition and its characteristics Siemens SIMATIC S7-1200 PLC hardware composition and its characteristics

SIMATIC S7-1200 PLC The S7-1200 series is a Programmable Logic Controller (PLC) that can control a wide range of automation applications. The S7-1200 has a compact design, low cost, and a powerful instruction set.

HBIS and Siemens have established a comprehensive strategic partnership HBIS and Siemens have established a comprehensive strategic partnership

The iron and steel industry is the backbone of national modernization and an important industry to support the development of the national economy. Without steel, there would be no high-rise buildings, railways and highways in all directions. The importance of this cannot be overstated.   In recent years, the steel industry has seen overcapacity and ...

Siemens S7-1200 PLC basic functions Siemens S7-1200 PLC basic functions

1. S7-1200 CPU real-time clock hold time 20 days typical, 12 days minimum at 40°C (maintenance-free supercapacitors); With the BB1297 battery plate and CR1025 battery, the real-time clock power off hold time is approximately 1 year. 2. S7-1200 CP ...

Siemens 3RW44 soft starter commonly used fault diagnosis methods Siemens 3RW44 soft starter commonly used fault diagnosis methods

(1) The soft starter display will display fault information (2) Soft starter ES software diagnostic menu (3) read data record 92, and data record 92 is diagnostic information (4) Call the function block SFC13 to read out the fault information of the soft starter, but the premise is that the fault information of the soft starter is read out in the Soft St ...

Siemens helps Birdon build a digital shipyard Siemens helps Birdon build a digital shipyard

Birdon shipyard in Australia has selected Siemens' Teamcenter software to support its digital shipyard strategy. The software is used for Product Life Cycle Management (PLM) and is integrated with NX software for computer-aided planning (CAD) to improve the overall planning process by ...

CATEGORIES BYPASS
Customer Service Center

Online Consultation:QQ


ContactContact

Contact: Manager Huang

Contact QQ: 3271883383

Contact number: 13522565663


Scan the code to add WeChat (please save the picture first on the mobile phone)

working hoursworking hours

Weekdays: 9:00-17:00

Holidays: Only emergencies are handled

Contact us

Contact us

Contact number QQ consultation
QQ consultation

3271883383

Company address
Back to top