Kunbus XPS-E User Manual

User Manual
XPS-E
100205 • 02/03/2017
KUNBUS GmbH
ii XPS-E
1 Working with XPS ...........................................................................................................................3
2 Introduction .....................................................................................................................................6
3 Put into operation ...........................................................................................................................7
3.4 set_prm Parametrization .........................................................................................................10
4 Data exchange...............................................................................................................................15
4.1 Send Data................................................................................................................................15
4.2 Receive Data...........................................................................................................................15
4.3 Send and Receive Data...........................................................................................................24
5 Status and Error Messages..........................................................................................................25
5.1 External Device Diagnostics....................................................................................................25
5.2 Communication Status ............................................................................................................26
6 Connector Assignment and Cabling ...........................................................................................27
6.1 PROFIBUS ..............................................................................................................................27
6.2 Serial Interface ........................................................................................................................29
7 FAQ.................................................................................................................................................32
8 Technical Data...............................................................................................................................33
XPS-E 3 / 36
1 Working with XPS
1.1 Validity
This Document is valid for the following products:
– 100205
1.2 User
The Art may only be assembled, installed and put into operation by trained, qualified personnel. Before assembly, it is absolutely essential that this documentation has been read carefully and understood. Expertise in the following fields is assumed:
– Electronic circuits,
– Basic knowledge of PROFIBUS,
– work in electrostatic protected areas,
– Locally applicable rules and regulations for occupational safety.
1.3 Symbols
The symbols used have the following meaning:
DANGER
Hazard
Observe this information without fail!
There is a safety hazard that can lead to serious injuries and death.
WARNING
Caution
There is a safety hazard that can result in minor injuries and material damage.
NOTICE
Note
There is a safety hazard that can result in material damage.
Working with XPS-E
XPS-E
4 / 36
1.4 Safe Work
WARNING
Damage and serious personal injury due wrong power supply
XPS-E is designed exclusively for PELV operation according to EN 60950 / EN 60204 / VDE 0805-1
èOnly protective extra-low voltages according to the defined standards
may be used to supply and connect the alarm contact.
NOTICE
Electrostatic discharge
The device contains components that can be damaged or destroyed by electrostatic discharge
èWhen handling the device, observe the necessary safety precautions
against electrostatic discharge (ESD), in accordance with EN 61340-5-1 and EN 61340-5-2, as well as IEC 61340-5-1 and IEC 61340-5-2.
NOTICE
Shielding
The shielding ground of the connected twisted pair cables is electrically connected to the female connector.
èWhen connecting network segments, avoid ground loops, potential
transfers, and voltage equalization currents via the braided shield.
NOTICE
Damage due to subsequent processing
Avoid subsequent processing of the FNL.
Ø Soldering can cause components to become detached and thus
damage or destroy the module.
Ø Please note that the warranty shall become invalid if the products are
changed technically.
èSpeak to your contact person at the KUNBUS GmbH about customised
solutions.
Working with XPS-E
XPS-E 5 / 36
1.5 Limitation of Liability
Warranty and liability claims will lapse if:
– the product has been used incorrectly,
– damage is due to non-observance of the operating manual,
– damage is caused by inadequately qualified personnel,
– damage is caused by technical modification to the product (e.g.
soldering).
1.6 Customer Service
If you have any questions or suggestions concerning this product, please do not hesitate to contact us:
KUNBUS GmbH Heerweg 15 C
73770 Denkendorf
Germany
+49 (0)711 3409 7077
support@kunbus.com www.kunbus.com
Working with XPS-E
XPS-E
6 / 36
2 Introduction
The intelligent PROFIBUS-DP gateways of the KUNBUS XPS-E series allow the coupling of any serial devices with RS232 or RS422/485 interface to PROFIBUS-DP according to the European Standard EN50170. The protocol conversions required for the coupling are executed either by means of a transparent universal driver or by loadable device-specific converters. The following figure shows a typical connection:
Illustration1: Typical Connection
Introduction
XPS-E 7 / 36
3 Put into operation
3.1 Connect the Gateway
1 2 3 4
5
678
9
10
Illustration2: Connectors and Interfaces of the XPS-E
1 Bus Fail LED 2 Run LED 3 Address Switch x10 4 Address Switch x1 5 Connector for power supply 6 Mode-LED 7 TxD LED 8 RxD LED 9 Serial Interface 10 PROFIBUS Interface
Put into operation
XPS-E
8 / 36
By executing the following steps, the XPS-E Gateway can be set into operation:
◦ Connect XPS-E to PROFIBUS by using a standard PROFIBUS cable
with corresponding D-SUB PROFIBUS connector. For the connector assignment please refer to chapter „Connector Assignment and Cabling [}27]“ and follow the Installation Guidelines for PROFIBUS (No. 2.112, PNO).
◦ Connect the serial end device with XPS-E
◦ Check your PROFIBUS network with regard to an unused Slave
address and adjust this free address at the coding switch of XPS-E.
◦ Plug in the power supply. The power supply of the XPS-E is connected
by spring clips at the front side.
ð As soon as the device is powered, the Status/Busfail LED is flashing
red.
NOTICE
The Status/Busfail LED is flashing red until the device is parameterized and configured
In this status, no data exchange can take place (neither send nor receive). Only after successful parameterization and configuration the Status/Run LED is flashing green. Now, the device is ready for data exchange.
3.2 Test the PROFIBUS connection
If you have a PROFIBUS-DP configuration tool, you can test the PROFIBUS connection to the XPS-E Gateway. For this purpose, load the deliverable GSD file into your configuration tool.
The DP Master shall now configure XPS-E. If this configuration is successful, the Status/Run LED is flashing green.
If you do not have a PROFIBUS-DP configuration tool or if you wish to change the pre-defined parameters (User_Prm_Data) in the GSD file, please refer to the following chapters for the parameterization.
Put into operation
XPS-E 9 / 36
3.3 Parametrization
The parameterization data of XPS-E consists of 7 DP-Slave standard bytes and 16 device-specific parameters bytes (User_Prm_data, -> user_prm_len = 16). As user diagnostic data, 8 additional diagnostics bytes are available. (diag_len = 8).
◦ For initialisation of XPS-E send a set_prm telegram. For this purpose,
use the parameters for PROFIBUS-DP and the serial interface described in chapter 2.5.
◦ Check the parameterization with slave_diag.
◦ Then use the command chk_cfg to configure the XPS-E. Prior to that,
the configuration can be read with the command get_cfg from XPS-E. If chk_cfg is executed directly after the initialization, the maximum data_exchange telegram length is loaded from XPE-E. For shorter data_exchange telegram length select one of the possible configurations which are defined in the GSD file or select those arbitrarily according to the PROFIBUS-DP standard.
ð After successful parameterization XPS-E is prepared for data exchange.
The Status/Run LED is now flashing green.
NOTICE
You can verify the parametrization and configuration telegram by means of slave_diag.
In the following, only those parameters are described that are required for operating the XPS-E. For the significance of the remaining PROFIBUS- DP standard parameters please refer to the standard EN50170 and the GSD file.
Also see about this
2 set_prm Parametrization [}10]
Put into operation
XPS-E
10 / 36
3.4 set_prm Parametrization
The Bytes 1-7 are PROFIBUS-DP standard parameters, Byte 8-23 are device- specific parameters (usr_prm).
Oktet Parameter Name Value
1 Station_status 0x80* 2 WD_fact_1 0x00 3 WD_fact_2 0x00 4 Min TSDR 55 5 Ident_Number [0] 0x95 6 Ident_Number [1] 0x10 7 Group_Ident 0x00
8..11 Reserved ­12 Baud Rate setting of serial interface See Table „Baud Rate of
Serial Interface“ [}10]
13 Character Transmission Mode of serial
interface
See Table „Character Transmission Mode “ [}10]
14 Handshake setting of serial interface See Table „Handshake-
Mode“ [}10]
15 XOFF-Timeout of serial interface See Section „Timeout Soft-
ware Handshake/Mod­bus“ [}10]
16 Receive Mode of PROFIBUS interface See Table „Data Transmis-
sion Mode“ [}10]
17 Receive Mode of PROFIBUS interface See Table „Extended
Gateway configuration data“ [}10]
18 Trigger character for serial triggered
mode
(usually LF (0x0A)
-
19..23 Reserved -
Table1: set_prm
*Sync_Req and Freeze_Req are not supported.
Put into operation
XPS-E 11 / 36
Next to standard parameters the parameters for the serial interface are included in the GSD file. They are listed under the User_Prm_Data. The values correspond to those described under chapter „set_prm Parameterization”. A modification of these parameters can be made by any kind of ASCII editor. Please note that the number of parameters must not be changed and that the first four and last six parameter bytes are to be set to 0.
In the following, the default settings of the GSD for serial interfaces of XPS-E are listed.
9600 Baud / 8Bit / No Parity / 1 Stopbit / no Handshake / no Timeout / Poll- Mode / RS232-Mode
This corresponds to the following entry in the GSD file:
User_Prm_Data = 0 0 0 0 96 56 78 0 80 0 0 0 0 0 0 0
Octet 1-7 are PROFIBUS-DP Standard, Octet 8-14 are the device­specific diagnostics parameters (external diagnostics).
Oktet Parameter Value
1 Station_status_1 Bit7 Diag.Master_Lock
Bit6 Diag.Prm_Fault
Bit5 Diag.Invalid_Slave_Response
Bit4 Diag.Not_Supported
Bit3 Diag.Ext_Diag
Bit2 Diag.Cfg_Fault
Bit1 Diag.Station_Not_Ready
Bit0 Diag.Station_Non_Existent
2 Station_status_2 Bit7 Diag.Deactivated
Bit6 reserved
Bit5 Diag.Sync_Mode
Bit4 Diag.Freeze_Mode
Bit3 Diag.WD_On
Bit2 must be set to 1
Bit1 Diag.Stat_Diag
Bit0 Diag.Prm_Req
3 Station_status_3 Bit7 Diag.Ext_Diag_Overflow
Bit6..0 reserved
4 Master_Address Master address or 0xFF, if Slave is not yet
parameterised. 5 Ident_Number[0] 0x95 6 Ident_Number[1] 0x10 7 Number of ext.
diagnostic bytes
8
Put into operation
Loading...
+ 25 hidden pages