Functional Diagram (SAMA) and Math Blocks
What Is a Functional Diagram, and How Does It Differ from a P&ID?
A functional diagram (the former SAMA method) shows a control loop at the function and algorithm level: which signal goes where and through which operation (summing, multiplication, PID, selection). A P&ID does not show these details; electrical wiring is shown on a separate wiring diagram. Functional diagrams are used for DCS configuration, control descriptions, and training; they are not drawn on the P&ID.
A functional diagram shows which blocks and operations signals pass through in a control loop, such as summing, selection, or PID. A P&ID shows process piping, equipment, and instruments, not the internal control algorithm or the electrical wiring diagram.
In everyday life
When cooking, a recipe tells you what order to mix the ingredients in and what steps to follow; this is similar to a functional diagram. A kitchen plumbing and layout plan is more like a P&ID, while a diagram of the wires for lights and outlets is a separate drawing.
On the job
In tank level control, a functional diagram shows the signal from the level transmitter LT going to the controller LIC, where PID is executed, with the output going to the control valve FV. The P&ID shows the tank, piping, LT, LIC, and FV in the loop, but does not show the details of the PID algorithm or the wiring.
Step by step
- The measurement signal from a device such as a level transmitter enters the control loop.
- The required blocks, such as summing, selection, or PID, are shown in sequence on the functional diagram.
- The output of each block is connected to the next block or to a final element such as a control valve.
- This logic is used for DCS configuration and for explaining or training on the control; the P&ID separately shows the process path and equipment.
Key rule: If you are asking, "What operation does the signal go through?" refer to the functional diagram; if you are asking, "Which equipment is connected to which pipe?" refer to the P&ID.
Measurement, input, and readout symbols in a functional diagram
In a functional diagram, the circle or shape for a measuring instrument, the input symbol, and the display (readout) symbol are taken from the same symbols used in P&IDs. Signal lines show the functional relationships; signal flow is usually top to bottom (vertical) or left to right (horizontal), and arrows indicate the direction.
In a functional diagram, measurement, input, and readout symbols come from the same family of symbols used in piping and instrumentation diagrams (P&IDs). A signal line shows where information comes from and where it goes; an arrow indicates the direction of signal flow.
In everyday life
Suppose you have a water tank at home: the float senses whether the water level is high or low, and the level indicator shows you the value. If you draw the information path on paper, an arrow shows that the reading goes from the sensor to the display.
On the job
In a functional diagram of a process tank, the LT-101 level transmitter symbol represents level measurement, and the display symbol identifies the readout. A signal line is drawn from LT-101 to the display, and an arrow indicates the direction of information transfer.
Step by step
- Place the measurement symbol beside or at the start of the information path.
- Use an input or display symbol to indicate where the signal is received or shown.
- Connect the symbols with a signal line.
- Usually draw the signal flow from top to bottom or from left to right, and indicate it with an arrow.
Key rule: The symbol tells you what function is performed; the arrow tells you which way the signal flows.
Symbols for One-, Two-, and Three-Mode Controllers
In a functional diagram, an automatic controller is shown as a rectangle containing the letters for its control actions (P, I, D): one-mode (P only or I only), two-mode (PI), and three-mode (PID). Lines connect the PV and SP inputs and the output to the final element or another controller. A discrete-device actuator (on/off) has a separate symbol.
In a functional diagram (SAMA), an automatic controller is shown as a rectangle, and the letters inside it indicate the type of control action: P or I for one-mode, PI for two-mode, and PID for three-mode. Lines connect the PV and SP inputs to the controller and its output to a final element or another controller; a discrete-device actuator has a separate symbol.
In everyday life
Suppose that while cooking, you read the temperature with a thermometer and compare it with the desired temperature. Based on the difference, you adjust the flame; a control diagram represents these inputs, the control action, and the output command using symbols and lines.
On the job
In a process unit, temperature transmitter TT-101 sends the measured temperature as PV to automatic controller TIC-101, and the target temperature SP is also provided to it. TIC-101 is shown as a rectangle marked P, PI, or PID, and its output is connected to the steam control valve (Control Valve) or to another controller; the symbol for an on/off motor actuator is separate.
Step by step
- Place the automatic controller rectangle in the diagram and write the required P, I, or D actions inside it.
- Connect the PV line from the measuring instrument and the SP line from the target-setting input to the controller.
- Connect the controller output by a line to the control valve or the next controller.
- If the command is for an on/off discrete device, use the discrete-device actuator symbol separately from the controller symbol.
Key rule: The letters P, I, and D inside the rectangle indicate the controller's control action; do not confuse the on/off actuator symbol with the controller symbol.
Final Element, Manual Processor, and Transfer Station
A control valve, with or without a positioner, has its own symbol. A manual processor marked A generates an adjustable signal (for example, a manual loader or manual SP), while T transfers the signal (manual/automatic switch). Following the lines reveals the signal path in manual and automatic modes.
In a SAMA functional diagram, the final-element symbol shows which device the control output goes to, such as a control valve with or without a positioner. The manual processor marked A generates the signal value, and T selects between the manual and automatic paths. Following the lines shows where the signal comes from and where it goes in each mode.
In everyday life
Imagine two ways to adjust shower water: you turn the valve yourself, or a device adjusts the temperature automatically. A mode switch selects one of these two methods, and in either case, the water valve is the device that ultimately changes the flow.
On the job
For temperature control of a tank, the adjustable manual output A and the output of automatic controller TIC-101 go to transfer station T. In manual or automatic mode, T passes one of them through. The selected signal goes to steam control valve TV-101; the valve symbol indicates whether it has a positioner.
Step by step
- Find the control valve symbol at the end of the path and check whether a positioner is shown.
- Follow the automatic controller output signal line to the input of T.
- Follow the adjustable manual signal A to the other input of T.
- Identify the mode selected at T and trace the output signal path to the control valve.
Key rule: To understand the control path, trace the lines backward from the control valve: T indicates which signal is selected, and A generates the manual signal.
Sum, Average, and Difference Blocks
Σ adds the inputs algebraically, Σ/n gives the average of the inputs, and Δ gives the difference between two inputs; for example, summing the flow rates of several branches to get the total flow rate, or averaging two temperature transmitters. The sign of each input (+ or −) is written beside its line, and a bias is a constant added with a + or − sign.
These math function blocks add, average, or subtract inputs according to the signs beside the lines. In a function diagram, each block's output is the result of that calculation; a bias is a constant value added to or subtracted from the input.
In everyday life
Suppose three people pool their money to buy a gift; the sum gives the total amount. To find the average amount per person, divide the total by three. The difference between two people's amounts is found by subtracting one from the other.
On the job
In a process unit, flow transmitters FT-101 and FT-102 are installed on two inlet branches to a common line; the Σ block adds their flow rates to obtain the total flow rate. To average the temperatures at two points, the Σ/n block averages the values from TT-201 and TT-202. The + or − sign beside each line specifies the sign with which the signal enters the calculation.
Step by step
- Measured signals, such as flow or temperature, are connected to the block inputs.
- Select the block type: Σ for summation, Σ/n for averaging, or Δ for the difference between two inputs.
- Specify the + or − sign beside each line; for a bias, add the constant value to the calculation with a + or − sign.
- Compare the output with the expected value, then send it to a display or the next block.
Key rule: Σ means algebraic sum, Σ/n means the sum divided by the number of inputs, and Δ means input 1 minus input 2.
Worked example
Two flow transmitters indicate 12 and 8 tonnes per hour, respectively. Calculate the total flow rate, the average, and the difference X1−X2.
- Sum: 12 + 8 = 20 tonnes per hour.
- Average: (12 + 8) ÷ 2 = 10 tonnes per hour.
- Difference: 12 − 8 = 4 tonnes per hour.
Answer: The total flow rate is 20 tonnes per hour, the average is 10 tonnes per hour, and the difference X1−X2 is 4 tonnes per hour.
Gain, Multiply, and Divide Blocks
K produces an output proportional to the input (gain). For a volume booster, a ratio of 1:1 or integer ratios such as 2:1 are used; × and ÷ multiply or divide two signals (for example, for pressure and temperature compensation in gas flow or for multiplying a ratio in ratio control); square-root and power blocks are used for the square root of a DP flow signal.
A Gain block makes the output proportional to the input: if K is 2, the output is twice the input. Multiply and divide blocks combine two signals, and a square-root block converts a signal proportional to differential pressure into a signal proportional to flow.
In everyday life
In a recipe written for 2 people, if you want to cook for 4, you multiply the quantity of each ingredient by 2; to find each person’s share, you divide the total quantity. This is similar to adjusting gain and multiplying or dividing signals.
On the job
In a gas line, suppose the ratio of additive injection to gas flow must remain constant. The multiply block multiplies the gas-flow signal by the configured ratio, and its output is the required additive flow. In differential-pressure flow measurement, the square-root block also converts the DP signal into a signal proportional to flow.
Step by step
- From the function diagram, identify the input signal and determine whether its scale needs to be changed or whether it needs to be combined with another signal.
- To change the scale proportionally, select a K block; to combine two signals, use a multiply or divide block.
- Set the gain or the block inputs. For a differential-pressure flowmeter, add a square-root block to the signal path if required.
- Check the calculated output using several test values and confirm that it is suitable for the control or measurement objective.
Key rule: K changes the scale of one signal; × and ÷ combine two signals; for flow proportional to DP, take the square root.
Worked example
In ratio control, the feed flow is 40% of the measurement range and the configured ratio is 1.25. What percentage will the multiply block output?
- Multiply the flow input by the configured ratio: 40 × 1.25.
- Both values are percentages, and this calculation gives the required value as a percentage of the same range.
Answer: The output is 50% of the measurement range.
Integral and Derivative Blocks in a Diagram
∫ produces an output proportional to the time integral of the input (with integral time TI), while d/dt produces an output proportional to the rate of change of the input (with derivative time TD); in a controller diagram, these blocks show what the controller does, and a flow totalizer (FQ) is also an integrator.
The integral block (∫) accumulates the input value over time, and its output depends on the integral time TI. The derivative block (d/dt) indicates how quickly the input is changing, and its output depends on the derivative time TD; in a functional diagram, these blocks show what the controller does.
In everyday life
Imagine you have opened a water tap: the flow rate tells you how quickly water is coming out, but integrating the flow rate over time tells you the total amount of water collected; this is the principle of integration. If the tap's flow rate suddenly increases, the derivative indicates how quickly the flow rate has changed.
On the job
On a tank inlet line, the flow transmitter FT sends the instantaneous flow rate, and the flow totalizer FQ accumulates the flow over time to determine the total volume passed; therefore, FQ acts as an integrator in the diagram. In the controller's functional diagram, the ∫ block accumulates the control error over time, and the d/dt block indicates the rate of change of that error.
Step by step
- An input signal, such as the control error or measured flow rate, enters the block.
- The ∫ block accumulates the input over time, and TI determines how quickly this accumulation takes effect.
- The d/dt block calculates the rate of change of the input, and TD determines the magnitude of the effect of this change.
- The block outputs go to the next part of the diagram and show how the controller processes the signal.
Key rule: ∫ depends on the input value and how long it lasts; d/dt depends on how quickly the input changes.
Worked example
The input to an integral block is 2%, TI is 4 minutes, and the input remains constant for 3 minutes; if the initial output is zero, how much does the output increase? Also, if the input rises from 10% to 16% over 2 minutes and TD is 0.5 minutes, what is the derivative block output?
- Integral: output increase = (1/TI) × input × duration.
- Integral output increase = (1/4 minutes) × 2% × 3 minutes = 1.5%.
- Derivative: input rate of change = (16% − 10%) ÷ 2 minutes = 3% per minute.
- Derivative output = TD × rate of change = 0.5 minutes × 3% per minute = 1.5%.
Answer: The integral block output increases by 1.5%, and the derivative block output for this rate of change is 1.5%.
Nonlinear Function, Time Function, and Rate Limiter
f(x) provides an output as a nonlinear function of the input, or according to a relationship defined in a note (valve characterization, tank table); f(t) is a time function (ramp program); a rate limiter allows the output to follow the input as long as its rate of change stays within the limit. Otherwise, it moves at the permitted rate until it catches up with the input (to prevent sudden changes in SP).
These are three types of mathematical functions in a functional diagram: f(x) converts the input according to a relationship that may be nonlinear, f(t) changes a value according to time, and a rate limiter prevents the output from changing too quickly.
In everyday life
You turn a water tap a little, but the flow rate does not necessarily increase in the same proportion; this is a nonlinear relationship. If you open the tap gradually to fill a glass, you are scheduling the change over time; a rate limiter also prevents the flow rate from increasing suddenly.
On the job
In a refinery, the f(x) block can apply the nonlinear characteristic of a control valve or a tank level-to-volume conversion table. The f(t) block can change the output according to a time schedule, such as a temperature ramp; a rate limiter converts a sudden change in the temperature controller's setpoint (SP) into a gradual increase.
Step by step
- Send the input signal to the nonlinear function block so it can be converted to the appropriate output according to the defined relationship or table.
- For a scheduled change, configure the time function so the output progresses over time according to the schedule.
- To limit the change, set the permitted rate and send the input to the rate limiter.
- If the input changes faster than the permitted limit, the output progresses at the permitted rate and follows the input again once the difference decreases.
Key rule: f(x) means “conversion based on the input value,” f(t) means “change based on time,” and a rate limiter means “following the input without changing faster than the permitted limit.”
Worked example
The temperature SP rises from 20 to 80 degrees Celsius, and the rate limiter is set to 2 degrees Celsius per minute. What is the output after 3 minutes?
- The requested change is 60 degrees, but the output can rise by a maximum of 2 degrees per minute.
- In 3 minutes, the output increases by 3 × 2 = 6 degrees.
- Starting from 20 degrees, the output reaches 26 degrees Celsius.
Answer: 26 degrees Celsius; the output will then continue at the same permitted rate until it reaches the SP of 80 degrees.
Signal Converter Block and Signal-Type Letters
A converter block indicates that the output signal type differs from the input signal type. The letters on each side identify the types: E for voltage, I for current, P for pneumatic, H for hydraulic, R for resistance, O for electromagnetic or sound, A for analog, B for binary, and D for digital; for example, I/P is a current-to-pneumatic converter, and A/D is an analog-to-digital converter.
A signal converter block indicates that the output signal type differs from the input signal type. The letters on the left identify the input type, and the letters on the right identify the output type: E is voltage, I is current, P is pneumatic, H is hydraulic, R is resistance, O is electromagnetic or sound, A is analog, B is binary, and D is digital.
In everyday life
Suppose a device works only with cash, but you have a bank card; a converter changes the card into a form the device can use. In a converter designation such as I/P, the first letter identifies the type of signal going in, and the second identifies the type coming out.
On the job
In a process unit, the controller's analog current output goes to the input of an I/P converter, which converts it to pneumatic air pressure. This pressure reaches the pneumatic actuator of the control valve and changes the valve position.
Step by step
- On the functional diagram, place the converter block in the input and output signal path.
- Read the letter on the left as the input signal type and the letter on the right as the output signal type.
- For example, I/P means a current signal enters and a pneumatic signal leaves.
- Match the connections to the input and output types of the actual equipment so the signal path is read correctly.
Key rule: Read the letters from left to right: the first letter is the input, and the second is the output.
Upper and Lower Limits, Selector, and Transfer
An upper- or lower-limit block changes its output or state when the input reaches the limit (alarm or limiter); a three-state mode applies to values outside either limit. A high selector (>) or low selector (<) passes the greater or smaller input, respectively (for example, selecting the lower of two controller outputs to protect a compressor); a transfer block (T) passes the input selected by an external signal.
Upper- and lower-limit blocks can limit a signal or change the alarm state when the value crosses a threshold. A high selector passes the highest input, and a low selector passes the lowest input; a transfer block uses an external command to determine which input passes through.
In everyday life
Suppose two people suggest different times for a task: a high selector chooses the later time, and a low selector chooses the earlier one. If you do not want the time to exceed a set maximum, an upper limit restricts it; a transfer command works like a switch that selects which person's suggestion to use.
On the job
In a compressor, a low-selector block can compare the outputs of two controllers, according to the design logic, and send the lower value to the control valve command input on the return line. An upper-limit block can prevent the command from exceeding its configured maximum, and an upper- or lower-limit monitoring block can change the alarm state when the measured signal reaches the threshold.
Step by step
- Connect the input signals to the appropriate block and specify the limits or inputs to be compared.
- An upper-limit block compares the input value with the maximum, while a lower-limit block compares it with the minimum.
- A high or low selector passes the highest or lowest input, respectively.
- A transfer block uses an external command to select one of its inputs for the output.
Key rule: Limits constrain or monitor values; a selector compares values, while a transfer block selects based on an external command.
Worked example
The command input is 92% and the upper limit is set to 80%; what percentage is the upper-limit block output?
- The upper-limit block passes the lower of the input value and the maximum.
- The lower value of 92% and 80% is 80%.
Answer: The output is 80%; the command does not exceed the upper limit.