Setup of Operations in Accord Builder
Operations are used to perform mathematical or sequence functions in the program. An Operation is added to the program by dragging the Operation icon from the toolbox to the program and configuring the Operation or by right-click and Add on the Operation holder.
Inserting an Operation:
An Operation is added to the program by dragging the Operation icon (in red square) from the toolbox to the program Operation component holder, or by right clicking on the holder and “Add Operation”
An Operation may also be copied from another Operation (Right-Click, Copy and give new name) in the same program. The type of Operation and other elements are then configured.
1. Mathematical type using two Operands
- Addition: – Add the values of two operands and write to a target register
- Subtraction: – Subtract the value of one operand from another and write to a target register
- Multiplication – Multiply the values of two operands and write to a target register
- Division: – Divide the value of one operand by another and write to a target register
These use operands of types Variables, Setpoints, or Scaled values of Analog Inputs or Analog Devices.
In the example the ‘Constant 5’ is subtracted from the setpoint ‘Supply Temperature Target SP’ and this offset is written to the variable ‘Supply Temperature Low SP’
The Operation is enabled when the Steam Supply solenoid is Active
The Operation is carried out when the Program is in Hold or Alarm.
2. Mathematical types using one Operand
Using Value of one operands of type Variables, Setpoints, or Scaled values of Analog Inputs or Analog Devices.
- Assignment: – write operand value to a target register
- Absolute Value: ( Modulus) – write absolute value of the operand value to a target register
- Square: – write the square of the operand value to a target register
- Square Root: – write the square root of the operand value to a target register
- Exponential: – write exponent of an operand value to a target register
- Logarithmic: – write natural log of an operand to a target register
- Sine: write the Sine of an operand to a target register
- Cosine: write the Cosine of an operand to a target register
- Tan: write the Sine of an operand to a target register
- Arc Sine: write the Arc Sine of an operand to a target register
- Arc Cosine: write the Arc Cosine of an operand to a target register
- Arc Tan: write the Arc Tan of an operand to a target register
- Average: write the Average of a number of samples of an operand to a target register
- Periodic Value Change: Increment or Decrement a target register by an operand value periodically
In the example the Setpoint ‘VSD 01 Loop Speed Setpoint’ is written to the Analog Device ‘VSD 01 CIP Supply Pump’.
The operation is carried out when the Motor P01 CIP Supply Pump is activated.
The Operation is not carried out when the Program is in Hold or Alarm.
3. Program Operations
These operations are used to send commands to other programs
- Program Start (or Restart): – Starts a target Program, or Restarts from Hold State
- Program Stop (End): – Ends a target Program
- Program Step On: – Puts a target Program into a selected Step
- Program Hold: – Puts a target program into Hold state.
- Program Time Hold: – Puts a target program into Time Hold state.
- Program Time Hold Release: – Restarts Timing of a target program.
Care must be taken to ensure correct operation when writing to other programs.
4. Set and Reset Operations
These operations are used to set a Condition Result or an Auto Activation or Alarm
- Set Item: – Sets a Condition Result or an Auto Activation or Alarm to True
- ReSet Item: – Resets a Condition Result or an Auto Activation or Alarm to False
Operation Type, Operand, Target and Enabler Selection
The Operation is configured by selecting one of the Types above. The appropriate operation panel will appear, allowing selection of the required operands, target and enablers.
For Mathematical type operations:
Operand Types are Setpoints, Variables, Constants, Analog Input and Analog Output Engineering (scaled) Values
Target Types are Variables and Analog Devices and PID Loop Setpoints and PID Loop Gain, Integral and Derivative settings.
For Program type operations:
there are no Operands required for this type of operation.
Target Types are Program Names and Program Steps and Program Commands.
For Periodic Value Change operations:
Operand 1 and Target must be the same item and the available Type is Variable
Operand 2 Type may only be a Setpoint,
For Average Value operations:
Operand 1 may be a Variable, or an Analog Input or an Analog Device
The Target is always a Variable type.
In addition a further configuration area allows selection of the Time Period type for sampling as Seconds or Minutes and the Repeat Interval of the Time Period selected and the Number of Samples to read for the Average.
In the example the Analog Input ‘TT03 Return Temperature’ is sampled every 10 seconds and an Average is generated for 20 samples and this average is written to the Variable ‘Average Return Temperature’
For Set and Reset type operations:
there are no Operands required for this type of operation.
Target Types are Condition Result, Combined Condition Results, Automatic Digital Device Activation, Alarm Results and Decision Results.
Common aspects for all types of operations:
‘Active in Hold/Alarm: Every Operation can be selected to be ‘Active in Hold/Alarm;. This is used to stop the Operation from processing if the Program is Paused (Held) by the operator or if a Critical Alarm occurs, as Critical Alarms also puts the Program into Hold.
Operation Activation Rule:
Always during Step: The operation is processed during the Step, (depending on Program Status ‘Active in Hold/Alarm selection)
Step Start: – The Operation is processed only at the Start of a Step, first PLC Scan of the Step
Step End: – The Operation is processed only at the End of a Step, last PLC Scan of the Step
Conditional: The processing of the Operation is dependent on a status
If this is selected then the Enabler Type and Enabler Item may be selected from Drop Down menus.
The Enabler Types are
- Combined Condition
- Digital input
- Analog High High Alarm
- Analog High Alarm
- Analog Low Alarm
- Analog Low Low Alarm
- Step time; where the configured step time has elapsed.
- Valves Activated / Deactivated
- Motors Activated / Deactivated
- Digital Outputs
- Valve Alarm
- Motor Alarm
- Unit Selected
- Unit in Maintenance
- Unit in Manual
- Analog WireBreak
The above items can be used in a true or false state where appropriate.
Short Description: To provide a basic one-line description of the Operation, which will be used in Documents.
A field for full description of the Alarm is provided also. Text entered here will be used in documentation.
Enabling an Operation in Steps
The Operation is enabled for required Steps in the ‘Usage in Steps’ Tab.
Here the Steps not using the Operation are listed on the left and the Steps that the Operationis enabled in are on the right. An Operation is added to a Step by clicking on the step in the left hand panel and clicking Add. Also, an Operation may be removed from a step by clicking on Step in the right hand panel and clicking the Remove button.
Add All and Remove All are provided also,
An Alarm may also be added to a Step in the Step configuration, where there is a tab field for Alarms.