Professional Documents
Culture Documents
Analog Profibus Slave Module: Seminar Report ON
Analog Profibus Slave Module: Seminar Report ON
ON
SUBMITTED BY
UNIVERSITY OF PUNE
2010 - 11
Of B.E. E&TC have successfully completed the Project Seminar titled ‘ ANALOG
PROFIBUS SLAVE MODULE’ during the academic year 2012-13. This report is
submitted as per the requirement of B.E. E&Tc Engineering as prescribed by University
of Pune.
We wish to express our deep sense of gratitude to our Guide, Mrs. Jirafe madam for
their guidance and useful suggestions, which helped us in completing the project work, in
time.
Further we express our deep regards to our H.O.D Mr. V.N.PATIL and Principal
Dr. K.R.JOSHI for their valuable help and inspiration given to us.
Finally, yet importantly, we would like to express our heartfelt thanks to our parents
for their blessings, our friends/classmates and seniors for their help and wishes for the
successful completion of this project.
1. Introduction 1
2. Literature Survey
3. Proposed Specifications
4. Block diagram & description
5. Hardware System Design
5.1 Serial interface with ASIC VPC3+C
6. Software System Design
- State Machine Diagram
7. Applications & Future modifications
8. Bibliography
9. Data Sheets. (Only for uncommon components)
Data link layer, layer 2 defines the description of the bus access method,
including data security. With PROFIBUS, this is the master-slave method in
conjunction with the token method.
Layer 7 forms the interface to the application and thus represents the link
between the application and communication. With PROFIBUS, the
communication protocol PROFIBUS DP is used here.
The actual application process lies above layer 7 and is not part of the OSI
model.
The first fieldbus systems, which were proprietary, were introduced to the
market in the 1980s. With the objective of far reaching standardization, 21
companies and institutes came together in 1987 to create a joint project with the task
of developing and testing an open fieldbus standard. This project was the starting
point for the development of PROFIBUS. The success of PROFIBUS is equally due
to its advanced technology and the successful activities of the organization, which
was founded to represent the interests of manufacturers and users. In addition to the
many measures employed for technological development and its propagation,
additional global support services for members (users and manufacturers) are
available in the form of consulting, information and measures for quality assurance
and standardization of the technology in international standards.
same firmware
same ‘easy-to-use’ user interface
same configurator
same device driver
different form factors
Hardware specifications:
Software specifications:
The development of the PROFIBUS product range also entails enhancements
as regards the device properties and features to be described in the GSD files. Each
vendor of a DP-Slave or a DP-Master (class 1) shall offer the characteristic features of
the device as a device data sheet and a device data file (GSD-File) to the user. Using
this information enables the user to check all data in the configuration phase of a
PROFIBUS-DP system and errors can be avoided as early as possible. Because of the
defined file format, it is possible to realize vendor independent configuration tools for
PROFIBUS-DP systems. The configuration tool uses the GSD-Files for testing the
data that were entered regarding the observance of limits and validity related to the
performance of the individual device. The distinction of the GSD-files is achieved by
the vendor- and device-identifiers.
A) ASIC:
The VPC3+C handles the physical layer 1 and the data link layer 2 of the
ISO/OSI-reference-model excluding the analog RS485 drivers. The integrated 4K
Byte Dual-Port-RAM serves as an interface between the VPC3+C and the
software/application. Addressing by the user is done directly, however, the internal
Micro Sequencer (MS) addresses the RAM by means of the so-called basepointer.
The base-pointer can be positioned at the beginning of a segment in the memory.
Therefore, all buffers must be located at the beginning of a segment. Three buffers are
provided for data communication (three for output data and three for input data). As
one buffer is always available for communication no resource problems can occur.
For optimal diagnosis support, the VPC3+C offers two Diagnosis-Buffers. The user
enters the updated diagnosis data into these buffers. One Diagnosis-Buffer is always
assigned to the VPC3+C.
The VPC3+Chandles the message and address identification, the data security
sequences and the protocol processing for PROFIBUS-DP. In addition the acyclic
communication and alarm messages, described in DPV1 extension, are supported.
Furthermore the slave-to-slave communication Data eXchange Broadcast (DXB) and
the Isochronous Mode (IsoM), described in DPV2 extension, are also provided.
B) Power Supply:
The type of power supply we are using is a distributed power supply. We need
a total of 24 V, which is further distributed in order to satisfy each and every device
specifications and considering overall voltage drop. A general distribution is as
follows:
- ASIC: upto 5 V (can be less than 5V also)
- Microcontroller: 5V
- ADC & DAC: 5-10V
PowerDistribution:
Power may be distributed in several ways. One configuration is the centralized supply
that delivers filtered DC power via power conductors and power planes to circuits,
sensors, and actuators. Another configuration is the distributed supply that delivers
raw, unfiltered DC power to local regulation units.
C) MicroController:
Microcontroller acts as a heart of any module in which processing is needed.
In this analog profibus slave module, ASIC acts the brain of the module and
microcontroller as heart. According to our requirements, LPC 2148 ARM7 controller
perfectly suits demands of any slave module like this. It even gives opportunity for
future developments in order to HMI interfacing for local access.
D) ADC/DAC:
The field devices that will be interfaced with ADC & DAC have analog
output. This analog ouput acts as input to the slave module which requires data in
digital form. The output of this module needs to be analog as the product is specially
built for analog Profibus slave module. Thus ADC/DAC are required in this module.
LPC 2148 have inbuilt 10 bit ADC and DAC. We are using the same ADC &
DAC for our application. Our application consists of 4 channel ADC and DAC. Thus
external interface of ADC & DAC is not required.
One single protocol for all applications, PROFIBUS DP carries all communications
between a DCS or controller and individual field devices. Factory devices and certain
process devices are directly connected to PROFIBUS DP
Components required:
- IC1 74AHCT1G00 SINGLE 2 INPUT POSITIVE NAND GATE
- IC2 DS75176 Multipoint RS-485 transceivers
Opto couplers:
- IC6 HCPL0710
- IC7 HCPL0601
- IC8 HCPL0710
Set_Slave_Address
Service can be blocked with R_SSA_PUF_PTR= 0H
VPC3 write data into AUX-buffer
VPC3 change AUX-buffer to SSA-buffer,
VPC3 write actual data length to R_LEN_SSA_Data register
VPC3 generates New_SSA_Datainterrupt
VPC3 switches from old to new address
User can read new SSA-data and saves new address to EEPROM
Set_Parameter
VPC3 writes data into AUX_buffer
VPC3 checks the data (bytes0 .. 6)
VPC3 change AUX_buffer to SSA-buffer
VPC3 writes actual data length into R_LEN_PRM_Data register
VPC3 generates New_Prm_Data interrupt
User has to check the data and to acknowledge the data via
User_Prm_Data_Okay_Cmdor...._Not_Okay_Cmd.
Check_Config
VPC3 writes Check Cfg-data into AUX-buffer
VPC3 swap AUX-buffer to Cfg-buffer
VPC3 writes actual data length in R_Len_Cfg_Data register
VPC3+ generates New_Cfg_Data interrupt
User must check the configuration data and has to acknowledge via
User_Cfg_Data_Okay_Cmdor...._Not_Okay_Cmd.
With User_Cfg_Data_Okay_Cmd the VPC3 goes into state Data Exchange.
Global_Control
After receiving new GC-command, the VPC3 generates GC-interrupt
The user can read GC-command from address 3CH.
Data_Exchange
VPC3 writes data into D-buffer VPC3 changes D-and N-buffer.
VPC3 generates DX-Out interrupt.
The user can read the data from U-buffer.
Process automation
- Chemical industry
- Petrochemical industry
- Paper and textile industry
- Foodstuffs
- Power stations
- Sewage plants
Drive technology
- Machine tools
- Packaging machines
- Pressing plants
- Paper production
Safety applications
- Vehicle assembly
- Machine tool building
Plant Manager
- Lower overall plant costs
- Faster and more flexible production
- Better and constant product quality
- Safer plant operation
- Increased ROI
- More flexible production
Engineering staff
- Less wiring and less hardware needs Faster engineering
- Huge vendor choice
- Easier commissioning
- Simpler documentation
- Modular and flexible solutions
Operators staff
- Transparency down to the sensor
- Improved maintenance conditions
Analog Profibus Slave Module
Page 34
- Improved Asset Management
- More flexible production
- Shorter downtimes
Plant
- Advanced technology
- Easy migration
- Easier revamps
- Less expensive upgrades
- Longer useful life
FUTURE MODIFICATIONS
The available ASICs offer an easy-to-use interface and work with commonly used
microcontrollers. Another option is presented by microprocessors with an integrated
PROFIBUS core.
Data formats, data access methods, parameterization and cyclical and acyclic
communication diagnostics defined in the profile descriptions are implemented.
[1] www.ulepl.com
[2] Guidance by Mr. Sandeep Khire from UL Engineering Services.
[3] www.profichip.com
[4] www.siemens.com
[5] Datasheets of VPC3+CLF & LPC2148
[6] www.profibus.com
[7] www.profinet.com
[8] PROFIBUS Draft, PROFIBUS Guideline, GSD-Specification for
PROFIBUS-DP
[9] GSD Revision 2 ,Version 1.0, October 1998
[10] PROFIBUS Richtlinie - Best.-Nr. 2.122