Foundation fieldbus technology


Published on

Published in: Technology, Business

Foundation fieldbus technology

  1. 1. Communication Model FOUNDATION fieldbus H1 technology consists of: 1) The Physical Layer. 2) The Communication Stack. 3) The User Application Layer.•The fieldbus does not use OSI layers 3, 4, 5 and 6.•The Fieldbus Access Sublayer (FAS) maps the FMS onto the DLL.•The User Application is not defined by the OSI model.•The Fieldbus Foundation has specified a User Application model,significantly differentiating it from other models.
  2. 2. Each layer in the communication system is responsible for a portion of themessage that is transmitted on the fieldbus.
  3. 3. User LayerThe user layer provides the interface for user interaction with the system.The user layer uses the device description to tell the host system aboutdevice capabilities.The user layer defines blocks and objects that represent the functions anddata available in a device.Rather than interfacing to a device through a set of commands, like mostcommunication protocols, FOUNDATION Fieldbus lets you interact withdevices through a set of blocks and objects that define device capabilitiesin a standardized way.The user layer for one device consists of the resource block, and one ormore transducer blocks and function blocks.
  4. 4. User Application – BlocksThe Fieldbus Foundation has defined a standard User ApplicationLayer based on Blocks.Blocks are representations of different types of application functions.The three types of blocks are the resource block, transducer block, andfunction block.Blocks can be thought of as processing units.They can have inputs, settings to adjust behavior, and an algorithmwhich they run to produce outputs.They also know how to communicate with other blocks.
  5. 5. Devices are configured using Resource Blocks and Transducer Blocks.The control strategy is built using Function Blocks.
  6. 6. Resource BlockThe Resource Block describes characteristics of the fieldbus device such as thedevice name, manufacturer, and serial number.There is only one Resource Block in a device.Function BlockFunction Blocks (FB) provide the control system behavior.The input and output parameters of Function Blocks can be linked over thefieldbus.The execution of each Function Block is precisely scheduled.There can be many function blocks in a single User Application.Transducer BlocksLike the Resource Block, the Transducer Blocks are used to configure devices.Transducer Blocks decouple Function Blocks from the local input/output functionsrequired to read sensors and command output hardware.They contain information such as calibration date and sensor type.
  7. 7. Function blocks provide the control and I/O behavior.Usually, a device has a set of functions it can perform.These functions are represented as function blockswithin the device.A function block can be thought of as a processing unit.Function blocks are used as building blocks in definingthe monitoring and control application.The Fieldbus Foundation has defined sets of standardFunction Blocks.
  8. 8. Ten standard Function Blocks for basic control. Function Block Name Symbol Analog Input AI Analog Output AO Bias/Gain BG Control Selector CS Discrete Input DI Discrete Output DO Manual Loader ML Proportional/Derivative PD Proportional/Integral/Derivative PID Ratio RA
  9. 9. Another standard Function Blocks for basic control. Function Block Name Symbol Device Control DC Output Splitter OS Signal Characterizer SC Lead Lag LL Deadtime DT Integrator (Totalizer) ITSetpoint Ramp Generator SPG Input Selector IS Arithmetic AR Timer TMR Analog Alarm AAL Multiple Analog Input MAI Multiple Analog Output MAO Multiple Discrete Input MDIMultiple Discrete Output MDO
  10. 10. The flexible Function Block (FFB) is a user defined block.The FFB allows a manufacturer or user to define block parameters andalgorithms to suit an application that interoperates with standard functionblocks and host systems.
  11. 11. AI (Analog Input)The AI block reads data from a single analog input channel.This block performs simple filtering and scaling of the rawdata to engineering units from the input channel andsupports limit alarming.AO (Analog Output)The AO block writes data to an analog output channel.This block supports cascade initialization to allow upstreamcontrol blocks to switch smoothly from manual to automaticmode.It also has a faultstate behavior that allows the block to reactif communications fail between itself and the upstream block.
  12. 12. PID (Proportional–Integral–Derivative)The PID block implements a PID control algorithm.In Fieldbus, a PID block must be connected to an upstream block (suchas an AI block) and a downstream block (such as an AO block) before itcan be used for control.DI (Discrete Input)The DI block reads data from discrete input channels.This block performs simple filtering and processing of the raw data fromthe input channel and supports limit alarming.DO (Discrete Output)The DO block writes to a discrete output channel.This block supports cascade initialization to allow upstream control blocksto determine the current state of the process before assuming control.It also has a faultstate behavior that allows the block to react ifcommunications fail between itself and the upstream block.
  13. 13. Function Block ParametersYou can change the behavior of a block by changing the settings of itsparameters.Function block parameters are classified as follows:• Input parameters receive data from another block.• Output parameters send data to another block.• Contained parameters do not receive or send data; they are containedwithin the block.Some parameters contain multiple settings called fields.A common output parameter for many function blocks is OUT.•OUT is not just a value.•It also contains information about the status of that value—whether it isgood or questionable.•The OUT parameter actually consists of two fields, VALUE and STATUS.
  14. 14. Function BlockApplicationsThe function block application is like a program that you download toyour device for it to execute.How you create a function block application depends on the configurationsoftware you are using.In a Configurator, the inputs and outputs of the function blocks are wiredtogether in graphical format to create the control strategy.A Configurator also automatically creates an execution schedule for thefunction blocks.You then download the entire configuration to the device, including thefunction block application and schedule.When this is done, the device can begin executing the function blocksaccording to the schedule.
  15. 15. Function Block ModesThe most common modes are Automatic (Auto), Cascade (Cas), Manual(Man), and Out Of Service (OOS).• In Automatic mode, the block is using a local setpoint value in the normalblock algorithm to determine the output value.• In Cascade mode, the block is receiving its setpoint value from anotherfunction block for use in the normal block algorithm to determine the outputvalue.• In Out Of Service mode, the block is not running at all. Normally, this modeis used during block configuration. Also, some devices require that thefunction block be in Out Of Service mode when changing certainparameters.• In Manual mode, the block output is not being calculated by the normalblock algorithm. The operator writes the output of the block directly.
  16. 16. LoopsA loop (or control loop) is a group of function blocks connected bylinkages executing at a configured rate.Each block executes at the configured rate and data moves across thelinkages between the blocks at the configured rate.It is possible to have multiple loops running at different rates on a link.Even if loops are running at different rates, they can send each otherdata through linkages.All loops on a link run within one macrocycle.A macrocycle is the least common multiple of all the loop times on agiven link.
  17. 17. LinkagesThe function blocks configured to control a process are linked, or connectedby configuration objects inside the devices.These linkages allow you to send data from one block to another.A linkage is different from a link:A link is a physical wire pair that connects devices on a Fieldbus network.A linkage is a logical connection that connects two function blocks.
  18. 18. Example:A simple temperature transmitter may contain an AI function block.A control valve might contain a PID function block as well as the expectedAO block.Thus, a complete control loop can be built using only a simple transmitter and acontrol valve.
  19. 19. ObjectsIn addition to the blocks described, the user layer of a FOUNDATIONFieldbus device contains other types of objects.Objects are defined by the FOUNDATION Fieldbus specification as partof the function block application structure.Link Objects define the links between Function Block inputs and outputs internal tothe device and across the fieldbus network.Trend Objects allow local trending of function block parameters for access byhosts or other devices.Alert Objects allow reporting of alarms and events on the fieldbus.Multi-Variable Container (MVC) Object serves to “encapsulate” multiple FunctionBlock parameters in order to optimize communications for Publishing-Subscriberand Report Distribution transactions. It has a user-configured list to define therequired parameters, whose data values are referenced in a variable list.
  20. 20. View ObjectsThey are predefined groupings of block parameter sets that can bedisplayed by the human/machine interface.They allow efficient communication of common groups of parameters. Thisprovides easy access to the parameters for HMI packages.View objects ease tasks such as loop tuning and configuration changes.There are four standard views defined by the FOUNDATION Fieldbusfunction block specification for each type of block.The specification includes which parameters are contained in each view.•VIEW_1 contains the main dynamic parameters.•VIEW_2 contains the main static parameters relevant to the process.•VIEW_3 contains the parameters from VIEW_1 and additional dynamicparameters.•VIEW_4 contains other static parameters, including configuration andmaintenance parameters.
  21. 21. Fieldbus Device Definition•The fieldbus device definition is intended for remote I/Odevices having many function blocks from which data shall becommunicated.•The function of a fieldbus device is determined by thearrangement and interconnection of blocks.•The device functions are made visible to the fieldbuscommunication system through the User Application VirtualField Device (VFD).•The header of the User Application object dictionary points toa Directory which is always the first entry in the function blockapplication.
  22. 22. Fieldbus Device Definition•The Directory provides the starting indexes of all of the other entries used in•the Function Block application.•The VFD object descriptions and their associated data are accessed remotely overthe fieldbus network using Virtual Communication Relationships (VCRs).•Each block has a “Profile” (i.e. a code) that indicates the type of block.•Based on this code a host can tell if a block is a standard block, an enhancedblock or a manufacturer custom block.•The engineering tool can now build a control strategy completely independent ofthe device you will eventually use. The process engineer can build the controlstrategy and then let the instrument engineers assign the blocks to devices later.•The graphical FOUNDATION function block diagram programming language isused to configure control strategies.
  23. 23. Function Block Scheduling•A schedule building tool is used to generate function block and Link ActiveScheduler (LAS) schedules.•As an example, assume that the schedule building tool has built thefollowing schedules for the loop previously described.•The schedules contain the start time offset from the beginning of the“absolute link schedule start time.”•The absolute link schedule start time is known by all devices on thefieldbus.•A “macrocycle” is a single iteration of a schedule within a device.•On the HSE fieldbus the function blocks execute as described but, sincethere is no LAS, the communication is immediate instead of scheduled
  24. 24. Application Clock Distribution•FOUNDATION fieldbus supports an application clock distribution function.•The application clock is usually set equal to the local time of day or to Universal•Coordinated Time.•System Management has a time publisher which periodically sends anapplication clock synchronization message to all fieldbus devices.•The data link scheduling time is sampled and sent with the application clockmessage so that the receiving devices can adjust their local application time.•Between synchronization messages, application clock time is independentlymaintained in each device based on its own internal clock.•Application Clock synchronization allows the devices to time stamp datathroughout the fieldbus network.•If there are backup application clock publishers on the fieldbus, a backuppublisher will become active if the currently active time publisher should fail.
  25. 25. Device AddressAssignmentEvery fieldbus device must have a unique network address and physical devicetag for the fieldbus to operate properly.To avoid the need for address switches on the instruments, assignment ofnetwork addresses can be performed by configuration tools using SystemManagement services.The sequence for assigning a network address to a new device is as follows:• An unconfigured device will join the network at one of four special defaultaddresses.• A configuration tool will assign a physical device tag to the new device usingSystem Management services.• A configuration tool will choose an unused permanent address and assign thisto the device using System Management services.• The sequence is repeated for all devices that enter the network at a defaultaddress.• Device store the physical device tag and node address in non-volatilememory, so the device will retain these settings after a power failure.
  26. 26. Find Tag Service•For the convenience of host systems and portable maintenancedevice, System Management supports a service for finding devices orvariables by a tag search.•The “find tag query” message is broadcast to all fieldbus devices.•Upon receipt of the message, each device searches its Virtual FieldDevices (VFD) for the requested tag and returns complete pathinformation (if the tag is found) including: The network address. VFD number. Virtual communication relationship (VCR) index. Object dictionary (OD) index.•Once the path is known, the host or maintenance device can access thedata for the tag.
  27. 27. Device Descriptions•A device is supplied with three device support files: two Device Description Files. One Capability File.•A critical characteristic required of fieldbus devices is interoperability.•To achieve interoperability, Device Description (DD) technology is used in additionto standard function block parameter and behavior definitions.•DDs are platform and operating system independent.•The DD provides an extended description of each object in the Virtual Field Device(VFD).•The DD provides information needed for a control system or host to understandthe meaning of the data in the VFD including the human interface for functions suchas calibration and diagnostics.•Thus, the DD can be thought of as a “driver” for the device.
  28. 28. Device Description Tokenizerin a standardized programming language•The DD is writtenknown as Device Description Language (DDL).•A PC-based tool called the “Tokenizer” converts DD sourceinput files into DD output files by replacing key words andstandard strings in the source file with fixed “tokens”.•The Fieldbus Foundation (FF) provides DDs for all standardResource, Function and Transducer Blocks.•Device suppliers build a DD by importing the Standard DDs.•Suppliers may also add supplier specific features such ascalibration and diagnostic procedures to their devices.
  29. 29. Device Description Services (DDS) side, library functions called Device Description•On the hostServices (DDS) are used to read the device descriptions.•Note that DDS reads descriptions, not operational values.•The operational values are read from the fieldbus deviceover the fieldbus using FMS communication services.•New devices are added to the fieldbus by simplyconnecting the device to the fieldbus wire and providing thecontrol system or host with the DD for the new device.•DDS technology allows operation of devices from differentsuppliers on the same fieldbus with only one version of thehost human interface program.
  30. 30. Device Description HierarchyThe Fieldbus Foundation has defined a hierarchy of DeviceDescriptions (DD) to make it easier to build devices and performsystem configuration.•The first level in the hierarchy is referred to as UniversalParameters. Universal Parameters consist of common attributes such as Tag, Revision, Mode, etc. All blocks must include the Universal Parameters.•The next level in the hierarchy is Function Block Parameters. At this level, parameters are defined for the standard Function Blocks. Parameters for the standard Resource Block are also defined at this level.
  31. 31. •The third level is called Transducer Block Parameters. At this level, parameters are defined for the standard Transducer Blocks. In some cases, the transducer block specification may add parameters to the standard Resource Block.The Fieldbus Foundation has written the Device Descriptions forthe first three layers of the hierarchy. These are the standardFieldbusFoundation DDs.•The fourth level of the hierarchy is called Manufacturer SpecificParameters. At this level,each manufacturer is free to add additional parameters to the Function Block Parameters and Transducer Block Parameters.
  32. 32. Capability Files•The Capability File tells the host what resources the devicehas in terms of function blocks and VCRs, etc.•This allows the host to configure for the device even if notconnected to it.•The host can ensure that only functions supported by thedevice are allocated to it, and that other resources are notexceeded.
  33. 33. H1 Communication Stack
  34. 34. The Data Link Layer (DLL)•It controls transmission of messages onto the fieldbus.•It manages access to the fieldbus through adeterministic centralized bus scheduler called the LinkActive Scheduler (LAS).•The DLL is a subset of the approved IEC standard.
  35. 35. Device TypesTwo types of devices are defined in the DLL specification:• Basic Device It does not have the capability to become the LAS.• Link Master It devices is capable of becoming the Link Active Scheduler (LAS).
  36. 36. ScheduledCommunication1. The Link Active Scheduler (LAS) has a list of transmit times for all data buffers in all devices that need to be cyclically transmitted.2. When it is time for a device to send a buffer, the LAS issues a Compel Data (CD) message to the device.3. Upon receipt of the CD, the device broadcasts or “publishes” the data in the buffer to all devices on the fieldbus.4. Any device configured to receive the data is called a “subscriber”.5. Scheduled data transfers are typically used for the regular, cyclic transfer of control loop data between devices on the fieldbus.
  37. 37. UnscheduledCommunication•All of the devices on the fieldbus are given a chance tosend “unscheduled” messages between transmissions ofscheduled messages.•The LAS grants permission to a device to use the fieldbusby issuing a pass token (PT) message to the device.•When the device receives the PT, it is allowed to sendmessages until it has finished or until the “delegated tokenhold time” has expired, whichever is the shorter time.
  38. 38. Link Active SchedulerOperation LAS is shown:The algorithm used by the
  39. 39. CD ScheduleThe CD Schedule contains a list of activities that arescheduled to occur on a cyclic basis.1. At precisely the scheduled time, the LAS sends a Compel Data (CD) message to a specific data buffer in a fieldbus device.2. The device immediately broadcasts or “publishes” a message to all devices on the fieldbus.This is the highest priority activity performed by the LAS.The remaining operations are performed betweenscheduled transfers.
  40. 40. Live List Maintenance•The list of all devices that are properly responding to thePass Token (PT) is called the “Live List.”•New devices may be added to the fieldbus at any time.•The LAS periodically sends Probe Node (PN) messages tothe addresses not in the Live List.•If a device is present at the address and receives the PN, itimmediately returns a Probe Response (PR) message.•If the device answers with a PR, the LAS adds the device tothe Live List and confirms its addition by sending the device aNode Activation message.
  41. 41. •The LAS is required to probe at least one address after it hascompleted a cycle of sending PTs to all devices in the LiveList.•The device will remain in the Live List as long as it respondsproperly to the PTs sent from the LAS.•The LAS will remove a device from the Live List if the devicedoes not either use the token or immediately return it to theLAS after three successive tries.•Whenever a device is added or removed from the Live List,the LAS broadcasts changes to the Live List to all devices.•This allows each Link Master device to maintain a currentcopy of the Live List.
  42. 42. Data Link Time Synchronization•The LAS periodically broadcasts a Time Distribution (TD) message on thefieldbus so that all devices have exactly the same data link time.•Scheduled communications on the fieldbus and scheduled function blockexecutions in the User Application are based on information obtained fromthese messages.Token Passing•The LAS sends a Pass Token (PT) message to all devices in the Live List.•The device is allowed to transmit unscheduled messages when itreceives the PT.LAS Redundancy•A fieldbus may have multiple Link Masters.•If the current LAS fails, one of the Link Masters will become the LAS andthe operation of the fieldbus will continue.•The fieldbus is designed to “fail operational.”
  43. 43. System ManagementFunction Blocks must execute at precisely defined intervals and in the propersequence for correct control system operation.System management synchronizes execution of the Function Blocks to a commontime clock shared by all devices.System management also handles other important system features such aspublication of the time of day to all devices, including automatic switchover to aredundant time publisher and searching for parameter names or “tags” on thefieldbus.Fieldbus devices do not use jumpers or switches to configure addresses.Device addresses are set by configuration tools using System Managementservices.All of the configuration information needed by System Management such as theFunction Block schedule is described by object descriptions in the Network andSystem Management Virtual Field Device (VFD).This VFD provides access to the System Management information Base (SMIB),and also to the Network Management Information Base (NMIB).
  44. 44. Fieldbus Access Sublayer (FAS)•The FAS uses the scheduled and unscheduled features of the Data LinkLayer to provide a service for the Fieldbus Message Specification (FMS).•The types of FAS services are described by Virtual CommunicationRelationships (VCR).•The VCR is like the speed dial feature on your memory telephone. There are many digits to dial for an international call such as international access code, country code, city code, exchange code and, finally, the specific telephone number. This information only needs to be entered once and then a “speed dial number” is assigned.•Just as there are different types of telephone calls such as person toperson, collect, or conference calls, there are different types of VCRs.
  45. 45. VCR
  46. 46. Client/Server VCR TypeThe Client/Server VCR Type is used for queued, unscheduled, user initiated,one to one, communication between devices on the fieldbus.Queued means that messages are sent and received in the order submitted fortransmission, according to their priority, without overwriting previous messages.When a device receives a Pass Token (PT) from the LAS, it may send a requestmessage to another device on the fieldbus.The requester is called the “Client” and the device that received the request iscalled the “Server.”The Server sends the response when it receives a PT from the LAS.The Client/Server VCR Type is used for operator initiated requests such assetpoint changes, tuning parameter access and change, alarm acknowledge,and device upload and download.
  47. 47. Report Distribution VCRTypeThe Report Distribution VCR Type is used forqueued, unscheduled, user initiated, and one-to many communications.When a device with an event or a trend report receives a PT from theLAS, it sends its message to a “group address” defined for its VCR.Devices that are configured to listen for that VCR will receive thereport.The Report Distribution VCR Type is typically used by fieldbus devicesto send alarm notifications to the operator consoles.
  48. 48. Publisher/Subscriber VCR TypeThe Publisher/Subscriber VCR Type is used for buffered, one-to-manycommunications.Buffered means that only the latest version of the data is maintained withinthe network. New data completely overwrites previous data.When a device receives the Compel Data (CD), the device will “Publish” orbroadcast its message to all devices on the fieldbus.Devices that wish to receive the Published message are called“Subscribers.”The CD may be scheduled in the LAS, or it may be sent by Subscribers onan unscheduled basis.The Publisher/Subscriber VCR Type is used by the field devices forcyclic, scheduled, publishing of User Application function block input andoutputs such as Process Variable (PV) and Primary Output (OUT) on thefieldbus.
  49. 49. Fieldbus Message Specification(FMS)Fieldbus Message Specification (FMS) services allow user applications to sendmessages to each other across the fieldbus using a standard set of messageformats.FMS describes the communication services, message formats, and protocolbehavior needed to build messages for the User Application.
  50. 50. Data that is communicated over the fieldbus is described by an “objectdescription.” Object descriptions are collected together in a structure called an “Object Dictionary” (OD).The object description is identified by its “index” in the OD. Index0, called the object dictionary header, provides a description of thedictionary itself, and defines the first index for the object descriptionsof the User Application. The User Application object descriptions can start at any index above 255. Index 255 and below define standard data types.
  51. 51. Virtual Field Device (VFD)•A “Virtual Field Device” (VFD) is used to remotely view local device datadescribed in the object dictionary.•A typical device will have at least two VFDs.•Network Management is part of the Network and System ManagementApplication. It provides for the configuration of the communication stack.•The Virtual Field Device (VFD) used for Network Management is alsoused for System Management.•This VFD provides access to the Network Management InformationBase (NMIB) and to the System Management Information Base (SMIB). NMIB data includes Virtual Communication Relationships (VCR), dynamic variables, statistics, and Link Active Scheduler (LAS) schedules (if the device is a Link Master). SMIB data includes device tag and address information, and schedules for function block execution.
  52. 52. FMS Services•FMS provides services to access FMS objects.Variable AccessA variable is storage of data.Event ManagementEvent is used to notify that an application detects something important.Domain ManagementDomain is a continuous memory area. It may be a program area or data area. AClient can download data to a domain or upload domain content through FMSservices.Program InvocationProgram is a data processing functionality that can be managed from otherapplications. It was modeled for PLC ladder programs and can be used forFunction Block Applications.Other ServicesFMS provides other services for Object Dictionary and Context management. Aconnection between applications is managed though Context.
  53. 53. H1 Physical Layer (31.25kbit/s)•The Physical Layer is defined by approved standards fromthe International Electrotechnical Commission (IEC) and ISA(the international society for measurement and control).•The Physical Layer receives messages from thecommunication stack and converts the messages intophysical signals on the fieldbus transmission medium andvice-versa.•Conversion tasks include adding and removingpreambles, start delimiters, and end delimiters.
  54. 54. •Fieldbus signals are encoded using the well-known Manchester Biphase-Ltechnique.•The signal is called “synchronous serial” because the clock information isembedded in the serial data stream. Data is combined with the clock signal tocreate the fieldbus signal.•The receiver of the fieldbus signal interprets a positive transition in the middleof a bit time as a logical “0” and a negative transition as a logical “1”.•Special characters are defined for the preamble, start delimiter, and enddelimiter. The preamble is used by the receiver to synchronize its internal clock with the incoming fieldbus signal. Special N+ and N- codes are in the start delimiter and end delimiter. Note that the N+ and N- signals do not transition in the middle of a bit time.•The receiver uses the start delimiter to find the beginning of a fieldbusmessage.•After it finds the start delimiter, the receiver accepts data until the enddelimiter is received.
  55. 55. 31.25 kbit/s FieldbusSignaling delivers ±10 mA at 31.25 kbit/s into a 50 ohm•The transmitting deviceequivalent load to create a 1.0 volt peak-to-peak voltage modulated ontop of the direct current (DC) supply voltage.•The DC supply voltage can range from 9 to 32 volts.•However, for Intrinsically Safe (I.S.) applications, the allowed powersupply voltage depends on the barrier rating.•31.25 kbit/s devices can be powered directly from the fieldbus and canoperate on wiring previously used for 4-20 mA devices.•The 31.25 kbit/s fieldbus also supports I.S. fieldbuses with bus powereddevices.•To accomplish this, an I.S. barrier is placed between the power supplyin the safe area and the I.S. device in the hazardous area.
  56. 56. 31.25 kbit/s FieldbusWiring•The 31.25 kbit/s fieldbus allows stubs or “spurs”.•The length of the fieldbus is determined by thecommunication rate, cable type, wire size, bus poweroption, and I.S. option.•The number of devices possible on a fieldbus link dependson factors such as the power consumption of eachdevice, the type of cable used, use of repeaters, etc.•The number of network addresses available for each link is240.