Configure the PROFINET interface
① Status and error indicators
② Slot of the SIMATIC MMC card
③ Mode selection switch
Industrial Ethernet twisted pair cables for connecting other PROFINET devices
⑤ "Industrial Ethernet" twisted pair cable, used to interconnect PN interface X2
⑥ Programming equipment with STEP 7 software installed (PG)
⑦ Assembly guide rail
⑧ Power on/off
Step 1: Install the assembly rail and module
Installation sequence
From left to right: Power PS 307-CPU 317-2 PN/DP.
The configuration diagram shows an overview of the overall configuration.
Install assembly guide rails and ground them
1. Fasten the screw on the assembly guide rail (screw specification: M6). Make sure that there are at least 40 seats on each side of the assembly guide rail
mm gap.
When installing it to the grounding metal plate or grounding device mounting plate, ensure that the assembly guide rail is connected to the mounting surface
The connection has a low impedance.
2. Connect the guide rail to the protection conductor. For this purpose, an M6 protective conductor screw is provided on the assembly guide rail.
The cross-sectional area of the cable connecting the protective conductor is at least 10 mm2.
① Power supply (PS) module
② CPU 317-2 PN/DP
③ PROFINET port 1
The status of port 1 is indicated by a two-color LED (green/yellow) :
LED Green on: The link to the partner is active
LED turns yellow: Active Data transfer (RX/TX)
R: Ring port for setting a ring topology with media redundancy
④ PROFINET port 2
The status of port 2 is indicated by a two-color LED (green/yellow) :
LED Green on: The link to the partner is active
LED turns yellow: Active Data transfer (RX/TX)
R: Ring port for setting a ring topology with media redundancy
⑤ MAC address and 2D barcode
⑥ 2. Port X2 (PN), equipped with a dual-port switch
⑦ 1. Interface X1 (MPI/DP)
⑧ Power connection
⑨ Cable connecting the PS and CPU
⑩ Cable clamp
Step 2: Connect cables to the power supply and CPU
Operation procedure
1. Open the front panel of the power module and CPU.
2. Loosen the cable clip on the power supply.
3. Peel off the cover of the soft power cable.
4. Press the wire end casing correctly,
5. Then connect the CPU to the power supply (connect the blue cable to terminal M, connect the black cable to terminal L1, and connect the protection cable to terminal PE).
6. Tighten the cable clamp to position it.
7. Next, connect the power supply to the CPU. Use flexible cables with a cross-sectional area of 1 mm2.
Peel off about 6 mm of the outer skin at the end of the cable.
8. Clamp the upper end sleeve.
9. Connect the L+ terminals and M terminals on the power supply to the corresponding terminals on the CPU.
Step 3: Debug the hardware
Operation procedure
1. Connect the CPU (such as port 1 of PN interface X2) to the PG/PC. Use twisted pair cables with RJ45 connectors
Cable.
Result: The PG/PC has been connected to the CPU.
2. Connect the PROFINET I/O device, such as the ET 200S, to the CPU (for example, through the port of the PN interface X2)
2). Use a twisted pair cable with RJ45 connector.
Result: The I/O device is connected to the CPU.
3. Check that the SIMATIC MMC card is inserted into the CPU slot.
4. Close the front panel cover of the CPU and set the mode selection switch on the CPU to STOP.
5. Connect the power cable, and then connect the power module.
Result: Power supply 24V DC LED lights up.
All leds on the CPU light up and turn off after a short time. The SF LED and 5V DC LED are always on. when
When the CPU performs an automatic memory reset, the STOP LED blinks.
When finished, the STOP LED lights up.
6. Start PG/PC and run SIMATIC Manager from the Windows desktop.
The result: a window containing SIMATIC Manager opens.
Step 4: Set up the PG/PC interface
Operation procedure
1. Choose Start > SIMATIC > STEP 7 > Set PG/PC Interface (Start > SIMATIC > STEP 7 >
Customize PG/PC interface).
Result: A dialog box for setting PG/PC will open.
2. Select an access path. Then set the TCP/IP protocol for the network card you are using.
Click Properties. In the Properties dialog box, set the Assign Project Specific IP Address option
Item. Click OK twice to confirm.
Result: Your PG/PC Settings are applied
STEP 5: Configure the hardware in STEP 7's HW-Configuration
Create a new project in STEP 7
1. Choose File > New... (File > New ...) .
2. Enter a project name and click OK.
Result: A new project is created
Added a new S7-300 station
Choose Insert > Station > SIMATIC 300 Station (Insert > Station > SIMATIC 300 Station).
Result: The SIMATIC 300 (1) icon on the right side of the window will be highlighted.
Addition guide
1. On the right of the window, double-click the SIMATIC 300 (1) icon, and then double-click the hardware icon.
Result: The Hardware Configuration Editor (HW Config) opens.
2. Insert the hardware component from the hardware directory on the left of the window.
If no Catalog is displayed, use the menu command View > Catalog to activate it.
In the hardware directory, select SIMATIC 300 and then Rack 300. Drag the assembly rail onto HW
The top of the Config window.
Result: This pastes the assembly rail to the upper part of the HW Config window.
Add power
In the hardware directory, browse to PS 300. Drag the power supply into slot 1 of the assembly rail.
Result: The power module is inserted into slot 1.
Step 6: Plug in the CPU 317-2 PN/DP and assign it an IP address
introduction
Each Ethernet node is identified by a unique international address. The MAC address is preset by the manufacturer and
Cannot be changed.
In the following steps, you will assign an IP address in Ethernet to this physical address.
Operation procedure
1. Navigate to CPU 300 in the hardware directory. Drag the CPU 317-2 PN/DP into slot 2 of the assembly rail.
CPU 317-2 PN/DP will be inserted into slot 2. The properties window for the PROFINET interface X2 will be displayed.
For the IP address of the V3.x or later version, select Use different methods to assign IP addresses
The "Use different method to assign IP address" check box is activated.
2. Enter the IP address and subnet mask.
When operating on a corporate network, contact your network administrator for information about this address.
3. If the connection is set up through a router, you must also enter the router address.
When operating on a corporate network, contact your network administrator for information about this address.
4. Click New and assign a name to the new Industrial Ethernet subnet. Click OK to proceed with the entry
Confirm.
Result: You have created a new "Industrial Ethernet" subnet.
Insert the CPU 317-2 PN/DP and assign an IP address to it
CPU 314C-2 PN/DP, 315-2 PN/DP, 317-2 PN/DP, 319-3 PN/DP: Configure the PROFINET interface
18 Getting Started Guide, 08/2011, A5E00778707-04
5. Click the OK button.
Result: The properties window of the PROFINET interface X2 of the CPU 317-2 PN/DP is closed.
6. Options for the PROFINET interface can also be set in HW Config:
In HW Config, double-click the port required by the PROFINET interface X2 or the CPU 317-2 PN/DP.
If ports 1 or 2 are already selected, switch to the Options TAB. If necessary, can be selected in the
Custom network Settings on the TAB. The default is "Automatic Settings", which is usually the default value
Error-free communication can be achieved. Incorrect or automatic network Settings may cause communication failures. For example, can't build
Frequent connection and network errors.
At this point, select a network configuration that matches your network Settings.
Save and compile the configuration
1. Select the menu command "Station > Save and compile".
Result: Compile and save the hardware configuration.
2. Choose PLC > Download to module.
Result: The target group selection dialog box appears.
3. Click OK to confirm the dialog box.
Result: The station address selection dialog box appears.
4. Click View.
The result: The programmed device reads the MAC address and displays it in a dialog box.
5. Select the row that contains the MAC address of the CPU. Click OK to confirm.
Result: A message window will open.
6. Use "Yes" to confirm the message.
Result: The IP address is assigned to the CPU and the configuration is loaded.
7. Run the command Station > Close to disable HW Config. When prompted whether to save, single
Click "Yes".
Result: HW Config will be closed. At this point, the CPU is displayed in the station in SIMATIC Manager.
Step 7: Debug the CPU 317-2 PN/DP
Operation procedure
Example Set the CPU mode switch to RUN.
Result: STOP LED extinguished. The RUN LED starts flashing and then continues to light up.
LINK LED (green) indicates the physical Ethernet connection. RX/TX LED when sending/receiving data over Ethernet
(yellow) will light up or flash.
Instructions
Note: LINK LED and RX/TX LED can also be combined into one two-color LED.
result
STEP 7 configuration of CPU 317-2 PN/DP PROFINET interface X2 has been completed.
● At this point, other nodes can access the CPU on this Ethernet subnetwork.
● New features now allow you to configure or reconfigure your projects through the CPU's integrated PROFINET interface.
● All PG/OP functions of the CPU 317-2 PN/DP can now be used through the integrated PROFINET interface
And other communication functions.
email:1583694102@qq.com
wang@kongjiangauto.com