page 112
9.5. Processing of variables
Function
NORM
Library
CRxxxx.LIB
Function symbol
Purpose
Norms a value within set limits to a value with new limits
Parameter
Function inputs
Function output
Description
The function NORM norms a value of type WORD which lies
within the limits XH and HL to an output value within the limits
YH and YL.
This function is e.g. used for creating PWM values from analog
input values.
Example
not normed value:
50
bottom limit value input:
0
upper limit value input:
100
bottom limit value output:
0
upper limit value output:
2000
normed value:
1000
Due to rounding errors in hexadecimal figures a normed value
might deviate by 1. If the limits (XH/XL or YH/YL) are stated
invertedly the norming is also inverted.
Name
Data type Description
X
WORD
output value
XH
WORD
bottom limit input value range
XL
WORD
upper limit input value range
YH
WORD
bottom limit output value range
YL
WORD
upper limit output value range
Name
Data type Description
Y
WORD
normed data type BYTE
Summary of Contents for ecomat 100 R 360 Series
Page 1: ...System manual ecomat 100 type R 360 ...
Page 14: ...page 14 ...
Page 26: ...page 26 ...
Page 86: ...page 86 ...
Page 100: ...page 100 ...
Page 126: ...page 126 ...
Page 146: ...page 146 ...
Page 162: ...page 162 ...
Page 163: ...page 163 Annex 2 Wiring Annex 2 1 Type CR0015 ...
Page 164: ...page 164 Annex 2 2 Type CR0016 ...
Page 165: ...page 165 Annex 2 3 Type CR0017 ...
Page 166: ...page 166 Annex 2 4 Type CR0501 ...