Siemens SIMATIC S5-115F User Manual page 173

Simatic s5 programmable controller
Hide thumbs Also See for SIMATIC S5-115F:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents