Anybus-IC PROFIBUS: Fieldbus Appendix

Download as pdf or txt
Download as pdf or txt
You are on page 1of 32

Fieldbus Appendix

Anybus-IC PROFIBUS
Doc.ID. SCM-1200-022
Rev 2.00

Connecting DevicesTM

+$/067$'‡&+,&$*2‡.$5/658+(‡72.<2‡%(,-,1*‡0,/$12‡08/+286(‡&29(175<‡381(‡&23(1+$*(1

HMS Industrial Networks


Mailing address: Box 4126, 300 04 Halmstad, Sweden E-mail: [email protected]
Visiting address: Stationsgatan 37, Halmstad, Sweden Web: www.anybus.com
Important User Information
This document is intended to provide a good understanding of the functionality offered by Anybus-IC PROFIBUS.
The document only describes the features that are specific to the Anybus-IC PROFIBUS. For general information
regarding the Anybus-IC, consult the Anybus-IC design guides.
The reader of this document is expected to be familiar with high level software design, and communication sys-
tems in general. The use of advanced PROFIBUS-specific functionality may require in-depth knowledge in
PROFIBUS networking internals and/or information from the official PROFIBUS specifications. In such cases, the
people responsible for the implementation of this product should either obtain the PROFIBUS specification to gain
sufficient knowledge or limit their implementation in such a way that this is not necessary.

Liability

Every care has been taken in the preparation of this manual. Please inform HMS Industrial Networks AB of any
inaccuracies or omissions. The data and illustrations found in this document are not binding. We, HMS Industrial
Networks AB, reserve the right to modify our products in line with our policy of continuous product development.
The information in this document is subject to change without notice and should not be considered as a commit-
ment by HMS Industrial Networks AB. HMS Industrial Networks AB assumes no responsibility for any errors that
may appear in this document.
There are many application of this product. Those responsible for the use of this device must ensure that all the
necessary steps have been taken to verify that the application meets all performance and safety requirements in-
cluding any applicable laws, regulations, codes, and standards
HMS Industrial Networks AB will under no circumstances assume liability or responsibility for any problems that
may arise as a result from the use of undocumented features, timing, or functional side effects found outside the
documented scope of this product. The effects caused by any direct or indirect use of such aspects of the product
are undefined, and may include e.g. compatibility issues and stability issues.
The examples and illustrations in this document are included solely for illustrative purposes. Because of the many
variables and requirements associated with any particular implementation, HMS Industrial Networks AB cannot
assume responsibility for actual use based on these examples and illustrations.

Intellectual Property Rights

HMS Industrial Networks AB has intellectual property rights relating to technology embodied in the product de-
scribed in this document. These intellectual property rights may include patents and pending patent applications
in the US and other countries.

Trademark Acknowledgements

Anybus ® is a registered trademark of HMS Industrial Networks AB. All other trademarks are the property of their
respective holders.

Warning: This is a class A product. in a domestic environment this product may cause radio interference in
which case the user may be required to take adequate measures.
ESD Note: This product contains ESD (Electrostatic Discharge) sensitive parts that may be damaged if ESD
control procedures are not followed. Static control precautions are required when handling the prod-
uct. Failure to observe this may cause damage to the product.

Anybus-IC PROFIBUS Fieldbus Appendix


Rev 2.00
Copyright© HMS Industrial Networks AB
May 2012 Doc Id SCM-1200-022
Table of Contents

Table of Contents

Preface About This Document


Related Documents.................................................................................................................................. 5
Document History ................................................................................................................................... 5
Conventions & Terminology .................................................................................................................. 6
Sales and Support ..................................................................................................................................... 7

Chapter 1 About the Anybus-IC PROFIBUS


General....................................................................................................................................................... 8
Features ...................................................................................................................................................... 8
Fieldbus Conformance Notes ................................................................................................................ 8

Chapter 2 Basic Operation


General Information ................................................................................................................................ 9
Identity Information ................................................................................................................................ 9
Data Exchange.......................................................................................................................................... 9
Communication Settings ....................................................................................................................... 10
Baud Rate ..................................................................................................................................... 10
Node Address ................................................................................................................................ 10
Fieldbus Specific Input/Output Registers.......................................................................................... 11
Switches (Fieldbus Specific Input) ................................................................................................... 11
Status Indicators (Fieldbus Specific Output) ................................................................................... 11
PROFIBUS Implementation ................................................................................................................ 12
Global Control............................................................................................................................... 12
User Parametrization Data ........................................................................................................... 12
Extended Diagnostics..................................................................................................................... 13
Configuration Data........................................................................................................................ 13
Fieldbus Fault Action............................................................................................................................. 14
Bus Offline..................................................................................................................................... 14
Bus in Clear Mode......................................................................................................................... 14
Table of Contents IV

Chapter 3 Fieldbus Interface


General Considerations ......................................................................................................................... 15
Typical Implementation......................................................................................................................... 16
DB9F Pinout ........................................................................................................................................... 16
Termination Example ............................................................................................................................ 17

Chapter 4 Fieldbus Specific Parameters


FB Status (Parameter #100) ........................................................................................................ 19
FB Init (Parameter #101) ............................................................................................................ 20
FB Password (Parameter #102).................................................................................................... 21
FB Node Address Config (Parameter #103)................................................................................. 21
FB Node Address SSC (Parameter #104) ................................................................................... 22
FB Node Address Actual (Parameter #105) ................................................................................ 22
PROFIBUS Baud Rate Actual (Parameter #106) ...................................................................... 23
PROFIBUS ID Number Config (Parameter #107)..................................................................... 23
PROFIBUS ID Number Actual (Parameter #108).................................................................... 24
Default Config Data Length (Parameter #109) ............................................................................ 24
Config Data Length (Parameter #110) ......................................................................................... 24
User Parametrization Data Length (Parameter #111).................................................................. 24
Extended Diagnostic Length (Parameter #112) ............................................................................ 25
SSA Enable (Parameter #113).................................................................................................... 26
SSA Node Address (Parameter #114) ......................................................................................... 26
Default Config Data (Parameter #115) ........................................................................................ 27
Config Data (Parameter #116) ..................................................................................................... 27
User Parametrization Data (Parameter #117).............................................................................. 27
Extended Diagnostics (Parameter #118)....................................................................................... 28
Firmware Revision (Parameter #119) ........................................................................................... 29
Serial Number (Parameter #120) ................................................................................................. 29

Chapter 5 Fieldbus Specific Initialization


General Information .............................................................................................................................. 30
Initialization State Machine................................................................................................................... 30
STATE 1 (Initial state) ............................................................................................................... 31
STATE 2..................................................................................................................................... 31
STATE 3..................................................................................................................................... 31

Appendix A Technical Specification


Electrical Specification........................................................................................................................... 32
Protective Earth (PE) Requirements .............................................................................................. 32
Power Supply ................................................................................................................................. 32
Environmental Specification ................................................................................................................ 32
EMC Compliance (CE) ......................................................................................................................... 32
Preface

About This Document

Related Documents
Document name Author
Anybus-IC Design Guide HMS
Digital Communications IEC61158 Type 3 (PROFIBUS) IEC

Document History

Summary of Recent Changes (1.56... 2.00)

Change Page(s)
New format -
Updated frontpage information -
Updates sales and support information 7
Miscellaneous corrections -

Revision List

Revision Date Author(s) Chapter(s) Description


<=1.33 - - - (see previous releases)
1.50 2007-01-09 PeP - Major rewrite
1.52 2007-05-28 PeP chapter A Corrected power consumption
1.53 2007-06-19 PeP chapter 3 Corrected figure (bias resistor wiring)
1.54 2007-12-14 PeP 29 Minor update
1.55 2008-11-07 HeS P, A Minor update
1.56 2009-10-02 KeL 2, 3, 5 Minor update
2.00 2012-05-22 KaD P New template, miscellaneous updates and corrections

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
About This Document 6

Conventions & Terminology


The following conventions are used throughout this document:
• Numbered lists provide sequential steps
• Bulleted lists provide information, not procedural steps
• The term ‘module’ is refers to the Anybus module
• The term ‘application’ refers to the device connected to the Anybus application connector
• Hexadecimal values are written in the format NNNNh, where NNNN is the hexadecimal value.
• Binary values are written in the format NNNNb, where NNNN is the binary value.
• 16/32 bit values are written in big endian Motorola format
• Floating point values are in the IEEE Standard 754 format

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
About This Document 7

Sales and Support


Sales Support
HMS Sweden (Head Office)
E-mail: [email protected] E-mail: [email protected]
Phone: +46 (0) 35 - 17 29 56 Phone: +46 (0) 35 - 17 29 20
Fax: +46 (0) 35 - 17 29 09 Fax: +46 (0) 35 - 17 29 09
Online: www.anybus.com Online: www.anybus.com
HMS North America
E-mail: [email protected] E-mail: [email protected]
Phone: +1-312 - 829 - 0601 Phone: +1-312-829-0601
Toll Free: +1-888-8-Anybus Toll Free: +1-888-8-Anybus
Fax: +1-312-629-2869 Fax: +1-312-629-2869
Online: www.anybus.com Online: www.anybus.com
HMS Germany
E-mail: [email protected] E-mail: [email protected]
Phone: +49 (0) 721-989777-000 Phone: +49 (0) 721-989777-000
Fax: +49 (0) 721-989777-010 Fax: +49 (0) 721-989777-010
Online: www.anybus.de Online: www.anybus.de
HMS Japan
E-mail: [email protected] E-mail: [email protected]
Phone: +81 (0) 45-478-5340 Phone: +81 (0) 45-478-5340
Fax: +81 (0) 45-476-0315 Fax: +81 (0) 45-476-0315
Online: www.anybus.jp Online: www.anybus.jp
HMS China
E-mail: [email protected] E-mail: [email protected]
Phone: +86 (0) 10-8532-3183 Phone: +86 (0) 10-8532-3023
Fax: +86 (0) 10-8532-3209 Fax: +86 (0) 10-8532-3209
Online: www.anybus.cn Online: www.anybus.cn
HMS Italy
E-mail: [email protected] E-mail: [email protected]
Phone: +39 039 59662 27 Phone: +39 039 59662 27
Fax: +39 039 59662 31 Fax: +39 039 59662 31
Online: www.anybus.it Online: www.anybus.it
HMS France
E-mail: [email protected] E-mail: [email protected]
Phone: +33 (0) 3 68 368 034 Phone: +33 (0) 3 68 368 033
Fax: +33 (0) 3 68 368 031 Fax: +33 (0) 3 68 368 031
Online: www.anybus.fr Online: www.anybus.fr
HMS UK & Eire
E-mail: [email protected] E-mail: [email protected]
Phone: +44 (0) 1926 405599 Phone: +46 (0) 35 - 17 29 20
Fax: +44 (0) 1926 405522 Fax: +46 (0) 35 - 17 29 09
Online: www.anybus.co.uk Online: www.anybus.com
HMS Denmark
E-mail: [email protected] E-mail: [email protected]
Phone: +45 (0) 35 38 29 00 Phone: +46 (0) 35 - 17 29 20
Fax: +46 (0) 35 17 29 09 Fax: +46 (0) 35 - 17 29 09
Online: www.anybus.com Online: www.anybus.com
HMS India
E-mail: [email protected] E-mail: [email protected]
Phone: +91 (0) 20 40111201 Phone: +91 (0) 20 40111201
Fax: +91 (0) 20 40111105 Fax: +91 (0) 20 40111105
Online: www.anybus.com Online: www.anybus.com

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Chapter 1

About the Anybus-IC PROFIBUS

General
The Anybus-IC PROFIBUS communication module provides instant PROFIBUS slave connectivity
through the generic Anybus-IC application interface. Any device that supports this standard can take
advantage of the features provided by the module, allowing seamless network integration regardless of
network type.

Features
• Galvanically isolated bus electronics
• Up to 144 bytes of fieldbus I/O in each direction
• Automatically detects the PROFIBUS baud rate
• User parametrization data support
• Extended diagnostic support
• Set Slave Address support
• Device identity customization
• Generic GSD file provided

Fieldbus Conformance Notes


The module is precertified for network compliance under the following conditions:
• Parameters are set to their default values, or to values which does not contradict the settings
specified in the generic GSD file supplied by HMS
• The fieldbus connector must contain at least the following signals:
A-Line, B-Line, RTS, Shield, GND_BUS

Any deviations from what is stated above will require changes in the GSD file and thus also recertifica-
tion of the end product. For further information, please contact HMS.

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Chapter 2

Basic Operation

General Information

Software Requirements
Generally, no network specific support code needs to be written in order to support the Anybus-IC
PROFIBUS. However, due to natural reasons, advanced fieldbus specific features may require the use
of PROFIBUS specific parameters.
For general information about the Anybus-IC software interface, consult the Anybus-IC Design Guide.
See also...
• “Fieldbus Specific Parameters” on page 18

GSD-files
On PROFIBUS, the characteristics of a device is stored in an ASCII data file with the suffix ‘GSD’. This
file is used by the PROFIBUS configuration tool when setting up the network.
HMS provides a generic GSD file, which corresponds to the default settings in the module. However,
due to the flexible nature of the Anybus concept, it is possible to alter the behavior of the product in
ways that invalidates the generic GSD file.
See also...
• “Fieldbus Conformance Notes” on page 8

Identity Information
On the PROFIBUS network, the module identifies itself as follows:

Information Default Value Comments


Vendor Name ‘HMS Industrial Networks’ -
Model Name ‘Anybus-IC PROFIBUS’ -
Ident Number 1810h Can be customized.
Manufacturer ID 010Ch (HMS) -
Order ID ‘ABIC-PDP’ -

See also...
• “PROFIBUS ID Number Config (Parameter #107)” on page 23
• “PROFIBUS ID Number Actual (Parameter #108)” on page 24

Data Exchange
The module supports up to 144 bytes of fieldbus I/O in each direction.
All fieldbus I/O data is exchanged as cyclical I/O on PROFIBUS.

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Basic Operation 10

Communication Settings

Baud Rate

The Anybus module detects the PROFIBUS baud rate automatically.


Supported baud rates:
9.6 kbps 187.5 kbps 6 Mbps
19.2 kbps 500 kbps 12 Mbps
45.45 kbps 1.5 Mbps
93.75 kbps 3 Mbps

See also...
• “PROFIBUS Baud Rate Actual (Parameter #106)” on page 23

Node Address

The module supports BCD-coded switches (range 0...


Start
99) as well as binary switches (range 0... 126). The
node address can also be set via the SCI interface.
The module supports the Set Slave Address (SSA) 'SSAEnable' = 1?
Yes
functionality, which allows a master or a configuration
tool to change the node address of the module. This No

feature is supported by the generic GSD file, and is FBNA bit set?
Yes
enabled when any of the following conditions are true: No

• Node address source1 value equals 126


Node address = 126 ?
• The ‘FBNA’ bit in parameter #8 (‘Configura- No

tion Bits’) is set. Yes

The figure on the right illustrates how the node ad-


dress is established when using this feature. Node address source is
Node address source is parameter #114
This functionality is enabled by default, but can op- determined by the NA-bit. ('SSA Node Address').
Set_Slave_Address telegrams Set_Slave_Address telegrams
tionally be completely disabled using parameter #113 will be rejected with will be accepted, and the
the error code RS. received address will be stored
‘SSA Enabled’ (note however that this invalidates the in parameters #105 and #114.
generic GSD file).
See also...
• Anybus-IC Design Guide (Parameter #8
‘Configuration Bits’)
• “Fieldbus Conformance Notes” on page 8
• “Fieldbus Specific Input/Output Registers” on page 11
• “FB Node Address Config (Parameter #103)” on page 21
• “FB Node Address SSC (Parameter #104)” on page 22
• “FB Node Address Actual (Parameter #105)” on page 22
• “SSA Enable (Parameter #113)” on page 26
• “SSA Node Address (Parameter #114)” on page 26
Note: The SSA functionality requires firmware revision 1.14 or higher.

1. The node address source is specified by the ‘NA’ bit in parameter #8 (‘Configuration Bits’)

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Basic Operation 11

Fieldbus Specific Input/Output Registers

Switches (Fieldbus Specific Input)

The fieldbus specific input is used for fieldbus specific configuration settings and supports two types of
switches/coding.

• BCD-coded Switches
This type of switches allows the PROFIBUS node address to be set in the range 0... 99.

• Binary Switches
This type of switches allows the node address to be set in the range 0... 126 as follows:

b7 b6 b5 b4 b3 b2 b1 b0 Node Address
- 0 0 0 0 0 0 0 0
- 0 0 0 0 0 0 1 1
- 0 0 0 0 0 1 0 2
- 0 0 0 0 0 1 1 3
... ... ... ... ... ... ... ... ...
- 1 1 1 1 1 0 1 125
- 1 1 1 1 1 1 0 126 (reserved for SSA)
- 1 1 1 1 1 1 1 (invalid on PROFIBUS)

Note: Bit 7 is ignored on PROFIBUS.

Note: The type of switch used is specified in parameter #9 (‘Switch Coding’). On PROFIBUS, the de-
fault value for this parameter is 00h (BCD Switches). However, since this is fieldbus dependent, there is
no guarantee that the same type of switch is used by default on other networks.
See also...
• Anybus-IC Design Guide (parameter #9 ‘Switch Coding’)
• “Communication Settings” on page 10

Status Indicators (Fieldbus Specific Output)

The fieldbus specific output is used for fieldbus specific status indications as follows:

Bit State Colour Description


0 Clear (0) Off Node offline or power not supplied
Set (1) Green Node in data exchange mode
Toggling (1Hz) Green, flashing Node in clear mode
1 Clear (0) Off No error or power not supplied
Set (1) Red Error in initialization of PROFIBUS ASIC
Toggling (1Hz) Red, flashing Error in configuration data and/or user parametrization data
2... 7 - - (not used on PROFIBUS)

See also...
• Anybus-IC Design Guide (parameter #7 ‘LED State’)

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Basic Operation 12

PROFIBUS Implementation

Global Control

The Anybus module supports the following global commands:


• FREEZE/UNFREEZE of inputs
Works according to the PROFIBUS DP specification.
• SYNC/UNSYNC of outputs
Works according to the PROFIBUS DP specification.
• CLEAR
See “Bus in Clear Mode” on page 14 .
See also...
• “FB Init (Parameter #101)” on page 20
• “Fieldbus Specific Initialization” on page 30

User Parametrization Data

The master identifies itself with the slaves by sending parametrization data, specifying how the slave shall
operate (i.e. Master address, PNO-ID, Sync/Freeze capabilities etc.).
The parametrization data consists of two parts:

DP Standard Parameters User Parametrization Data


7 bytes Dynamic (up to 237 bytes, first byte
Size
reserved for Anybus)
Defined by IEC 61158-6 Application
Evaluated by Anybus Anybus - or - application
Supported by the Generic GSD-file Yes No

As seen in the table above, support for additional (i.e. > 1 byte) user parametrization data can optionally
be implemented by supporting the corresponding parameters in the application. Note however that this
invalidates the generic GSD file supplied by HMS.
If enabled, the user parametrization data has to be acknowledged by the application.

See also...
• “Fieldbus Conformance Notes” on page 8
• “Identity Information” on page 9
• “FB Init (Parameter #101)” on page 20
• “User Parametrization Data Length (Parameter #111)” on page 24
• “User Parametrization Data (Parameter #117)” on page 27

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Basic Operation 13

Extended Diagnostics

In addition to the 6 mandatory diagnostic data bytes, the module supports up to 200 bytes of extended
diagnostic data. This data can be used e.g. to notify the PROFIBUS master of a fault that has occurred
in the application.
The PROFIBUS specification specifies three different types of extended diagnostic data:
• Device related
• Identifier related
• Channel related
The application is responsible for setting up the correct diagnostics prior to sending it to the master.
Consult the PROFIBUS specification for further information about the different diagnostic settings.
Extended diagnostics is not supported by default, but can optionally be supported by implementing sup-
port for the corresponding parameters in the application. Note however that this invalidates the generic
GSD file supplied by HMS.

See also...
• “Fieldbus Conformance Notes” on page 8
• “Identity Information” on page 9
• “FB Init (Parameter #101)” on page 20
• “Extended Diagnostic Length (Parameter #112)” on page 25
• “Extended Diagnostics (Parameter #118)” on page 28

Configuration Data

The Anybus module is a modular slave, which means that the input/output block size is flexible and not
tied to a specific block length. The input/output blocks are specified by so-called identifier bytes, which
defines the input- and/or output data length as well as data consistency. The identifier bytes are defined
in the GSD file and are automatically extracted by the configuration tool when adding modules to the
configuration.
During network startup, the master sends its actual configuration to the Anybus module for validation.
By default, the Anybus module adopts its configuration data from the master (i.e. a mismatch is not pos-
sible, unless the configuration is bigger than the data sizes specified during initialization).
Optionally, the configuration data can be acknowledged by the application (fieldbus specific mode).

See also...
• “Fieldbus Conformance Notes” on page 8
• “Identity Information” on page 9
• “FB Init (Parameter #101)” on page 20
• “Default Config Data Length (Parameter #109)” on page 24
• “Config Data Length (Parameter #110)” on page 24
• “Default Config Data (Parameter #115)” on page 27
• “Config Data (Parameter #116)” on page 27

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Basic Operation 14

Fieldbus Fault Action

Bus Offline

When the fieldbus is offline, the outputs can behave in different ways depending on the parameter #10
(“Offline Action”) setting.
See also...
• Anybus-IC Design Guide, parameter #10 (‘Offline Action’)

Bus in Clear Mode

When the fieldbus master issues the global control telegram ‘Clear’, the outputs can behave in different
ways depending on the parameter #11 (“Idle Action”) setting.
Note that input data can be read by the master even if the module is in ‘Clear’-mode.
See also...
• Anybus-IC Design Guide, parameter #11 (‘Idle Action’)
• “Global Control” on page 12

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Chapter 3

Fieldbus Interface

General Considerations
Make sure to keep the length of the stub lines (i.e. the distance between the PROFIBUS connector and
the Anybus module) as short as possible. If these stub lines are too long, communication problems may
arise when operating at higher bus speeds (>=1.5 Mbps). According to the PROFIBUS Test Specifica-
tion, the max. allowed total length of all stub lines on a bus segment is 80 cm @ 12 Mbps. Over a full
bus segment of 32 nodes, this equals 25 mm.
The recommended connector for PROFIBUS is a 9-pin female DSUB-connector (DB9F). Other con-
nectors are also permitted, as long as all mandatory signals are present.
+5 V BUS and GND BUS are normally used for bus termination, and may be used to power external
devices such as e.g. optical transceivers (RS485 to fibre optics). In any case, such devices may not con-
sume more than 100 mA of current. Also note that these power outputs are not short circuit protected.
Note: Due to the individual requirements (i.e. differences in cable shield filters, max. stub line length
etc.) for each networking system, special care has to be taken if compatibility with several networking
systems is required. It is therefore generally recommended to also study the design examples in the field-
bus appendices for Anybus-IC DeviceNet and Anybus-IC Ethernet/IT/IP.

See also...
• “Fieldbus Conformance Notes” on page 8
• “DB9F Pinout” on page 16

IMPORTANT: The recommendations regarding PE and cable shield filters etc. have been changed slightly compared
to those of older revisions of this document. The module is however fully backwards compatible with the old recommenda-
tions.

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Fieldbus Interface 16

Typical Implementation
PROFIBUS requires a cable shield filter as shown below. If multiple networks are to be supported using
the same application PCB, this has to be accounted for when routing the board, since other networking
systems may use a different shielding approach.
Max. 25mm

Bus Interface Device Electronics

RTS
4 15
+5V BUS
6 20
A Line
8 13
B Line
3 14
GND BUS
5 19

Shield
VCC
1+9
1M GND
24 + 32

Protective Earth (PE)


2.2nF/500V

Note: To ensure proper EMC behavior, the metal housing DB9F-connector must be connected to Pro-
tective Earth (PE) as illustrated above.

DB9F Pinout
When using a DB9F connector, A-Line, B-Line, +5 V BUS, GND BUS and Shield are mandatory.
When using other connectors, only A-Line, B-Line and Shield are required.

PROFIBUS Connector (DB9F) Anybus


Pin Signal Pin Signala
1 - - -
2 - - -
3 B-Line 14 FB2 5 (female) 1

4 RTS 15 FB3
5 GND BUS (isolated) 19 FB5
9 6
6 +5 V BUS (output, isolated, 100 mA max.) 20 FB6
7 - - -
8 A-Line 13 FB1
9 - - -
Housingb Shield - -

a. FB4, FB7 and FB8 should be left unconnected.


b. See “Typical Implementation” on page 16 and “Termination Example” on page 17 .

See also...
• “Fieldbus Conformance Notes” on page 8

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Fieldbus Interface 17

Termination Example
It is generally recommended to use PROFIBUS connectors with built-in termination. If this is not pos-
sible, termination can be implemented on-board as illustrated below.

Bus Interface Device Electronics


+5V BUS

L
A Line Switchable
Bus In Termination
L
B Line +5V BUS
R2 20
L
B Line B Line
R1 14
Bus Out
L
A Line A Line
13
R2
RTS GND BUS VCC
19 1+9

GND BUS RTS GND


15 24 + 32
2.2nF/500V
Shield

1M

Protective Earth (PE)


Max. 25mm

Ref. Description
R1 220 R ± 5%
R2 390 R ± 5%
L 110 nH ± 20%

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Chapter 4

Fieldbus Specific Parameters


To be able to use the full functionality of every fieldbus, the fieldbus specific parameters are used. These
parameters are specific to the actual fieldbus used and must be configured accordingly.
The table below shows an overview of the parameters.

# R/W Name Size Default value Modbus Address


100 R FB Status 2 bytes - 7000h
101 R/W FB Init 1 byte 00h 7001h
102 W FB Password 2 bytes - 7002h
103 R/W FB Node Address Config 1 byte 7Eh 7003h
104 R FB Node Address SSC 1 byte - 7004h
105 R FB Node Address Actual 1 byte - 7005h
106 R PROFIBUS baud rate Actual 1 byte - 7006h
107 R/(W) PROFIBUS ID Number Config 2 bytes 1810h 7007h
108 R PROFIBUS ID Number Actual 2 bytes - 7008h
109 R/W Default Config Data Length 1 byte - 7009h
110 R Config Data Length 1 byte - 700Ah
111 R User Parametrization Data Length 2 bytes - 700Bh
112 R/W Extended Diagnostic Length 1 byte 00h 700Ch
113 R/W SSA Enable 1 byte 01h (enabled) 700Dh
114 R SSA Node Address 1 byte 7Eh 700Eh
115 R/W Default Config Data 24 bytes 00h 700Fh - 701Ah
116 R Config Data 24 bytes - 701Bh - 7026h
117 R User Parametrization Data 237 bytes - 7027h - 709Dh
118 R/W Extended Diagnostics 202 bytes 00h 709Eh - 7102h
119 R(W) Firmware Revision 2 bytes - 7103h
120 R(W) Serial Number 4 bytes - 7104h

Note: Byte sized parameter values are placed in the least significant byte of the word.

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Fieldbus Specific Parameters 19

FB Status (Parameter #100)

This parameter holds information about the current fieldbus status.

Parameter Name ‘FB Status’


Parameter Number 100
Modbus Address 7000h
Default Value -
Range 0000h - FFFFh
Size 2 bytes
Stored in NV RAM No
Access R

Bit Layout

b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0


- - - - - - IDLE BUS - - - - - - CFG PRM

• PRM1
This bit indicates if a Set_Prm telegram has been received from the PROFIBUS master.
1: Set_Prm telegram has been received from the PROFIBUS master. The application should
check the received user parametrization data in parameter #117 (“User Parametrization
Data”) and respond by setting/clearing bit 0 of parameter #101 (“FB Init”).
0: Set_Prm telegram has not been received from the PROFIBUS master.

• CFG1
This bit indicates if a Chk_Cfg telegram has been received from the PROFIBUS master.
1: Chk_Cfg telegram has been received from the PROFIBUS master. The application should
check the received configuration data in parameter #116 (“Config Data”) and respond by
setting/clearing bit 1 of parameter #101 (“FB Init”).
0: Chk_Cfg telegram has not been received from the PROFIBUS master.

• BUS
1: Node is online
0: Node is offline

• IDLE
1: Node is in clear mode
0: Node is not in clear mode

1. These bits are only valid when using the fieldbus specific initialization option. For more information, see
“Fieldbus Specific Initialization” on page 30 .

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Fieldbus Specific Parameters 20

FB Init (Parameter #101)

This parameter is used to acknowledge user parametrization data and configuration data received from
the PROFIBUS master when using the fieldbus specific initialization option. For more information, see
“Fieldbus Specific Initialization” on page 30 .

Parameter Name ‘FB Init’


Parameter Number 101
Modbus Address 7001h
Default Value 00h
Range 00h - FFh
Size 1 byte
Stored in NV RAM No
Access R/W

Bit Layout

b7 b6 b5 b4 b3 b2 b1 b0
- - - - - - CFG PRM

• PRM1
This bit is used to accept / reject the user parametrization data found in parameter #117 (“User
Parametrization Data”) when the module has received a Set_Prm telegram from the PROFIBUS
master.
The application should set this bit accordingly after checking the received parametrization data.
1: Accept user parametrization data
0: Reject user parametrization data

• CFG1
This bit is used to accept / reject the configuration data found in parameter #116 (“Config Da-
ta”) when the module has received a Chk_Cfg telegram from the PROFIBUS master.
The application should set this bit accordingly after checking the received configuration.
1: Accept configuration data
0: Reject configuration data

1. These bits are only valid when using the fieldbus specific initialization option. For more information, see
“Fieldbus Specific Initialization” on page 30 .

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Fieldbus Specific Parameters 21

FB Password (Parameter #102)

This parameter grants write access to the following parameters provided that a valid password is sup-
plied:
• “PROFIBUS ID Number Config (Parameter #107)” on page 23
• “Firmware Revision (Parameter #119)” on page 29
• “Serial Number (Parameter #120)” on page 29
(The password can be obtained by contacting HMS)

Parameter Name ‘FB Password’


Parameter Number 102
Modbus Address 7002h
Default Value -
Range 0000h - FFFFh
Size 2 bytes
Stored in NV RAM No
Access W

FB Node Address Config (Parameter #103)

This parameter holds the manually configured PROFIBUS node address. Note that in order for this val-
ue to be valid, bit 4 of parameter #8 (“Configuration Bits”) must be set. Valid node address settings
range from 0 to 126.
Note: This parameter is read once during startup, i.e. any changes requires a reset in order to have effect.

Parameter Name ‘FB Address Cfg’


Parameter Number 103
Modbus Address 7003h
Default Value 7Eh
Range 00h - 7Eh
Size 1 byte
Stored in NV RAM Yes
Access R/W

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Fieldbus Specific Parameters 22

FB Node Address SSC (Parameter #104)

This parameter holds the automatically configured fieldbus node address from the SSC interface. Note
that in order for this value to be valid, bit 4 of parameter #8 (“Configuration Bits”) must be cleared.
If the SSC node address is larger than allowed by the fieldbus, the default value of parameter #103 (“FB
Node Address Config”) will be used as the actual node address.
Note: This parameter is read once during startup, i.e. any changes requires a reset in order to have effect.

Parameter Name ‘FB Address SSC’


Parameter Number 104
Modbus Address 7004h
Default Value -
Range 00h - FFh
Size 1 byte
Stored in NV RAM No
Access R

FB Node Address Actual (Parameter #105)

After initialization, this parameter holds the actual fieldbus node address. Prior to module initialization,
the value of this parameter is not defined.

Parameter Name ‘FB Address Act’


Parameter Number 105
Modbus Address 7005h
Default Value -
Range 00h - 7Eh
Size 1 byte
Stored in NV RAM No
Access R

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Fieldbus Specific Parameters 23

PROFIBUS Baud Rate Actual (Parameter #106)

This parameter holds the actual fieldbus baud rate after the Anybus-IC is online. Before the Anybus-IC
is online, the value of this parameter is not defined.

Parameter Name ‘FB Baud Rate’


Parameter Number 106
Modbus Address 7006h
Default Value -
Range 00h - 09h
Size 1 byte
Stored in NV RAM No
Access R

• Value
00h: 12 Mbps 05h: 187.5 kbps
01h: 6 Mbps 06h: 93.75 kbps
02h: 3 Mbps 07h: 45.45 kbps
03h: 1.5 Mbps 08h: 19.2 kbps
04h: 500 kbps 09h: 9.6 kbps

PROFIBUS ID Number Config (Parameter #107)

This parameter holds the configured PROFIBUS ID number for the Anybus-IC. The “set default” com-
mand in parameter #1 (“Module mode”) does not affect this parameter if the password is not entered
before the set default is executed. If the parameter is unlocked with the password, and the module is
restarted, the parameter is locked again.
Note: This parameter is password protected. To change its value, a valid password must first be supplied
through parameter #102 (“FB Password”).

Parameter Name ‘PDP ID Num Cfg’


Parameter Number 107
Modbus Address 7007h
Default Value 1810h
Range 0000h - FFFFh
Size 2 byte
Stored in NV RAM Yes
Access R(W)

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Fieldbus Specific Parameters 24

PROFIBUS ID Number Actual (Parameter #108)

This parameter holds the actual PROFIBUS ID number after the Anybus-IC has been initialized. Before
the Anybus-IC is initialized, the value of this parameter is not defined.

Parameter Name ‘PDP ID Num Act’


Parameter Number 108
Modbus Address 7008h
Default Value -
Range 0000h - FFFFh
Size 2 bytes
Stored in NV RAM No
Access R

Default Config Data Length (Parameter #109)

This parameter holds the length of the default configuration data sent to the master when a Get_Cfg
telegram is received from the master. The default configuration is entered in parameter #115 (“Default
Config Data”). This register should be updated before the module is initialized in order to have effect.

Parameter Name ‘Def Cfg Data Len’


Parameter Number 109
Modbus Address 7009h
Default Value -
Range 00h - 18h
Size 1 byte
Stored in NV RAM No
Access R/W

Config Data Length (Parameter #110)

This parameter holds the configuration data length when the Chk_Cfg telegram is received from the
PROFIBUS master. The data is found in parameter #116 (“Config Data”). Before the Chk_Cfg tele-
gram is received from the PROFIBUS master, the length of the Anybus-IC calculated configuration data
is present here.

Parameter Name ‘Cfg Data Len’


Parameter Number 110
Modbus Address 700Ah
Default Value -
Range 00h - 18h
Size 1 bytes
Stored in NV RAM No
Access R

User Parametrization Data Length (Parameter #111)

This parameter holds the user parametrization data length when the Set_Prm telegram is received from
the PROFIBUS master. The data can be found in parameter #117 (“User Parametrization Data”).

Parameter Name ‘Usr Prm Data Len’


Parameter Number 111

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Fieldbus Specific Parameters 25

Modbus Address 700Bh


Default Value -
Range 00h - EDh
Size 2 bytes
Stored in NV RAM No
Access R

Extended Diagnostic Length (Parameter #112)

This parameter holds the length (in bytes) of the extended diagnostic data entered in parameter #118
(“Extended Diagnostics”). Note that the indication word (see “Indication Word” on page 28 ) is not
included in this value.

Parameter Name ‘Ext Diag Len’


Parameter Number 112
Modbus Address 700Ch
Default Value -
Range 00h - C8h
Size 1 byte
Stored in NV RAM No
Access R/W

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Fieldbus Specific Parameters 26

SSA Enable (Parameter #113)

This parameter makes it possible to disable the support for the Set_Slave_Address telegram (SSA).
Note: This functionality is only implemented in firmware revision 1.14 or higher.

Parameter Name ‘SSA Enable’


Parameter Number 113
Modbus Address 700Dh
Default Value 01h
Range 00h - 01h
Size 1 byte
Stored in NV RAM Yes
Access R/W

• Value
00h: Disable SSA support
(SSA telegrams will be rejected with the error code RS (No resource). The FBNA bit in pa-
rameter #8 will be ignored.)
01h: Enable SSA support
(SSA telegrams will be accepted, and the node address will be stored in parameter #114)

SSA Node Address (Parameter #114)

This parameter holds the node address received from the fieldbus via the Set_Slave_Address telegram.
Note: This functionality is only implemented in firmware revision 1.14 or higher.

Parameter Name ‘SSA Node Address’


Parameter Number 114
Modbus Address 700Eh
Default Value 7Eh
Range 00h - 7Eh
Size 1 byte
Stored in NV RAM Yes
Access R

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Fieldbus Specific Parameters 27

Default Config Data (Parameter #115)

This parameter holds the default configuration data sent to the master when a Get_Cfg telegram is re-
ceived from the master. The length of the default configuration data is entered in parameter #109 (“De-
fault Config Data Length”).
If no default configuration data is specified in this register, the module will calculate the configuration
data based on the initialized I/O lengths.
This register should be updated before the module is initialized in order to have effect.

Parameter Name ‘Default Config’


Parameter Number 115
Modbus Address 700Fh - 701Ah
Default Value -
Range 00h - FFh
Size 24 bytes
Stored in NV RAM No
Access R/W

Config Data (Parameter #116)

This parameter holds the configuration data when the Chk_Cfg telegram is received from the PROFI-
BUS master. The length is found in parameter #110 (“Config Data Length”). Before the Chk_Cfg tel-
egram is received from the PROFIBUS master, the Anybus-IC calculated configuration data is present
here.

Parameter Name ‘Config’


Parameter Number 116
Modbus Address 701Bh - 7026h
Default Value -
Range 00h - FFh
Size 24 bytes
Stored in NV RAM No
Access R

User Parametrization Data (Parameter #117)

This parameter holds the user parametrization data when the Set_Prm telegram is received from the
PROFIBUS master. The length can be found in parameter #111 (“User Parametrization Data Length”).
The first byte of the user parametrization data is reserved for the PROFIBUS ASIC and should always
be left at 0 by the user.

Parameter Name ‘User Param Data’


Parameter Number 117
Modbus Address 7027h - 709Dh
Default Value -
Range 00h - FFh
Size 237 bytes
Stored in NV RAM No
Access R

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Fieldbus Specific Parameters 28

Extended Diagnostics (Parameter #118)

The application can send user specific diagnostics a.k.a. extended diagnostics to the PROFIBUS master.
(See “Extended Diagnostic Data (Slave_Diag)” on page 1 for more information).
The length of the actual extended diagnostic data is specified in parameter #112 (“Extended Diagnostic
Length”).

Parameter Name ‘Ext Diagnostics’


Parameter Number 118
Modbus Address 709Eh - 7102h
Default Value -
Range 00h - FFh
Size 200 bytes
Stored in NV RAM No
Access R/W

The first word in the extended diagnostic data field specifies the type of diagnostic data. The data is sent
when this word has been updated, which means that the actual diagnostic data must be written before
this word is updated.

Indication Word

b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0


- - - - - - - - - - - - - OFL STA EXT

• EXT
1: Extended diagnostic is indicated to the PROFIBUS master.
0: Status diagnostic is indicated to the PROFIBUS master.

• STA
1: Static diagnostic is indicated to the PROFIBUS master.

• OFL
1: Diagnostic overflow is indicated to the PROFIBUS master.

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Fieldbus Specific Parameters 29

Firmware Revision (Parameter #119)

This parameter holds the firmware revision number.


Note: This parameter is password protected. To change its value, a valid password must first be supplied
through parameter #102 (“FB Password”).

Parameter Name ‘Firmware Revision’


Parameter Number 119
Modbus Address 7103h
Default Value (firmware revision of Anybus module, set at manufacturing)
Range 0000h - FFFFh
Size 2 bytes
Stored in NV RAM No
Access R(W)

Serial Number (Parameter #120)

This parameter holds a unique 32-bit serial number.


Note: This parameter is password protected. To change its value, a valid password must first be supplied
through parameter #102 (“FB Password”).

Parameter Name ‘Serial Number’


Parameter Number 120
Modbus Address 7104h
Default Value (serial number of Anybus module, set at manufacturing)
Range 00000000h - FFFFFFFFh
Size 4 bytes
Stored in NV RAM No
Access R(W)

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Chapter 5

Fieldbus Specific Initialization

General Information
By default, the application does not need to acknowledge any telegrams from the PROFIBUS master;
all handshaking etc. is handled automatically by the module.
Optionally, the module can be initialized in fieldbus specific mode, offering greater control over user
parametrization data and configuration data. To start the module in this mode, the fieldbus specific in-
itialization option in parameter #1 (“Module Mode”) is used.

Initialization State Machine


The fieldbus specific initialization process can be described by a state diagram as follows:

#1 Module mode =
0002h

NAK
(#101 FB_Init Bit 0&1=0)
STATE 1
Waiting for parameter
data NAK
NAK (#101 FB_Init Bit 0&1=0)
NAK
(#101 FB_Init Bit 0=0) (#101 FB_Init Bit 0=0)
Set_Prm received
(#100 FB_Status Bit 0=1)

Evaluate User
Parameter Data
#111 Usr Prm Data Len
#117 User Param Data

Set_Prm received
(#100 FB_Status Bit 0=1)
ACK
(#101 FB_Init Bit 0=1)

STATE 2
Waiting for config data

Chk_Cfg received
(#100 FB_Status Bit 1=1)

Evaluate
Configuration Data
#110 Cfg Data Len
#116 Config

ACK ACK
#101 FB_Init Bit 0=1 ACK (#101 FB_Init Bit 1=1) Check config data
(#101 FB_Init Bit 1=1)
#110 Cfg Data Len
#116 Config
Check parameter data
#111 Usr Prm Data Len
#117 User Param Data

STATE 3
Chk_Cfg received
(#100 FB_Status Bit 1=1)
Set_Prm received
(#100 FB_Status Bit 0=1)

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Fieldbus Specific Initialization 31

STATE 1 (Initial state)

The module awaits the parametrization data from the PROFIBUS master. When received (indicated by
bit #0 of parameter #100 (‘Fieldbus Status’)), the application must evaluate the user parametrization
data by checking parameters #111 (‘Usr Prm Data Len’) and #117 (‘User Param Data’).
• If the user parametrization data is ok, the application shall accept the telegram by setting bit 0 of
parameter #101 (“FB Init”). The application shall then enter STATE 2.
• If the user parametrization data is not ok, the application shall reject the telegram by clearing bit
0 of parameter #101 (“FB Init”). The application shall then remain in STATE 1.

STATE 2

The module awaits configuration data from the PROFIBUS master. When received (indicated by bit #1
of parameter #100 (‘Fieldbus Status’)), the application must evaluate the configuration data by checking
parameters #110 (‘Cfg Data Len’) and #116 (‘Config Data’).
• If the configuration data is ok, the application shall accept the telegram by setting bit 1 of param-
eter #101 (“FB Init”). The application shall then enter STATE 3.
• If the configuration data is not ok, the application shall reject the telegram by clearing bits 0 and
1 of parameter #101 (“FB Init”). The application shall then return to STATE 1 and expect a new
initialization sequence.

STATE 3

This state handles all PROFIBUS telegrams received after the initialization is finished and is also the
‘normal’ runtime state. The bus is online and exchanging I/O data in this state.
• If a ‘SET_PRM’-telegram is received, the application must evaluate the user parametrization da-
ta. If the user parametrization data is ok, the application shall remain in STATE 3.
If the user parametrization data is not ok, the application shall return to STATE 1 and expect a
new initialization sequence.
• If a ‘CHK_CFG’-telegram is received, the application must evaluate the configuration data. If
the configuration data is ok, the application shall remain in STATE 3.
If the configuration data is not ok, the application shall return to STATE 1 and expect a new
initialization sequence.

Note: If the fieldbus goes offline and then back to online (e.g. if the fieldbus connector is temporarily discon-
nected and then reconnected again), the initialization sequence must restart from STATE 1 again.
Note: If both the ‘SET_PRM’- and ‘CHK_CFG’-telegrams are received, and the application accepts both tel-
egrams, it is possible to acknowledge both simultaneously by writing 03h to parameter #101 (‘FB Init’).
This is only allowed when both telegrams shall be acknowledged. If any of the telegrams shall be reject-
ed, it must be made one at a time in the order described in the flowchart on the previous page.
Note: If the CHK_CFG telegram shall be rejected, both bits (#0 and #1) of parameter #101 (‘FB Init’) must
be cleared.

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022
Appendix A

Technical Specification

Electrical Specification

Protective Earth (PE) Requirements

See “Fieldbus Specific Parameters” on page 18 .

Power Supply

Supply Voltage
The module requires a regulated 5 V ± 5% DC power supply as specified in the Anybus-IC Design
Guide.

Power Consumption
The maximum power consumption is 150 mA.

Environmental Specification
• Temperature
Test performed according to IEC-68-2-1 and IEC 68-2-2.
Operating: -40 to +85 °C (-40 to +185 °F).
Storage: -40 to +85 °C (-40 to +185 °F).

• Humidity
The product is designed for a relative humidity of 5 to 95% noncondensing.
Test performed according to IEC 68-2-30.

EMC Compliance (CE)


EMC precompliance testing has been conducted according to the following standards:

• Emission: EN 61000-6-4
Tested perEN 55016-2-3

• Immunity: EN 61000-6-2
Tested perEN 61000-4-2
EN 61000-4-3
EN 61000-4-4
EN 61000-4-5
EN 61000-4-6

Anybus-IC PROFIBUS
Doc.Rev. 2.00 Doc.Id. SCM-1200-022

You might also like