Profibus-DP communication example between Siemens and ABB robots

Publisher:tmgouziLatest update time:2023-07-15 Source: 你身边的机器人专家Author: Lemontree Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1. Configuration of TIA Portal A

Create a new project in the TIA Portal software. In this case, S7-300 is selected, and its model is 313C-2DP. This PLC is an integrated PLC with its own PROFIBUS-DP port. It can be used as a master station or a slave station. In this case, the PLC acts as a master station.

Step 1: Add G file.

In the TIA Portal software, click "Options", "Manage General Site Description Files" as shown below:

Select the GSD file and click Install. The installation may take some time.

Step 2: Double-click "Device Configuration" and switch the view to view, as shown below:

Step 3: Enter anybus in the search bar in the "Directory" function bar on the right, and the following search results will appear:

Step 4: Expand Anybus-CC PROFIBUS DP-V1, hold down the left mouse button, and drag it to the network view, as shown below:

Step 5: Press and hold the left mouse button to select the DP port of PLC_1 and connect it to the DP port of slave_1, as shown in the figure below:

At this point, the hardware configuration of the PLC is complete. In order to ensure the accuracy, we need to check the addresses of the master and slave stations. By default, the PLC is the master station, and its address is 2. The default address of Slave_1, which is the robot side, is 3, as shown below:

2. Robot side settings

Step 1: In the "Configuration" menu of the teach pendant, make sure that the system supports Industrial Network, expand Industrial Network, and make sure that PROFIBUS_Anybus exists in the system, as shown in the following figure:

Step 2: Under the "Configuration" menu, expand PROFIBUS Internal Anybus Device, as shown below:

Step 3: If PB_Internal_Anybus appears in the second step, you do not need to add it. If it does not appear, add it, as shown in the following figure:

In the Name field, enter the name, and in the Input Size (bys) and Output Size (bytes), enter the corresponding communication capacity, which supports up to 512 bits, or 64 bytes. The rest of the content does not need to be changed. After adding, click OK.

3. Writing of PLC communication program

The communication procedure on the PLC side is relatively simple. It only requires moving the corresponding bit value to the corresponding address. In this case, the PLC and the robot did not input or output a byte from the communication.

Step 1: Expand the distributed I/O under the project tree on the left, expand them one by one, find the device configuration, and double-click it. As shown below:

Step 2: In the hardware directory menu bar on the right, find "Input 1 byte" and "Output 1 byte", and double-click them respectively to make them appear under Slave_1 on the left. This step tells the PLC to send and receive data with the robot in units of one byte each time. As shown in the figure below:

Step 3: Determine the communication address of the PLC. This step is crucial and is related to how the address in the program is determined. Select "Input 1 byte" and "Output 1 byte" respectively and right-click, select "Properties", and use their respective default addresses, as shown below:

At this point, all the configurations have been set.

The final step: add the following program to the Main program block:

This program means that the PLC sends the status value of 1.0-1.7 of channel 1 to 256.0-256.7, where 256.0-256.7 corresponds to the first byte of the receiving end of the robot. We can monitor it in the IO monitoring interface of the robot teaching pendant as shown below:

Review editor: Tang Zihong

Reference address:Profibus-DP communication example between Siemens and ABB robots

Previous article:Bearing knowledge: the role of bearing axial clearance
Next article:In the next five years, humanoid robots will achieve a "triple jump"

Latest robot Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号