The function block can be used in three areas:
-
Raw value scaling, with the blocks: O_NORM and O_SCALE
-
Scaling in physical units, with the O_PHYS block
-
Evaluation of error information, with the blocks O_NORM, O_SCALE and O_PHYS and additional evaluation of status information (warnings) using the O_..._WARN block
Basic circuit connections
The input OUT_REG must always be connected with the number of an output word (%MW).
For raw value scaling, the inputs MN_RAW (minimum raw value, corresponds to 0%) and MX_RAW (maximum raw value, corresponds to 100%) must also be connected.
Scaling in physical units
For scaling in physical units the inputs MN_PHYS and MX_PHYS must also be connected.
DIV10 is an auxiliary input used to avoid floating point values in the range 0.2 V ... 1 V. For this area MN_PHYS=2, MX_PHYS=10 and DIV10=TRUE.
For most ranges this input can remain open (or be assigned FALSE).
e.g. +/-20 mA: here is MN_PHYS=-20, MX_PHYS=20
Evaluation of error information
For the evaluation of error information the inputs ST_CH, ST_REG, ST_MODE and ST_HIGH must also be configured.
ST_HIGH is an auxiliary input in case the status byte (error information) is located in the registers high byte. For most ranges this input can remain open (or be assigned FALSE).
The input channel number (1 ... n) is given to ST_CH.
If ST_CH is entered, ST_REG and ST_MODE must also be entered.
ST_REG must be connected with the number of an input word (%IW), where the status information is located (error and/or warnings).
ST_MODE determines how the status word is evaluated.
The following 8 modes are defined:
Value
|
Mode
|
see also module description for
|
1
|
AVI_STATUS_MODE
|
AVI030
|
2
|
ACI_STATUS_MODE
|
ACI030
|
3
|
ACO_STATUS_MODE
|
ACO130
|
4
|
ADU_STATUS_MODE
|
Not supported
|
5
|
DAU204_STATUS_MODE
|
Not supported
|
6
|
ADU205_STATUS_MODE
|
Not supported
|
7
|
AMM090_STATUS_MODE
|
AMM090
|
8
|
ADU214_STATUS_MODE
|
Not supported
|