Profinetcommander User Manual: V2.2 November 2006
Profinetcommander User Manual: V2.2 November 2006
-1-
-2-
2.0 Introduction
With ProfinetCommander, users such as engineers, maintenance personnel, integrators, and developers can test and build a PROFINET network and the IO Devices connected to it quickly and without PLC programming. ProfinetCommander runs as a PROFINET IO controller on a PC with an easy-to-use graphical user interface which displays the following information: Configuration information I/O data Parameters Diagnostics and alarms In addition the user can: Change the output data to the IO devices. Send read and write record calls to the IO devices. Users gain the ability to test and set up a PROFINET IO Device or system from their PC before putting it into production. For developers of PROFINET IO devices, the added benefit of using the tool is simple testing of their product for correct operation and diagnostic functionality prior to PROFINET certification testing and final product release.
-3-
Before running ProfinetCommander the SIMATIC NET CD must be installed. Warning: If you have a firewall installed on your PC, it may block the SOFTNET PN IO communications on the Ethernet port. In this case ProfinetCommander will not be able to communicate with the PNIO devices.
PC IO Device 1 IO Device 2
If the Ethernet port on your PC is connected to a corporate network, it would be advisable to keep the PROFINET network separate. Some options are: 1. Use the existing Ethernet port: Disconnect the PC from the corporate network and connect it to the PROFINET network. Change the PC IP address and subnet mask to match the PROFINET network. Run ProfinetCommander software. When finished, connect the PC back to the corporate network. Restore the PC IP address and subnet mask back to their original settings. 2. Add a second Ethernet port to the PC: Connect it to the PROFINET network Set a fixed IP address and subnet mask to match the PROFINET network Run ProfinetCommander software.
-4-
Set the IP address on the PC using the Windows software. Select Start->Settings->Network Connections and double-click on the appropriate Ethernet connection.
Select the Properties button to bring up the IP Properties screen. Select Use the following IP address and enter the IP address and subnet mask. Select OK in all the dialogs.
Select button
Select Properties
-5-
Station Name
-6-
c)
Select Index 1 and then use the Add button to add an Application.
Add Application
-7-
d) e)
Select Index 2 and use the Add button to add the Ethernet card, IE General, and select the appropriate card if more than one exists as shown below. After hitting OK the component properties of your Ethernet Adapter appear. Check the IP address, subnet
Select IE General
mask, and gateway. Select the Network Properties button if changes need to be made.
-8-
f)
Check that the Run/Stop column has green indicators. If not, select the Diagnostics tab to determine the error.
Configuration OK
-9-
b) Next, the configuration download interface is set up for the PC Ethernet card. Select Options->Set PG/PC Interface.
c) Select the Ethernet card that is assigned to IE General in the Station Configuration Editor and hit OK.
- 10 -
d) Select the PCStation and then double-click Configuration to bring up SIMATIC NCM PC Config (or STEP7 HW Config).
e) Insert the Application and IE General into the configuration matching the configuration previously set with the Station Configuration Editor as shown below.
- 11 -
f)
After inserting IE General the following properties screen is displayed. Select the New button to create a new Ethernet network, normally called Ethernet(1), and hit OK. Now ensure that your IP address, subnet mask, and gateway address (if applicable) are set properly, as they need to match your current Windows settings, and select OK when done.
- 12 -
g) Next, right click on the IE General Card and insert the PROFINET IO System.
- 13 -
h) Drag and drop the desired PROFINET IO devices from the catalog in the right window (under the PROFINET IO category) to the Ethernet(1) line and insert the appropriate modules in the lower left window as shown below. Also, when a device is inserted, set the IP address as shown below.
- 14 -
i)
Double-click each PROFINET IO Device to display its properties and set the Device Name. The device name must match the name in the physical device. Downloading a name to an IO device is described later. If the IP address is not correct, select Ethernet to change it. Make sure the IP address for IE General and the IP addresses for the IO devices are on the same network (addresses match through the subnet mask number of bits). Note: when the IO controller starts communication with the IO device, it will find the device by name and then set the IP address to this configured value.
- 15 -
j)
Save and compile the project HW configuration by selecting the icon shown.
Download Select OK or Yes to all the dialog pop-ups. In the Select Node Address window, make sure that the Station name field has the PC Station name and the CPU name field has IE General. If not, then there is a configuration mismatch between HW Config and the Station Configuration Editor, and the download will not work. Check the PC IP address in both configurations. Fix the mismatch and try again.
- 16 -
c) If there is an error during the download, call up the Station Configuration Editor and select the Diagnostics tab. Check the messages at the top that correspond to the time of download.
- 17 -
be renamed in the Available devices window, and then select Assign name.
Assign name
Select Device
- 18 -
Designate an export file name, select the Readable format, and select Save.
- 19 -
The software comes with a 14-day trial license. The License Info: box indicates how many days are left. During the trial period simply select Exit to run ProfinetCommander. ProfinetCommander can be ordered at the www.profinetcommander.com web site. You will need to copy the Machine ID from the above dialog box and send it in, along with your name, to get a license key. The Machine ID is specific to your CPU / motherboard and hard drive information and the software will only function on the PC where the Machine ID was generated. After the full license key is emailed to you, enter the information in the Full Username and License Key fields and select Install License Key. The following message should appear indicating it was unlocked if everything was successful.
Select OK and then exit the ProfinetCommander License dialog. Once the full license is installed the license dialog will not appear again.
- 20 -
- 21 -
Devices Window
Properties Window
Configuration Window
Alarms Window
- 22 -
- 23 -
Diagnostic Alarm
- 24 -
- 25 -
The Diagnostic dialog shown below appears. Select the Read Diagnostics button in this dialog each time you want to read the diagnostics. The diagnostics have time stamps and are listed in reverse order, with the latest message at the top. A blank line is inserted each time Read Diagnostics is selected. Read Diagnostics Stored in IO Devices
- 26 -
- 27 -
The Read/Write Record dialog shown below appears. The Address fields and the Input/Output buttons are filled in with the information from the device selected in the previous step. In order to do a read record, enter the Index of the call to be made (in hexadecimal) and then select the Read Record button. In the example the index 0xE00C specifies the call Diagnosis, Maintenance, Qualified and Status for one AR. The data returned from the IO device will then be displayed in three windows. The data bytes are displayed in hexadecimal format in the window Read Data (hex) and the character equivalents are displayed in the window Read Data (chars) - if any of the data is readable text, it will show up in this window. Many of the read record responses are decoded by the software and show up in the window Read Data Description. First Enter the Index for the Read Record call
If there is an error returned by the read record call, it is displayed in the Read Data Description window. For example, if a particular index was not implemented in an IO device, the response would be Feature not supported. Sometimes a read record call is successful but a data length of zero is returned. For example, if a read diagnostics call is made and there are none to report, the message Zero length data returned is displayed.
- 28 -
The read and write record indices are documented in tables in the PROFINET IO Application Layer Protocol Spec. The table titles are: Index (user specific) Index (subslot specific) Index (slot specific) Index (AR specific) Index (API specific) The user specific index range is 0 0x7FFF. For example, the index 1 is typically used for parameterization data that is sent to the device during startup using write record calls. The other index tables have pre-defined codes for record calls. A few examples are: 0x800C: Diagnosis, Maintenance, Qualified and Status for one subslot 0xC00C: Diagnosis, Maintenance, Qualified and Status for one slot 0xE00C: Diagnosis, Maintenance, Qualified and Status for one AR 0xAFF0: Identification and Maintenance Data 0 0xAFF1: Identification and Maintenance Data 1 0xE000: ExpectedIdentificationData for one AR 0xF820: ARData for one API If data is displayed in the Read Data (hex) window but is not interpreted by the software in the Read Data Description window, then you will have to decode it yourself. The read data always begins with a two-byte Block Type field. In the example the block type 0x0010 is for a Diagnosis Data block. In the PNIO spec there is a table entitled BlockType which lists the code for each block type. From there you would have to find the description of the block and its contents in the spec. In order to perform a write record call, enter the Index and the Write Data. Then select the Write Record button. The software will calculate the number of bytes of data and put the value in the Write Length field. In the example below the index 1 is defined in the GSD file for three bytes of parameterization data.
- 29 -