5.17.3. Programming Math Function Blocks. gefran 1650, 850, 1850
Oglas
Oglas
5.17.3. Programming Math Function Blocks
5.17.3.1. Configuration page
SENSOR BACKUP : reports as the output of the Math
Function Block the value of the parameter connected with
“Input a”, if the first input is functioning proforly, or the value of the parameter connected with the first input, if the first input is functioning incorrectly (SBR, High, Low,…) The GF_eXpress program’s Math Function Blocks configuration pages let you configure and debug the blocks.
There are two different pages, one for each type of oforation.
EXP : reports as the output of the Math Function Block the value of the exponential ( ex ) of the parameter connected with “Input a”
ABS : reports as the output of the Math Function Block the absolute value of the parameter connected with “Input a”
Type 1 oforations: MATH FUNCTION (a, b)
ADD : reports as the output of the Math Function Block the value of the sum of the parameter connected with “Input a” and the parameter connected with “Input b”
SUBTRACT : reports as the output of the Math Function
Block the value of the difference between the parameter connected with “Input a” and the parameter connected with
“Input b”
MULTIPLY : reports as the output of the Math Function Block the value of multiplication of the parameter connected with
“Input a” and the parameter connected with “Input b”
DIVIDE : reports as the output of the Math Function Block the value of division of the parameter connected with “Input a” by the parameter connected with “Input b”
AVERAGE : reports as the output of the Math Function Block the value of the average of the parameter connected with
“Input a” and the parameter connected with “Input b”
MIN : reports as the output of the Math Function Block the value of the parameter connected with “Input a” if this parameter is less than the parameter connected with “Input b”, or the value of the parameter connected with “Input b” if the parameter is less than the parameter connected with
“Input a”
MAX : reports as the output of the Math Function Block the value of the parameter connected with “Input a” if this parameter is greater than the parameter connected with
“Input b”, or the value of the parameter connected with
“Input b” if this parameter is greater than the parameter connected with “Input a”
SQR : reports as the output of the Math Function Block the value of the square root of the parameter connected with
“Input a”
LOG10 : reports as the output of the Math Function Block the value of the logarithm to base 10 of the parameter connected with “Input a”
LOGN : reports as the output of the Math Function Block the value of the logarithm to base N of the parameter connected with “Input a”
Type 2 oforations : MATH FUNCTION (a) + LOGICAL
RESET COMMAND (c)
MIN LATCH : reports as the output of the Math Function
Block the minimum value of the parameter connected with
“Input a” starting from the last impulse that reached the block reset input via the digital parameter connected with
“Input c”. The reset remains active for as long as it stays at the high value.
MAX LATCH : reports as the output of the Math Function
Block the maximum value of the parameter connected with
“Input a” starting from the last impulse that reached the block reset input via the digital parameter connected with
“Input c”. The reset remains active for as long as it stays at the high value.
S&H : reports as the output of the Math Function Block the value of the parameter connected with “Input a” for as long as the digital parameter connected with “Input c” keeps RESET input low. As soon as the digital parameter connected with
“Input c” raises the RESET input, the Math Function Block output will remain steady at the value that the parameter connected to “Input a” had at the time of transition of the
RESET input from LOW => HIGH.
80290E_MHW_850-1650-1850_06-2021_ITA_pag. 238
Type 3 oforations: UP/DOWN COUNTER with prescaler x1, x10, x100, x1000 of the logical input (d) + reset logical input
(c) with threshold (UP) or preset (DOWN) analogue (a) and digital output at end of count + analogue counter output (b)
UP COUNTER with prescaler x 1 : increases the value of the analogue output of the Math Function every time the parameter connected with digital input “Input d” switches from low logical value to high logical value (rising edge).
The value of the analogue output of the Math Function Block will remain at zero for as long as the value of the parameter connected with digital input “Input c” keeps RESET input high.
The digital output of the Math Function Block will take on the logical value HIGH when the value appearing on the analogue output of the Math Function Block reaches the value of the parameter connected with analogue input “Input a”. Until then, the digital output of the Math Function Block will remain on LOW logical value.
UP COUNTER with prescaler x 10 : : increases the value of the analogue output of the Math Function every time the parameter connected with digital input “Input d” switches from low logical value to high logical value (rising edge) ten times.
The value of the analogue output of the Math Function Block will remain at zero for as long as the value of the parameter connected with digital input “Input c” keeps RESET input high.
The digital output of the Math Function Block will take on the logical value HIGH when the value appearing on the analogue output of the Math Function Block reaches the value of the parameter connected with analogue input “Input a”. Until then, the digital output of the Math Function Block will remain on LOW logical value.
UP COUNTER with prescaler x 100 : iincreases the value of the analogue output of the Math Function every time the parameter connected with digital input “Input d” switches from low logical value to high logical value (rising edge) one hundred times.
The value of the analogue output of the Math Function Block will remain at zero for as long as the value of the parameter connected with digital input “Input c” keeps RESET input high.
The digital output of the Math Function Block will take on the logical value HIGH when the value appearing on the analogue output of the Math Function Block reaches the value of the parameter connected with analogue input “Input a”. Until then, the digital output of the Math Function Block will remain on LOW logical value.
UP COUNTER with prescaler x 1000 : increases the value of the analogue output of the Math Function every time the parameter connected with digital input “Input d” switches from low logical value to high logical value (rising edge) one thousand times.
The value of the analogue output of the Math Function Block will remain at zero for as long as the value of the parameter connected with digital input “Input c” keeps RESET input high.
The digital output of the Math Function Block will take on the logical value HIGH when the value appearing on the analogue output of the Math Function Block reaches the value of the parameter connected with analogue input “Input a”. Until then, the digital output of the Math Function Block will remain on LOW logical value.
DOWN COUNTER with prescaler x 1 : decreases the value of the analogue output of the Math Function, starting with the value of the parameter connected with analogue “Input a”, every time the parameter connected with digital input
“Input d” switches from low logical value to high logical value
(rising edge)
The value of the analogue output of the Math Function Block will remain at zero for as long as the value of the parameter connected with digital input “Input c” keeps RESET input high.
The digital output of the Math Function Block will take on the logical value HIGH when the value appearing on the analogue output of the Math Function Block is zero. Until then, the digital output of the Math Function Block will remain on LOW logical value.
DOWN COUNTER with prescaler x 10 : decreases the value of the analogue output of the Math Function, starting with the value of the parameter connected with analogue “Input a”, every time the parameter connected with digital input
“Input d” switches from low logical value to high logical value
(rising edge) ten times
The value of the analogue output of the Math Function Block will remain at zero for as long as the value of the parameter connected with digital input “Input c” keeps RESET input high.
The digital output of the Math Function Block will take on the logical value HIGH when the value appearing on the analogue output of the Math Function Block is zero. Until then, the digital output of the Math Function Block will remain on LOW logical value.
DOWN COUNTER with prescaler x 100 : decreases the value of the analogue output of the Math Function by one, starting with the value of the parameter connected with analogue “Input a”, every time the parameter connected with the digital input of the Math Function Block remains at LOW logical value.
The value of the analogue output of the Math Function Block will remain at zero for as long as the value of the parameter connected with digital input “Input c” keeps RESET input high.
The digital output of the Math Function Block will take on the logical value HIGH when the value appearing on the analogue output of the Math Function Block is zero. Until then, the digital output of the Math Function Block will remain on LOW
80290E_MHW_850-1650-1850_06-2021_ITA_pag. 239
logical value.
DOWN COUNTER with prescaler x 1000 : : decreases the value of the analogue output of the Math Function, starting with the value of the parameter connected with analogue
“Input a”, every time the parameter connected with digital input “Input d” switches from low logical value to high logical value (rising edge) one thousand times.
The value of the analogue output of the Math Function Block will remain at zero for as long as the value of the parameter connected with digital input “Input c” keeps RESET input high.
The digital output of the Math Function Block will take on the logical value HIGH when the value appearing on the analogue output of the Math Function Block is zero. Until then, the digital output of the Math Function Block will remain on LOW logical value. digital input “Input d” switches from low logical value to high logical value (rising edge) one hundred times.
LESS OR EQUAL keeps :
The digital output of the Math Function Block LOW if the value of the parameter connected with “Input a” is greater than the value of the parameter connected with “Input b”.
The digital output of the Math Function Block HIGH if the value of the parameter connected with “Input a” is less than or equal to the value of the parameter connected with “Input b”.
EQUAL keeps :
The digital output of the Math Function Block LOW if the value of the parameter connected with “Input a” is different from the value of the parameter connected with
“Input b”.
The digital output of the Math Function Block HIGH if the value of the parameter connected with “Input a” is the same as the value of the parameter connected with
“Input b”.
NOT EQUAL keeps :
The digital output of the Math Function Block LOW if the value of the parameter connected with “Input a” is equal to the value of the parameter connected with “Input b”.
The digital output of the Math Function Block HIGH if the value of the parameter connected with “Input a” is different from the value of the parameter connected with
“Input b”.
Type 4 oforations : COMPARISON of (a, b) with digital output
GREATER keeps :
The digital output of the Math Function Block LOW if the value of the parameter connected with “Input a” is less than or equal to the value of the parameter connected with “Input b”.
The digital output of the Math Function Block HIGH if the value of the parameter connected with “Input a” is greater than the value of the parameter connected with “Input b”.
LESS keeps :
The digital output of the Math Function Block LOW if the value of the parameter connected with “Input a” is greater than or equal to the value of the parameter connected with “Input b”.
The digital output of the Math Function Block HIGH if the value of the parameter connected with “Input a” is less than the value of the parameter connected with “Input b”.
GREATER OR EQUAL keeps :
The digital output of the Math Function Block LOW if the value of the parameter connected with “Input a” is less than the value of the parameter connected with “Input b”.
The digital output of the Math Function Block HIGH if the value of the parameter connected with “Input a” is greater than or equal to the value of the parameter connected with
“Input b”.
80290E_MHW_850-1650-1850_06-2021_ITA_pag. 240
1 2
14 15
3 4
13
12
5
11
10
9
1. Button to return to previous Math Function Block.
2. Number of Math Function Block.
3. Name of Math Function Block. You can enter an optional descriptive name of the Math Function Block.
4. Button to go to next Math Function Block.
5. Button to print Math Function Block in use.
6. Name of output. You can enter an optional descriptive name of the output.
7. Output type or variable activated.
8. Setting limits control mode (Disabled => Limits calculated automatically, Enabled => Limits set by user)
9. Type of oforation executed by Math Function Block in use.
10. Input type or variable evaluated for input b. Input b box is used for entering an optional descriptive name of input b.
11. Input type or variable evaluated for input a. Input a box is used for entering an optional descriptive name of input a.
12. Graphic representation of type of inputs (analog or digital) used by Math Function Block in use.
13. Selection of type of Math Function Block
14. Button for showing an overview of the Math Function
Block enabled.
15. Button for showing the Math Function Block shown in the box.
By enabling manual mode for setting maximums and minimums, you see the following:
16. Minimum value that Math Function Block output can assume.
17. Maximum value that Math Function Block output can assume.
18. Value of decimal figures attributable to output.
6
7
8
16
17
18
80290E_MHW_850-1650-1850_06-2021_ITA_pag. 241
Prenesi
Oglas