Beruflich Dokumente
Kultur Dokumente
Fieldbus technologies
Kristjan Sillmann
reaalajassteemide ppetool
TT automaatikainstituut
kristjan.sillmann@ttu.ee 1 2
Src: Fieldbus book a tutorial
3 4
Src: THE FOUNDATION fieldbus PRIMER
Fieldbus: Communication through VCR Fieldbus: Communication through VCR
Messages are exchanged between applications sitting on the PCIs are appended and removed when a message goes through
fieldbus. When a message is transferred, it goes down VCRs to allow layers, to perform their specific functionality
through a channel called Virtual Communication A fieldbus device has many VCRs so that it can communicate
Relationship(VCR), to add Protocol Control Information with various devices or applications at the same time. It is
(PCI) before it goes possible because the VCR guarantees the message goes to
to the wire. the correct partner without risks of losing information.
A VCR is identified by an application with device-local
At the destination, it identifier called index specified in Application Layer.
goes up through the It is also identified from other devices with DL-address
partner VCR to the specified in Data Link Layer.
receiving application.
5 6
7 8
Src: Profibus Expert talk
Profibus standards comparison: Profibus PA standard( IEC 1158-2 ):
Character Format rules for Safety
9 10
11 12
Fieldbus Devices: Control Valve Fieldbus Devices: Control Valve
The electrical output of the CPU is passed through a D/A converter
and an electric to pneumatic converter (E/P), which results in a The software diagram illustrates four major components. The
pressure signal that modulates the actuator. positioner servo performs the servo calculation for the actuator.
The actuator position is fed back through a mechanical to electric The servo SW must communicate with the D/A and A/D. The SW
transducer (M/E) and an A/D converter , to get actual valve and HW for this function will be unique to the manufacturer and at
position back to the processor. this point, has nothing to do with fieldbus.
The transducer block (TB), is the interface between the positioner and
fieldbus. Most manufacturer specific features of the device will be
done in the TB, including calibration and diagnostics. It is likely
that the designer will want the TB to have access to the actual
valve position. Also, any potential device failures that can be
sensed should be communicated to the TB for use in diagnostics
and fault detection.
Although the TB is unique to a specific manufacturers design, the
data communicated to the Analog Output (AO) function block,
must conform to the
Fieldbus specifications.
13 14
Src: How to Develop Your First FOUNDATION Fieldbus Device
15 16
Fieldbus Data Link Layer: Fieldbus Data Link Layer:
LAS and Message Priorities Scheduled communication
Only one device on a link is allowed to use the medium at a The LAS is responsible for scheduled communication, which is
time. Link Active Scheduler (LAS) has the role to control the necessary to link Function Blocks. Function Blocks are
medium access. distributed applications operating in a synchronized manner.
The LAS possesses the token and gives it to another device to A Function Block output parameter is a Publisher of data and
allow it to send messages. The token is then returned to the other Function Blocks that receive this data are called
LAS for further medium access control. Subscribers.
Since application messages have various levels of urgency, The LAS controls periodic data transfer from a Publisher to
fieldbus DLL supports a mechanism to transmit messages
Subscribers using the Network Schedule.
according to their urgency.
17 18
19 20
Fieldbus Data Link Layer: Fieldbus Data Link Layer:
Unscheduled communication Link maintenance
Other communications take place in an asynchronous way. The The third role of LAS is to maintain the link. The LAS gives the
LAS is responsible to give all nodes on a link a chance to send token to all devices detected by the LAS. When a new device is
messages. added to the network, it must be recognized by the LAS and
The LAS gives a token by sending Pass Token (PT) PDU to a node. entered to the token rotation list called Live List.
A PT contains priority and The LAS sends a Probe Node (PN) PDU to node addresses where a
time interval information. device was not found before. A new device waits until it
A device must return the receives PN and returns Probe Response (PR) PDU to the LAS.
token within the time Then the LAS adds this device to the Live List.
interval given in the PT. This probing is repeated in a given interval. When a device is
This is necessary to removed from the link, it does not respond to PT any more. The
finish the unscheduled LAS detects this and deletes the device from the Live List.
communication before The LAS also broadcasts Time Distribution(TD) in a predefined
the next scheduled interval, to sync the network time, which is used for the
communication. scheduled communications on the fieldbus and the scheduled
function block executions in the User Application.
21 22
25 26
27 28
Src: Fieldbus Technical Overview - Understanding FOUNDATION fieldbus technology
Fieldbus Data Link Layer: Fieldbus Data Link Layer:
LAS scheduling example LAS scheduling example
A macrocycle is a single iteration of a schedule within a device. The pattern exactly repeats itself assuring the integrity of the
Figure shows the relationships between the absolute link control loop dynamics.
schedule start time, LAS macrocycle, device macrocycles, and
Note that during the function block execution, the LAS is sending
the start time offsets.
the Pass Token message to all devices so that they can transmit
In Figure, System Management in the transmitter will cause the AI their unscheduled messages such as alarm notifications or
function block to execute at offset 0. operator setpoint changes.
At offset 20, the Link Active Scheduler (LAS) will issue a Compel For this example, the only time that the fieldbus can not be used for
Data (CD) to the AI function block buffer in the transmitter and unscheduled messages is from offset 20 to offset 30 when the
data in the buffer will be published on the fieldbus. AI function block data is being published on the fieldbus.
At offset 30, System Management in the valve will cause the PID
function block to execute followed by execution of the AO
function block at offset 50.
29 30
31 32
Fieldbus communication models: Fieldbus communication models:
Publisher/subscriber Publisher/subscriber
There is no requirement (or opportunity) for the receiver to Publisher-Subscriber model is designed to link Function Blocks.
confirm that data is correctly received. If a data point is When a publishing Function Block runs, its output data is
missed, the value is immediately stale and the system will stored in the buffer of the Publisher VCR. Then the LAS
need to rely on the previous value until a future value is sends CD to the VCR to force it to transfer the data in DT.
transmitted. The data is broadcast on the network from a Subscriber VCRs receive this PDU and gives the data to the
single source to any device needing the data, one-to-many. subscribing Function Blocks.
Usually there is no explicit addressing of the subscribers. A typical example is a linkage from output of an Analog Input
(Al) block to process value input of PID control block.
Buffer with most Subscribers are able to know whether data has been updated
recent data value
since the last publish. This mechanism is important because
Data Link Layer transfers data as scheduled regardless if the
publishing Function Block updates the data in the buffer.
33 34
37 38
39 40
Fieldbus communication models: Fieldbus communication models:
Client/Server Client/Server
The third classification of communications is illustrated by an The Client-Server model is universal and used in many
operator at a host device changing the value of a parameter in communication technologies. An application called Client
a field device, such as a set point or tuning parameter. requests another application called "Server" to do a specific
action through FMS. When the Server finishes the requested
This model is called Client/Server. The values or messages are action, its result is transferred to the Client.
queued, so each will be transmitted in its turn. They are A typical example is a human-machine interface (Client) to read
transmitted in the unscheduled time during a macrocycle. data of a Function Block (Server). The Client sends a Read
Re-transmission by the sending device will be repeated until a request to the Server and then Server sends back the data to the
confirmation message is received from the recipient. Client. A Client may want to issue many requests at a time.
This exchange is between one Client-Server VCR has a queue to store those requests and
specific device and another, sends requests one by one when the node has a token.
thus it is a one-to-one A flow-control mechanism is available to manage error recovery
two-way Communication and Servers processing power.
relationship.
41 42
43 44
OPC - OLE for Process Control
Client/ Based on the COM (Component Object Model) architecture,
Server OPC was created as a vendor-independent standard, aimed at
(peer-to-peer) the definition of data exchange between Windows-based
applications, as well applications and vendor-specific
hardware in the realm of automation. It is maintained by an
independent association - the OPC Foundation.
Source
VS OPC defines logical objects and methods tailored to the special
needs of the process industry based on COM technology.
Source/Sink Several OPC-Clients are able to access one OPC-Server in
(report parallel. In the area of fieldbus communication, OPC is the
distribution) most often installed interface between a fieldbus controller
and PC based applications.
OPC uses the mechanisms provided by COM to implement
Sink
synchronous services (comparable to client/server) and
45
asynchronous services (comparable to publisher/subscriber). 46