Analog Value Processing
S5-90U/S5-95U
12.3
Example: Analog Value Processing with FB250 and FB251
There are eight analog inputs and one analog output on the S5-95U
.
The inputs are preset at the
factory so that if no parameters are entered, the inputs can only be read in via a direct I/O access
(L PW). If you want to read in the inputs cyclically into the PII, you must first enter parameters in
DB1 (see Section 12.1).
Example:
You can use a fan to help regulate the temperature in a room. The temperature
should fluctuate between 20 and 28 degrees Celsius (68 degrees Fahrenheit and
82 degrees Fahrenheit). The fan speed depends on the room temperature. You can
input the room temperature into FB250. You can output the setpoint value for the
fan speed in FB251.
Prerequisites:
•
You have wired the analog connections (see Section 3).
•
You have parameterized an analog input in the default DB1 (”AI1”; see Section 12.1),
transferred DB1 to the PLC and switched the PLC from STOP to RUN.
Reading in Analog Values (FB250)
In order to read in the analog value, call up FB250 on the programmer and enter its parameters as
they are shown in the example (see Table 12-17). Figure 12-2 shows you how the function block
operates. There is an explanation of the individual parameters in Table 12-18.
FB 250 reads in the analog values of analog input channel 0 cyclically and transfers an XA value to
the output in the range specified (scaled) by the user (see Figure 12-2).
12-14
EWA 4NEB 812 6115-02b
Содержание SIMATIC S5-90U
Страница 3: ...SIMATIC S5 S5 90U S5 95U Programmable Controller System Manual EWA 4NEB 812 6115 02b Edition 03 ...
Страница 6: ...EWA 4NEB 812 6115 02b ...
Страница 16: ...EWA 4NEB 812 6115 02b ...
Страница 23: ......
Страница 32: ...EWA 4NEB 812 6115 02b ...
Страница 46: ...EWA 4NEB 812 6115 02b ...
Страница 50: ......
Страница 51: ......
Страница 52: ......
Страница 53: ......
Страница 54: ......
Страница 55: ......
Страница 57: ......
Страница 58: ......
Страница 59: ......
Страница 64: ......
Страница 65: ......
Страница 66: ......
Страница 67: ......
Страница 89: ......
Страница 102: ...EWA 4NEB 812 6115 02b ...
Страница 118: ...EWA 4NEB 812 6115 02b ...
Страница 242: ...EWA 4NEB 812 6115 02b ...
Страница 288: ...EWA 4NEB 812 6115 02b ...
Страница 300: ...EWA 4NEB 812 6115 02b ...
Страница 362: ...EWA 4NEB 812 6115 02b ...
Страница 536: ...EWA 4NEB 812 6115 02b ...
Страница 538: ...EWA 4NEB 812 6115 02b ...
Страница 540: ...EWA 4NEB 812 6115 02b ...
Страница 562: ...EWA 4NEB 812 6115 02b ...
Страница 564: ...EWA 4NEB 812 6115 02b ...
Страница 590: ...EWA 4NEB 812 6115 02b ...
Страница 596: ...EWA 4NEB 812 6115 02b ...
Страница 598: ...EWA 4NEB 812 6115 02b ...
Страница 604: ...EWA 4NEB 812 6115 02b ...
Страница 606: ...EWA 4NEB 812 6115 02b ...
Страница 608: ...EWA 4NEB 812 6115 02b ...
Страница 610: ...EWA 4NEB 812 6115 02b ...
Страница 620: ...EWA 4NEB 812 6115 02b ...