Linearizing of input characteristics
The user can select the number of breakpoints setting parameter SYS-02.
The number of linear functions used is always equal to SYS-02 minus 1.
Prerequisite for a correct functionality of this macro is that the X values are in an ordered sequence X1 < X2 < X3 < X4 < X5.
The macro switches between 4 linear converter statements:
If the X values are not in an ordered sequence the macro may give unexpected results.
This macro provides partially linearized input characteristics for non-linear signals.
The input value range can be linearized with four linear segments and 5 breakpoints.
A system SYS-01 parameter allows the user to select, if the breakpoints shall be defined with:
If you decide to use the parameters the analog inputs do not care, they will take their default values.
If you use analog values, you should create analog value points and check the option setpoint at the bottom of the datapoint properties .
Manual setting of analog values marked as setpoint
The next two pictures shows the characteristics as handled by this macro.
Description |
Default value |
SYS-01: define characteristics breakpoints 0 = with parameters 1 = with inputs |
1 |
SYS-02: number of breakpoints |
5 |
CHR-01: X1 |
0 |
CHR-02: Y1 |
0 |
CHR-03: X2 |
2 |
CHR-04: Y2 |
60 |
CHR-05: X3 |
4 |
CHR-06: Y3 |
80 |
CHR-07: X4 |
7 |
CHR-08: Y4 |
95 |
CHR-09: X5 |
10 |
CHR-10: Y5 |
100 |