ABB Drives: Application Guide Adaptive Program
ABB Drives: Application Guide Adaptive Program
Table of Contents
Table of Contents Introduction to the guide Chapter overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Safety instructions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Reader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Related publications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Adaptive Program Chapter overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 What is the Adaptive Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 How to build the program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 How to connect the program to the drive application . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 How to control the execution of the program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 Function blocks Chapter overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Block inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Parameter value as an integer input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How the block handles the input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How to select the input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Constant as an integer input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How to set and connect the input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Parameter value as a boolean input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How the block handles the input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How to select the input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Constant as a boolean input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How to set and connect the input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . String input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . How to select the input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Function blocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ABS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ADD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . AND . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . BITWISE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . COMPARE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . COUNT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . DPOT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 13 13 14 14 14 15 15 16 16 16 17 17 17 17 18 18 18 18 19 19 20 21 7 7 7 7 7 8
Table of Contents
EVENT . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . FILTER . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MASK-SET . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MAX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MIN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MULDIV . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . NO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . OR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PI-BAL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . PI-BIPOLAR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RAMP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SWITCH-B . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SWITCH-I . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . TOFF . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . TON . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . TRIGG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . XOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Actual signals and parameters in ACS800 Standard Application Program
21 21 22 22 23 23 23 23 24 24 25 25 27 27 28 28 29 29 30
Table of Contents
Compatibility
The guide complies with the drive application programs in which the Adaptive Programming features are included.
Safety instructions
Follow all safety instructions delivered with the drive. Read the complete safety instructions before you install, commission or use the drive. The complete safety instructions are given at the beginning of the Hardware Manual. Read the software function specific warnings and notes before changing the default settings of the function. For each function, the warnings and notes are given in the Firmware Manual in the subsection describing the related useradjustable parameters.
Reader
The reader of the manual is expected to: know the standard electrical wiring practices, electronic components and electrical schematic symbols. have no experience or training in installing, operating or servicing of ABB drives.
Use
The guide is to be used together with the firmware manual of the drive application program. The firmware manual contains the basic information on the drive parameters including the parameters of the Adaptive Program. The guide gives more detailed information on the Adaptive Program: what the Adaptive Program is how to build a program how the function blocks operate how to document the program the parameters and actual signals of ACS800 Standard Application Program essential for the Adaptive Program.
Related publications
The user documentation of the drive also includes: Firmware manual (the appropriate manual is delivered with the unit) Hardware manual (the appropriate manual is delivered with the unit) Guides/supplements for the optional equipment and programs (appropriate manuals are included in the delivery).
Adaptive Program
Chapter overview
The chapter describes the basics of the Adaptive Program and instructs in building a program.
Adaptive Program
10
The figure shows the use of Block Parameter Set 1 in the ACS800 Standard Application Program (parameters 84.05 to 84.09): - Parameter 84.05 selects the function block type. - Parameter 84.06 selects the source that input I1 of the function block is connected to. - Parameter 84.07 selects the source that input I2 of the function block is connected to. - Parameter 84.08 selects the source that input I3 of the function block is connected to. - Parameter 84.09 stores the value of the function block output. The user cannot edit the parameter value.
ADD XOR
84.08
Store
84.09
Adaptive Program
11
Adaptive Program
12
Adaptive Program
13
Function blocks
Chapter overview
The chapter describes the function blocks.
General rules
The use of input I1 is compulsory (it must not be left unconnected). Use of input I2, I3, etc. is voluntary for the most blocks. As a rule of thumb, a unconnected input does not affect the output of the block.
Block inputs
The blocks use three input formats: integer boolean text string The used format varies depending on the block. For example, the ADD block uses integer inputs and the OR block boolean inputs. Text string format is used only by the EVENT block. Note: The inputs of the block are read when the execution of the block starts, not simultaneously for all blocks!
Function blocks
14
Parameter value as an integer input How the block handles the input The block reads the selected value in as an integer. Note: The parameter selected as an input should be a real or integer value. If the value is not in integer format by default, the block converts it. The integer (fieldbus) scaling for each parameter is given in the Firmware Manual. How to select the input Scroll to the input selection parameter of the block and switch to edit mode (Enter). Set the values of the inversion, group, index and bit fields according to the address from which the input value is to be read (double arrow and arrow keys). The figure below shows the panel display when the input I1 selection parameter is in edit mode. The value is inverted if there is a minus ( - ) sign in the inversion field. The bit selection field is not effective for an integer or string type input.
Display of the panel 1 L -> 0 rpm 0 84 ADAPTIVE PROGRAM 06 INPUT1 [001.018.00]
Example: Analogue input AI1 is 5.8 V in a drive equipped with the ACS800 Standard Application Program. How is the signal connected to the MAX block in the Adaptive Program? What is the value at the block input? AI1 is connected to the block as follows: Scroll to the input I1 selection parameter and shift to edit mode (Enter). Set the value in the group field to 1 and the value in the index field to 18. (Value of AI1 is internally stored as actual signal 1.18.) The value at the input of the block is 5800, since the integer scaling of actual signal 1.18 is: 0.001 V = 1 (given in the Firmware Manual).
Function blocks
15
Constant as an integer input How to set and connect the input Option 1 Scroll to the input selection parameter of the block and switch to edit mode (Enter). Select C in the inversion field (double arrow and arrow keys). The appearance of the row changes. The rest of the line is now a constant field. Give the constant value to the constant field (double arrow and arrow keys). Accept by Enter. The figure below shows the panel display when the input I1 selection parameter is in edit mode and the constant field is visible. The constant may have a value from -32768 to 32767. The constant cannot be changed while the adaptive program is running.
Display of the panel 1 L -> 0 rpm 0 84 ADAPTIVE PROGRAM 06 INPUT1 [C.-10000]
Option 2 Set the constant to one of the parameters reserved for the constants. Connect the constant value to a block as usual by the input selection parameter. The constants can be changed while the adaptive program is running. They may have values from 83886088388607.
Function blocks
16
Parameter value as a boolean input How the block handles the input The block reads the selected value as an integer. The block uses the bit defined by the bit field as the boolean input. Bit value 1 is boolean value true and 0 is boolean value false. Example: The figure below shows the value of input I1 selection parameter when the input is connected to a bit indicating the status of digital input DI2. (In ACS800 Standard Application Program, the digital input states are internally stored as actual signal 1.17 DI6-1 STATUS. Bit 1 corresponds to DI2, bit 0 to DI1.)
Display of the panel
How to select the input See the section Parameter value as an integer input above. Note: The parameter selected as an input should have a packed boolean value (binary data word). See the Firmware Manual.
Function blocks
17
Constant as a boolean input How to set and connect the input Scroll to the input selection parameter of the block and switch to edit mode (Enter). Select C in the inversion field (double arrow and arrow keys). The rest of the line changes to a constant setting field. Give the constant. If boolean value true is needed, set the constant to -1. If boolean value false is needed, set to 0. Accept by Enter. String input How to select the input String input is needed only with the EVENT block. For the input selection procedure, see the section Parameter value as an integer input above. The bit selection field is not effective. Note: The parameter selected as an input must have a string value. In the ACS800 Standard Application Program, there are parameters in group 85 USER CONSTANTS which can be used for string inputs.
Function blocks
18
Function blocks
ABS
Type Illustration ABS I1 I2 I3 Operation The output is the absolute value of input I1 multiplied by I2 and divided by I3. O = I1 I2 / I3 Connections Input I1, I2 and I3: 24 bit integer values (23 bits + sign) Output (O): 24 bit integer (23 bits + sign) O Arithmetic function
ADD
Type Illustration
I1 I2 I3 Operation
Connections
Input I1, I2 and I3: 24 bit integer values (23 bits + sign) Output (O): 24 bit integer (23 bits + sign)
AND
Type Illustration
I1 I2 I3 Operation
The output is true if all connected inputs are true. Otherwise the output is false. Truth table: I1 0 0 0 0 1 1 1 1 I2 0 0 1 1 0 0 1 1 I3 0 1 0 1 0 1 0 1 O (binary) False (All bits 0) False (All bits 0) False (All bits 0) False (All bits 0) False (All bits 0) False (All bits 0) False (All bits 0) True (All bits 1) O (value on display) 0 0 0 0 0 0 0 -1
Function blocks
19
Connections
Input I1, I2 and I3: Boolean values Output (O): 24 bit integer value (packed boolean)
BITWISE
Type Illustration
Operation
The block compares bits of three 24 bit word inputs and forms the output bits as follows: O = (I1 OR I2) AND I3 Example I1 0 0 1 1 0 0 1 1 I2 0 1 0 1 0 1 0 1 I3 0 0 0 0 1 1 1 1 O 0 0 0 0 0 1 1 1
Connections
Input I1: 24 bit integer value (packed boolean) Input I2: 24 bit integer value (packed boolean) Input I3: 24 bit integer value (packed boolean) Output (O): 24 bit integer value (packed boolean)
COMPARE
Type Illustration
Function blocks
20
Operation
Output bits 0, 1 and 2: - If I1 > I2, O = 001 (Output bit 0 is set.) - If I1 = I2, O = 010 (Output bit 1 is set.) - If I1 < I2, O = 100 (Output bit 2 is set.) Output bit 3: - If I1 > I2, O = 1xxx (Output bit 3 is set and remains set until I1 < I2 - I3, after which bit 3 is reset.) Output value on display: bit 0 0 1 0 0 0 1 0 0 bit 1 0 0 1 0 0 0 1 0 bit 2 0 0 0 1 0 0 0 1 bit 3 0 0 0 0 1 1 1 1 O (value on display) 0 1 2 4 8 9 10 12
Connections
Input I1, I2 and I3: 24 bit integer values (23 bits + sign) Output (O): 24 bit integer (packed boolean)
COUNT
Type Illustration
Operation
The counter function counts rising edges of the input I1. The counter is reset by the rising edge of input I2 and limited to the value set with the input I3. I1: Trigger input I2: Reset I3: Max limit for the counter (B0B19 -> 01048575) O: Value of the counter (B0B19 -> 01048575), and status of the counter (B20). B20 = 1: Counter is at max limit or input I3 is negative.
Connections
Input I1 and I2: Boolean values Input I3: 24 bit integer value (20 bits used by the counter) Output (O): 24 bit integer value (20 bits for counter value and 4 indication bits)
Function blocks
21
DPOT
Type Illustration
Operation
The digitally controlled ramp function increments or decrements the output O according to control inputs I1 and I2. The input I1 ramps the output to positive direction and I2 to negative direction. If both inputs are active, nothing happens. The step is defined by the input I3. Input I1: Count up Input I2: Count down Input I3: Ramp step to positive/negative direction (step/sec). Note: The internal calculation uses 48 bits accuracy to avoid offset errors.
Connections
Input I1 and I2: Boolean values Input I3: 24 bit integer value (23 bits + sign) Output (O): 24 bit integer value (23 bits + sign)
EVENT
Type Illustration
Operation
Input I1 triggers the event. I2 selects the parameter index from which the event message (text string) is read. I3 selects the type of the event (warning or fault). I1 0->1 0 I2 0 1 2 I2 I3 Cause block activates the event block deactivates the event contents of the event message type of event: warning type of event: fault type of event: event
Connections
Input I1, I3: 24 bit integer values (23 bits + sign) Input I2: String (compulsory)
FILTER
Type Illustration
Function blocks
22
Operation
The output is the filtered value of input I1. Input I2 is the filtering time. O = I1 (1 - e-t/I2) Note: The internal calculation uses 48 bits accuracy to avoid offset errors.
Connections
Input I1: 24 bit integer value (23 bits + sign) Input I2: 24 bit integer value (23 bits + sign). One corresponds to 1 ms. Output (O): 24 bit integer (23 bits + sign)
MASK-SET
Type Illustration
Operation
The block function sets or resets the bits defined in I2 in I1. Input I1: Word input Input I2: Set word input Input I3: Set/reset I2 in I1. Example with SET I1 0 1 1 0 I2 0 0 1 1 I3 True True True True O 0 1 1 1 Example with RESET I1 0 1 1 0 I2 0 0 1 1 I3 O False 0 False 1 False 0 False 0
Connections
Input I1: 24 bit integer value (packed boolean) Input I2: 24 bit integer value (packed boolean) Input I3: Boolean Output (O): 24 bit integer value (packed boolean)
MAX
Type Illustration
Operation
The output is the highest input value. O = MAX (I1, I2, I3)
Connections
Input I1, I2 and I3: 24 bit integer values (23 bits + sign) Output (O): 24 bit integer (23 bits + sign)
Function blocks
23
MIN
Type Illustration
Operation
The output is the lowest input value. O = MIN (I1, I2, I3)
Connections
Input I1, I2 and I3: 24 bit integer values (23 bits + sign) Output (O): 24 bit integer (23 bits + sign)
MULDIV
Type Illustration
Operation
The output is the product of input I1 and input I2 divided by input I3. O = (I1 I2) / I3
Connections
Input I1, I2 and I3: 24 bit integer values (23 bits + sign) Output (O): 24 bit integer (23 bits + sign)
NO
Type Illustration
NO I1 I2 I3 O
Operation Connections
OR
Type Illustration
I1 I2 I3
Function blocks
24
Operation
The output is true if any of the inputs is true. Truth table: I1 0 0 0 0 1 1 1 I2 0 0 1 1 0 1 1 I3 0 1 0 1 0 0 1 O (binary) False (All bits 0) True (All bits 1) True (All bits 1) True (All bits 1) True (All bits 1) True (All bits 1) True (All bits 1) O (value on display) 0 -1 -1 -1 -1 -1 -1
Connections
Input I1, I2 and I3: Boolean values Output (O): 24 bit integer value (packed boolean)
PI
Type Illustration
PI controller PI I1 I2 I3 O
Operation
The output is input I1 multiplied by I2/100 plus integrated I1 multiplied by I3/100. O = I1 I2/100+(I3/100) I1 Note: The internal calculation uses 48 bits accuracy to avoid offset errors.
Connections
Inputs I1: 24 bit integer value (23 bit + sign) Input I2: - 24 bit integer value (23 bit + sign) - Gain factor. 100 corresponds to 1. 10 000 corresponds to 100. Input I3: - Integrator coefficient. 100 corresponds to 1. 10 000 corresponds to 100. Output (O): 24 bit integer (23 bits + sign). The range is limited to 010000.
PI-BAL
Type Illustration
Operation
The block initialises the PI block first. When input I1 becomes true, the block writes the value of I2 to the output of the PI block. When I1 becomes false, the block releases the output of the PI controller block which continues normal operation from the set output. Note: The block may be used only with the PI block. The block must follow the PI block.
Connections
Input I1: Boolean value Input I2: 24 bit integer value (23 bits + sign)
Function blocks
25
PIBIPOLAR
Type
PI controller
Illustration
PI BIPOLAR I1 I2 I3 O
Operation
RAMP
Type Illustration
Function blocks
26
Operation
The block uses input I1 as a reference value. The step values (inputs I2 and I3) increase or decrease the output O as long as the output differs from limit I1. When O = I1, the output remains steady. Input I1: Reference value Input I2: Step to positive direction (step/sec). Increase the output, when O < I1. Input I3: Step to negative direction (step/sec). Decrease the output, when O > I1. On = On-1 + I2 when I1 > O On = On-1 - I3 when I1 < O On = I1 when I1 = O Example: Input I1: 0 -> 150 -> -100 ->0 Input I2: 100 step/sec Input I3: 10 step/sec Output: Going up: Ramp step from Input I2 Going down: Ramp step from Input I3 Input I1
Output
Connections
Input I1, I2 and I3: 24 bit integer values (23 bits + sign) Output (O): 24 bit integer (23 bits + sign) Note: The internal calculation uses 48 bits accuracy to avoid offset errors.
Function blocks
27
SR
Type Illustration
Logical function SR I1 I2 I3 O
Operation
Set/reset block. Input I1 sets and I2 and I3 reset the output. - If I1, I2 and I3 are false, the current value remains at the output. - If I1 is true and I2 and I3 are false, the output is true. - If I2 or I3 is true, the output is false. I1 0 0 0 0 1 1 1 1 I2 0 0 1 1 0 0 1 1 I3 0 1 0 1 0 1 0 1 O (binary) Output False (All bits 0) False (All bits 0) False (All bits 0) True (All bits 1) False (All bits 0) False (All bits 0) False (All bits 0) O (value on display) Output 0 0 0 -1 0 0 0
Connections
Input I1, I2 and I3: Boolean values Output (O): 24 bit integer value (23 bits + sign)
SWITCH-B
Type Illustration
Operation
The output is equal to input I2 if input I1 is true and equal to input I3 if input I1 is false. I1 0 1 I2 I2 I2 I3 I3 I3 O I3 I2 O (value on display) True = -1 False = 0
Connections
Input I1, I2 and I3: Boolean values Output (O): 24 bit integer value (packed boolean)
Function blocks
28
SWITCH-I
Type Illustration
Operation
The output is equal to input I2 if input I1 is true and equal to input I3 if input I1 is false. I1 0 1 I2 I2 I2 I3 I3 I3 O I3 I2
Connections
Input I1: Boolean value Input I2 and I3: 24 bit integer values (23 bits + sign) Output (O): 24 bit integer value (23 bits + sign)
TOFF
Type Illustration
Operation
The output is true when input I1 is true. The output is false when input I1 has been false for a time equal or longer than input I2. Input I1 1 0 Output All bits 1 All bits 0 t Values on display: True = -1, false = 0. Input I2 Input I2 t
Connections
Input I1: Boolean value Input I2: 24 bit integer value (23 bits + sign). One corresponds to 1 ms. Output (O): - 24 bit integer value (packed boolean)
Function blocks
29
TON
Type Illustration
Operation
The output is true when input I1 has been true for a time equal or longer than input I2. The output is false when the input is false. Input I1 1 0 Output All bits 1 All bits 0 Values on display: True = -1, false = 0. time Input I2 Input I2 time
Connections
Input I1: Boolean value Input I2: 24 bit integer value (23 bits + sign). 1 corresponds to 1 ms. Output (O): 24 bit integer value (packed boolean)
TRIGG
Type Illustration
Operation
The rising edge of input I1 sets the output bit 0 for one program cycle. The rising edge of input I2 sets the output bit 1 for one program cycle. The rising edge of input I3 sets the output bit 2 for one program cycle. Example Input I1 1 0 Output, Bit 0 1 0 Tc Tc t t Tc = Program cycle time
Function blocks
30
Connections
Input I1, I2 and I3: Boolean values Output (O): - 24 bit integer value (23 bits + sign)
XOR
Type Illustration
Operation
The output is true if one input is true, otherwise the output is false. Truth table: I1 0 0 0 0 1 1 1 1 I2 0 0 1 1 0 0 1 1 I3 0 1 0 1 0 1 0 1 O (binary) False (All bits 0) True (All bits 1) True (All bits 1) False (All bits 0) True (All bits 1) False (All bits 0) False (All bits 0) True (All bits 1) O (value on display) 0 -1 -1 0 -1 0 0 -1
Connections
Input I1, I2 and I3: Boolean values Output (O): - 24 bit integer value (23 bits + sign)
Function blocks
31
Actual signals
The table below lists the actual signals that are essential for the Adaptive Program. The abbreviation FbEq stands the fieldbus equivalent.
Index 09 09.01 09.02 09.03 09.04 09.05 09.06 09.07 09.08 09.09 09.10 09.11 Signal Name/Value ACTUAL SIGNALS AI1 SCALED AI2 SCALED AI3 SCALED AI5 SCALED AI6 SCALED MASTER CW MASTER REF1 MASTER REF2 AUX DS VAL1 AUX DS VAL2 AUX DS VAL3 Description Signals for the Adaptive Program Value of analogue input AI1 scaled to an integer value. FbEq.
20000 = 10 V Value of analogue input AI2 scaled to an integer value. 20000 = 20 mA Value of analogue input AI3 scaled to an integer value. 20000 = 20 mA Value of analogue input AI5 scaled to an integer value. 20000 = 20 mA Value of analogue input AI6 scaled to an integer value. 20000 = 20 mA Control Word (CW) of the Main Reference Dataset received from the master -32768 station through the fieldbus interface. 32767 Reference 1 (REF1) of the Main Reference Dataset received from the master -32768 station through the fieldbus interface 32767 Reference 2 (REF2) of the Main Reference Dataset received from the master -32768 station through the fieldbus interface. 32767 Reference 3 (REF3) of the Auxiliary Reference Dataset received from the -32768 master station through the fieldbus interface. 32767 Reference 4 (REF4) of the Auxiliary Reference Dataset received from the -32768 master station through the fieldbus interface. 32767 Reference 5 (REF5) of the Auxiliary Reference Dataset received from the -32768 master station through the fieldbus interface. 32767
32
Parameters
The table below lists the parameters and parameters values that are essential for the Adaptive Program. The abbreviation FbEq stands for fieldbus equivalent.
Index Parameter name / value 10 START/STOP/DIR Description Parameters through which the Adaptive Program can control the start, stop and direction of the drive. Source selected by 10.04 Source selected by 10.05. Selects the source for parameter 10.01. 17 17 FbEq
10.01 EXT1 STRT/STP/DIR PARAM 10.04 10.02 EXT2 STRT/STP/DIR PARAM 10.05 10.04 EXT 1 STRT PTR
-255.255.31 Parameter pointer or constant value: +255.255.31 / C.-32768 - Parameter pointer: Inversion, group, index and bit fields. The bit number is C.32767 effective only for blocks handling boolean inputs. - Constant value: Inversion and constant fields. The inversion field must have value C to enable the setting of the constant. 10.05 EXT 2 STRT PTR Selects the source for 10.02. -255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767 11 REFERENCE SELECT Parameters through which the Adaptive Program can control the reference of the drive. PARAM 11.09 11.03 EXT REF1 SELECT PARAM 11.10 11.06 EXT REF2 SELECT PARAM 11.11 11.09 EXT 1/2 SEL PTR Source selected by 11.11. Selects the source for 11.02. 38 Source selected by 11.10. 37 Source selected by 11.09. 16
-255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767 11.10 EXT 1 REF PTR Selects the source for 11.03. -255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767 11.11 EXT 2 REF PTR Selects the source for 11.06. -255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767 14 RELAY OUTPUTS Parameters through which the Adaptive Program can control the relay outputs of the drive. Source selected by parameter 14.16. 36
14.01 RELAY RO1 OUTPUT PARAM 14.16 14.02 RELAY RO2 OUTPUT
33
Index Parameter name / value PARAM 14.17 14.03 RELAY RO3 OUTPUT PARAM 14.18 14.10 DIO MOD1 RO1 PARAM 14.19 14.11 DIO MOD1 RO2 PARAM 14.20 14.12 DIO MOD2 RO1 PARAM 14.21 14.13 DIO MOD2 RO2 PARAM 14.22 14.14 DIO MOD3 RO1 PARAM 14.23 14.15 DIO MOD3 RO2 PARAM 14.24 14.16 RO PTR1
Description Source selected by parameter 14.17. Source selected by parameter 14.18. Source selected by parameter 14.19. Source selected by parameter 14.20. Source selected by parameter 14.21. Source selected by parameter 14.22. Source selected by parameter 14.23. Source selected by parameter 14.24. Selects the source for parameter 14.01.
FbEq 36 36 7 7 7 7 7 7
-255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767 14.17 RO PTR2 Selects the source for parameter 14.02. -255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767 14.18 RO PTR3 Selects the source for parameter 14.03. -255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767 14.19 RO PTR4 Selects the source for parameter 14.10. -255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767 14.20 RO PTR5 Selects the source for parameter 14.11. -255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767 14.21 RO PTR6 Selects the source for parameter 14.12. -255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767 14.22 RO PTR7 Selects the source for parameter 14.13. -255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767 14.23 RO PTR8 Selects the source for parameter 14.14.
34
Description
FbEq
-255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767 14.24 RO PTR9 Selects the source for parameter 14.15. -255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767 15 ANALOGUE OUTPUTS PARAM 15.11 15.06 ANALOGUE OUTPUT2 PARAM 15.12 15.11 AO1 PTR Source selected by 15.12 Selects the source for parameter 15.01. 16 Parameters through which the Adaptive Program can control the standard analogue outputs of the drive. Source selected by 15.11 17
-255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767 15.12 AO2 PTR Selects the source for parameter 15.06. -255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767 16 SYSTEM CTRL INPUTS PARAM 16.08 16.08 RUN ENA PTR Parameters through which the Adaptive Program can control the system control inputs of the drive. Source selected by parameter 16.08. Selects the source for parameter 16.01 15
-255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767 20 LIMITS Parameters through which the Adaptive Program can control the operation limits of the drive. Selects the torque minimum limit Limit given by 20.18 Selects the torque maximum limit Limit given by 20.19 Selects the source for 20.13 19 100 = 1% 20
20.13 MIN TORQ SEL PARAM 20.18 20.14 MAX TORQ SEL PARAM 20.19 20.18 TORQ MIN PTR
-255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767 20.19 TORQ MAX PTR Selects the source for 20.14 100 = 1% -255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767 22 ACCEL/DECEL Parameters through which the Adaptive Program can control the acceleration and deceleration of the drive.
35
Description Acceleration and deceleration times given by parameters 22.08 and 22.09 Selects the source for 22.01
FbEq 15 100 = 1 s
-255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767 22.09 DEC PTR Selects the source for 22.01 100 = 1 s -255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767 26 MOTOR CONTROL Parameters through which the Adaptive Program can control the flux of the drive. Selects the source for the flux reference.
-255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767 40 PID CONTROL Parameters through which the Adaptive Program can affect on the process PID control. Source selected by parameter 40.25. Selects the source for 40.07 6 100 = 1%
-255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767 83 ADAPT PROG CTRL STOP START EDIT 83.02 EDIT COMMAND NO PUSH Execution control of the Adaptive Program. Selects the operation mode for the Adaptive Program. Stop. The program cannot be edited. Run. The program cannot be edited. Stop to edit mode. The program can be edited. Selects the command for the block placed in the location defined by parameter 83.03. The program must be in edit mode. (See parameter 83.01.) Home value. The value automatically restores to NO after an editing command has been executed. Shifts the block in the location defined by parameter 83.03 and the subsequent blocks one location up. A new block can be placed in the emptied location by programming the Block Parameter Set as usual. Example: A new block needs to be placed in between the current block number four (parameters 84.2084.25) and five (parameters 84.2584.29). In order to do this: - Shift the program to the edit mode by parameter 83.01. - Select location number five as the desired location for the new block by parameter 83.03. - Shift the block in location number 5 and all subsequent blocks one location forward by parameter 83.02 (selection PUSH). - Program the emptied location number 5 by parameters 84.25 to 84.29 as usual. DELETE Deletes the block in the location defined by parameter 83.03 and shifts the subsequent blocks one step down. 83.01 ADAPT PROG CMD
36
Index Parameter name / value 83.03 EDIT BLOCK 1 15 83.04 TIMELEVEL SEL 12 ms 100 ms 1000 ms 84 84.01 STATUS
Description Defines the block location number for the command selected by parameter 83.02. Block location number. Selects the execution cycle time for the Adaptive Program. The setting is valid for all blocks. 12 milliseconds 100 milliseconds 1000 milliseconds Shows the value of the Adaptive Program status word. The table below shows the alternative bit states and the corresponding values on the panel display. Bit 0 1 2 3 4 5 6 8 Display 1 2 4 8 10 20 40 100 Meaning Stopped Running Faulted Editing Checking Pushing Popping Initialising
FbEq
84.02 FAULTED PAR 84.05 BLOCK1 ABS ADD AND COMPARE EVENT FILTER MAX MIN MULDIV NO OR PI PI-BAL SR SWITCH-B SWITCH-I TOFF TON TRIGG XOR
Points out the faulted parameter in the Adaptive Program. Selects the function block for Block Parameter Set 1. See the chapter Function blocks. See the chapter Function blocks. See the chapter Function blocks. See the chapter Function blocks. See the chapter Function blocks. See the chapter Function blocks. See the chapter Function blocks. See the chapter Function blocks. See the chapter Function blocks. See the chapter Function blocks. See the chapter Function blocks. See the chapter Function blocks. See the chapter Function blocks. See the chapter Function blocks. See the chapter Function blocks. See the chapter Function blocks. See the chapter Function blocks. See the chapter Function blocks. See the chapter Function blocks. See the chapter Function blocks.
37
Description Selects the source for input I1 of Block Parameter Set 1 (BPS1).
FbEq
-255.255.31 Parameter pointer or constant value: +255.255.31 / C.-32768 - Parameter pointer: Inversion, group, index and bit fields. The bit number is C.32767 effective only for blocks handling boolean inputs. - Constant value: Inversion and constant fields. The inversion field must have value C to enable the setting of the constant. Example: The state of digital input DI2 is connected to Input 1 as follows: - Set the source selection parameter (84.06) to +.01.17.01. (The application program stores the state of digital input DI2 to bit 1 of actual signal 01.17.) - Invert the value by switching the sign of the pointer value (-01.17.01.). 84.07 INPUT2 See parameter 84.06. -255.255.31 See parameter 84.06. +255.255.31 / C.-32768 C.32767 84.08 INPUT3 See parameter 84.06. -255.255.31 See parameter 84.06. +255.255.31 / C.-32768 C.32767 84.09 OUTPUT 85 USER CONSTANTS -8388608 to 8388607 85.02 CONSTANT2 -8388608 to 8388607 85.03 CONSTANT3 -8388608 to 8388607 85.04 CONSTANT4 -8388608 to 8388607 85.05 CONSTANT5 -8388608 to 8388607 85.06 CONSTANT6 -8388608 to 8388607 85.07 CONSTANT7 -8388608 to 8388607 85.08 CONSTANT8 -8388608 to 8388607 85.09 CONSTANT9 -8388608 to 8388607 85.10 CONSTANT10 -8388608 to 8388607 85.11 STRING1 84.79 OUTPUT 85.01 CONSTANT1 Stores and displays the output of Block Parameter Set 1. Stores and displays the output of Block Parameter Set 15. Stores the output of Block Parameter Set 15. See parameter 84.09. Storage of the Adaptive Program constants and messages. Sets a constant for the Adaptive Program. Integer value. Sets a constant for the Adaptive Program. Integer value. Sets a constant for the Adaptive Program. Integer value. Sets a constant for the Adaptive Program. Integer value. Sets a constant for the Adaptive Program. Integer value. Sets a constant for the Adaptive Program. Integer value. Sets a constant for the Adaptive Program. Integer value. Sets a constant for the Adaptive Program. Integer value. Sets a constant for the Adaptive Program. Integer value. Sets a constant for the Adaptive Program. Integer value. Stores a message to be used in the Adaptive Program (EVENT block).
38
Index Parameter name / value MESSAGE1 85.12 STRING2 MESSAGE2 85.13 STRING3 MESSAGE3 85.14 STRING4 MESSAGE4 85.15 STRING5 MESSAGE5 96 EXTERNAL AO
Description Message Stores a message to be used in the Adaptive Program (EVENT block). Message Stores a message to be used in the Adaptive Program (EVENT block). Message Stores a message to be used in the Adaptive Program (EVENT block). Message Stores a message to be used in the Adaptive Program (EVENT block). Message Parameters through which the Adaptive Program can control the optional analogue outputs of the drive. Source selected by parameter 96.11. Source selected by parameter 96.11. Selects the source for 96.01.
FbEq
96.01 EXT AO1 PARAM 96.11 96.06 EXT AO2 PARAM 96.12 96.11 EXT AO1 PTR 16 16
-255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767 96.12 EXT AO2 PTR Selects the source for 96.06. -255.255.31 Parameter pointer or constant value. See Parameter 10.04. +255.255.31 / C.-32768 C.32767
39
Customer diagrams
Chapter overview
This chapter includes three blank block diagram sheets on which the Adaptive Program can be documented.
Customer diagrams
ABB Oy AC Drives P.O.Box 184 FI-00381 Helsinki FINLAND Telephone: +358 10 22 11 Fax: +358 10 22 22681 Internet: http://www.abb.com
ABB Inc. Automation Technologies Drives & Motors 16250 West Glendale Drive New Berlin, WI 53151 USA Telephone: 262 785-8378 800-HELP-365 Fax: 262 780-5135