Commissioning CIFX M223090AE as PROFIBUS Slave

Introduction

This Application Note describes the commissioning of CIFX M223090AE devices as PROFIBUS Slave, using Communication Studio.

It does not explain, how to configure the PROFIBUS Master but offers some basic informations about what needs to be done on Master side, to establish a running communication.


Please follow the installation instructions in our "Getting Started"-Application Note, if you have not done yet:

https://hilscher.atlassian.net/wiki/pages/viewpage.action?pageId=122810308


This Commissioning Guide is also available on Youtube:

Firmware Download

Since the CIFX M223090AE can be used for several communication protocols, a fitting Firmware for PROFIBUS Slave needs to be downloaded first.

Therefore, please follow this step-by-step instruction of how to download the Firmware via Device Explorer:


Open the Device Explorer


All available Devices will be shown in the "Devices" Area.
Please select the CIFX M223090AE device from the list.


If no Firmware is shown in the "Firmware" Area, the Firmware first needs to be added to the Device Explorer.
Therefore, please open "File → Add Firmware..."


fitting firmware can be found either on the ComSol_90_4x00 DVD or on our Knowledge Base: 
https://hilscher.atlassian.net/wiki/display/HILKB/Technologies


After adding the Firmware, it can now be selected in the "Firmware" Area.
Please select the device and the firmware you want to download. In this example, please choose the Firmware "PROFIBUS Slave":

Configuration

After the Firmware has been downloaded, the CIFX M223090AE is ready to get its configuration.

Please follow this step-by-step instruction of how to create a configuration and download it to the CIFX M223090AE Device via Communication Studio:


Open Communication Studio

Create a new Project

select "New Solution"


create a new Project and Network, in a specific directory.


The new Solution will now be shown in the Solution Explorer.

Add a new device

Mark the current Network and click "Add", or right-click to the network and select "Add Device..." to create a new device.


select the PROFIBUS Slave from the list of Stand-Alone-Slaves.
When Configuring a CIFX M223090AE Device, please select "CIFX DP/DPS V2.10".



the device will now be added to the network in the Solution Explorer. Several configuration options are now available:

Device Assignment

Start with the Device Assignment, which is used to assign the Device to be configured.

Select the CIFX Device Driver on top of the upcoming window.

Scan for devices and select the Device to be configured.

PROFIBUS Settings

Station Address

Open the PROFINET Settings → Network, to define the Station Address, which is needed for the Master to establish a communication.
The Station Address has to be equal to the one defined in the Master Configuration.


Module Configuration

Open the Module configuration and add the needed Modules with a doubleclick on them or using the "Insert" or "Append" buttons.


Apply the module configuration. It will now be shown in the Module Area in the Solution Explorer.

Please note, that the Module configuration used for the PROFIBUS Master, needs to be completely equal to the modules configured in this step.

They do not need to be swaped.

Additional configurations

Additional Configurations can be found in "Settings → Device".
If the communication needs to be started by the application, this can be defined as follows:


Download configuration

After the configuration is finished, Download the configuration by selecting the Device in the Solution Explorer and clicking "Download" or right-click to the device and select "Download".


After the Download is finished, the Device will now automatically "Connect", which is indicated by a green background. This means, the Diagnosis is now available.

Diagnosis

Mark the current Device and click "Diagnostic", or right-click to the device and select "Diagnostic" to open the diagnosis.


The Diagnosis shows geneal informations about the current communication.

This is how the diagnosis should look like, in case of a working communication to a PROFIBUS Master:


The field "Communication error", gives information about the current communication state.
All Error Codes can be found in the following document: https://hilscher.atlassian.net/wiki/display/DL/Hilscher+status+and+error+codes


Establish communication


At startup the PROFIBUS-DP Slave will not start the cyclic data exchange with the PROFIBUS-DP Master until the first Input data are updated from the application to the stack.

As long the first update of the Input data is not done by the application the stack will generate a so called static diagnostic to the master.

This will be shown in the General Diagnosis as follows:


As soon the first Input data are written the normal data exchange will start.

This is for safety reason to make sure that the very first Input data transferred from the slave to the master are valid data from the application.


To simulate the first Input data update from the application to the stack, the IO Monitor in Communication Studio can be used.

Therefore open the IO Monitor in the Diagnosis and click "update":



In the General Diagnosis, the Communication will now be started:


Diagnostic Tools

Packet Monitor

The Packet Monitor is used to send and receive acyclic datapackets.

IO Monitor

The IO Monitor is used to send and receive IO Data, to check the current communication.

It does only work, if a communication is already successfully established.


To send data to the PROFIBUS Master, enter the output data to be sent into the "Output Data" area and click "Update".

At the opposite device, the corresponding data is being received now.


The Field "Input data", shows the data sent by the PROFIBUS Master to the PROFIBUS Slave.