128
ifm
Programming Manual
ecomatmobile
CabinetController (CR0301) Runtime System V05
2016-04-21
ifm function elements
ifm function elements for the device CR0301
>
NORM
401
Unit type = function block (FB)
Unit is contained in the library
ifm_CR0301_Vxxyyzz.LIB
Symbol in CODESYS:
>
Description
404
NORM normalises a value within defined limits to a value with new limits.
The FB normalises a value of type WORD within the limits of XH and XL to an output value within the
limits of YH and YL. This FB is for example used for generating PWM values from analogue input
values.
NOTE
► The value for X must be in the defined input range between XL and XH!
There is no internal plausibility check of the value X.
>
Due to rounding errors the normalised value can deviate by 1.
>
If the limits (XH/XL or YH/YL) are defined in an inverted manner, normalisation is also done in an
inverted manner.
>
Parameters of the inputs
405
Parameter
Data type
Description
X
WORD
input value
XH
WORD
Upper limit of input value range [increments]
XL
WORD
Lower limit of input value range [increments]
YH
WORD
Upper limit of output value range
YL
WORD
Lower limit of output value range
>
Parameters of the outputs
406
Parameter
Data type
Description
Y
WORD
output value
Summary of Contents for Ecomat 100 Mobile CR0301
Page 212: ......