Manual BG41/BG42/BG43 Interface modules
Rev. 99/49 3-59
3.2.9.5.8 FB57 (IN_MW), reading of analogue value in the flag word
With this data handling block FB57 (IN_MW) one or all analogue inputs can be read.
The following parameters are to be transferred when loading FB57:
Des. Format Explanation
ADR KF Peripheral base address of the building
block
K/EI KY Number of channels / analogue input
WERT W Output value
FEHL BY Error byte
Tab. 3-15: List of parameters for the loading of FB57
The following details are necessary for the abovementioned parameters:
ADR
(peripher)
Input of the peripheral address, under which the building block can be controlled
by the PLC. This address can be set with the DIL switches S1 and S2. Further
details can be found in chapter 5.
K/EI
K: Number of channels to which the module is connected (1-3).
EI: Number of analogue inputs (1-9)
At 9 all of the module’s analogue inputs are read.
WERT
Flag word, in which the analogue value is filed.
If it is entered at EI 9, all input values are filed from the flag word on, which has
been entered in WERT (VALUE).
FEHL
This byte has a value of 0, if functioning correctly. In the case of a malfunction an
error code is entered. The error is acknowledged automatically, i.e. the byte is
reset to 0 once the cause of the error has been eliminated.
1 Building block not ready
2 Building block does not answer