Analog Value Processing
S5-115F Manual
Outputting an analog value
-FB 251-
Use function block FB 251 to output analog values to analog output modules. Specify the type of
analog representation of the module (channel type) in the KNKT parameter. Values from the
range between the “lower limit (UGR)” and the “upper limit (OGR)” parameters are converted to
the nominal range of the module in question:
for channel type 0 (unipolar representation):
xa =
1024 ·(XE-UGR)
OGR-UGR
for channel type 1 (bipolar representation):
xa =
1024 · (2 · XE-OGR-UGR)
OGR -UGR
where:
XE is the digital value specified in the FB
xa is value written to the module
Call and parameter assignment:
Type
Parameter
Meaning
Data
Type
Assignment
STL
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a
BG
Module address
D
KF
128 to 240
KNKT
Channel number
Channel type
D
KF
KY =
x,y
x
=
0 to 7
y
=
0;1
0: unipolar representation
1: bipolar fixed-point
number
OGR
Upper limit of the
output value
D
KF
D
KF
-32768 to +32767
-32768 to +32767
UGR
Lower limit of the
output value
XE
Analog value to be
output
E
Input value (fixed-point) in
the UGR to OGR range
FEH
Error when
setting
the limit value
A
BI
”1” if UGR = OGR,
for illegal channel or slot
number, or illegal channel
type
BU
Input value
exceeds
UGR or OGR
A
BI
If ”1”, XE is outside the
range (UGR;OGR).
XE assumes the limit value
:IU FB 251
NAME
:AGF:ANAU
XE
:
BG
:
KNKT
:
OGR
:
UGR
:
FEH
:
BU
:
W
6-42
EWA 4NEB 811 6148-02