0% found this document useful (0 votes)
297 views16 pages

Analog Value Processing: High Level

Analog modules allow physical process values like pressure, temperature, and flow to be measured and controlled. Sensors convert physical quantities into standard analog signals that are fed into analog input modules. These modules use an ADC to convert the analog signals into digital values that the CPU can process. The CPU then performs tasks like scaling and outputs results to analog output modules. These modules use a DAC to convert the digital values back into analog control signals for actuators to influence physical processes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
297 views16 pages

Analog Value Processing: High Level

Analog modules allow physical process values like pressure, temperature, and flow to be measured and controlled. Sensors convert physical quantities into standard analog signals that are fed into analog input modules. These modules use an ADC to convert the analog signals into digital values that the CPU can process. The CPU then performs tasks like scaling and outputs results to analog output modules. These modules use a DAC to convert the digital values back into analog control signals for actuators to influence physical processes.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Analog Value Processing

High Level

Level
Transmitter
Low Level

SIMATIC S7 Date: 18.09.2009


SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_04E.1

Contents Page
Objectives .................................................................................................................................... 2
Using Analog Modules ……........................................................................................................ 3
Measuring Range Modules …….................................................................................................... 4
Analog Module Properties ........................................................................................................... 5
Analog Input Modules …............................................................................................................. 6
Analog Output Modules ….......................................................................................................... 7
Analog Value Representation and Measured Value Resolution .................................................. 8
Analog Value Representation of Different Measuring Ranges ................................................... 9
Analog Value Representation for the Analog Outputs .................................................................. 10
Analog Module Addresses for the S7-300 .................................................................................... 11
Scaling Analog Input Values ……………………………………................................................ 12
Unscaling Analog Output Values ................................................................................................ 13
Exercise 1: Assigning Parameters to the SM331 Analog Module ……....................................... 14
Exercise 2: Hardware Diagnosis with Diagnostic Interrupt ….……………………....................... 15
Exercise 3: Checking the Weight (OB 35) ................................................................................... 16

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 1 Analog Value Processing
Objectives

Upon completion of the chapter the participant will ...

... know the principle of analog value processing

... be able to assign parameters to an analog module and will be able


to set the measuring range module to the correct position

... be able to address an analog module

... be able to interpret the resolution of a module

... be able to evaluate the diagnostic interrupt of an analog module

SIMATIC S7 Date: 18.09.2009


SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_04E.2

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 2 Analog Value Processing
Using Analog Modules
Process Analog input module CPU

Physical Standard :
quantity analog signal Result :
memory :
:
PIW ... :
PIW ... :
MR ADC L PIW 304
module :::
Sensor Transducer PIW ... ..
..
..
..
• Pressure ± 500mV ..
• Temperature ± 1V ..
• Flow ± 5V ..
• Speed ± 10V ..
• pH value ± 20mA ..
• Viscosity 4 to 20mA ..
• etc. etc. Analog output module ..
..
..
..
..
..
..
..
PQW ... ..
Physical Analog PQW ...
DAC ::: T PQW 304
quantity actuator
PQW ... :

SIMATIC S7 Date: 18.09.2009


SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_04E.3

Principle In a production process, there are a variety of physical quantities (such as


pressure, temperature, speed, rotational speed, pH value, and viscosity) that
need to be processed in the PLC for automation purposes.

Sensor Measuring sensors respond to changes in the quantity to be measured by such


things as linear expansion, angular ductability, and alteration of electrical
conductivity.

Transducer Measuring transducers convert these above-mentioned changes into standard


analog signals, such as: ± 500mV, ± 10V, ± 20mA, 4 to 20mA.
These signals are supplied to the analog input modules.

ADC Before these analog values can be processed in the CPU, they must be
converted to digital form. The ADC (Analog-to-Digital Converter) on the analog
input module handles this conversion.
The analog-to-digital conversion is performed sequentially. This means the
signals are converted for each analog input channel in turn.

Result Memory The result of the conversion is stored in the result memory and remains there
until it is overwritten by a new value.
You can use the "L PIW..." load instruction to read the converted analog value.

Analog Output The "T PQW..." transfer instruction is used to write the analog values the user
program calculated to an analog output module, where a DAC (Digital-to-Analog
Converter) converts them to standard analog signals.

Analog Actuators The analog output signals are standard signals such as ± 10V or 4 to 20mA. You
can connect the analog actuators directly to the analog output modules without
using converters.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 3 Analog Value Processing
Measuring Range Modules

SIMATIC S7 Date: 18.09.2009


SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_04E.4

Type of Measurement You set the type of measurement and the measuring range when you set
coding keys on the measuring range module.
Special modules without coding keys have different terminals for voltage and
current measurement. Thus, you set the type of measurement by wiring the
appropriate terminal.

Measuring Range The measuring range modules with their coding keys are located on the left-
Module hand side of the module. You must set them correctly before installing the
module.
The possible settings are "A", "B", "C" and "D".
The settings for the various types of measurement and measuring ranges are
printed on the module.

Channel Groups On some modules, several channels are grouped together to form a channel
group. In this case, the coding key setting applies to the whole channel group.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 4 Analog Value Processing
Analog Module Properties

Double-click

SIMATIC S7 Date: 18.09.2009


SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_04E.5

Parameter The tool for assigning parameters to analog input and output modules in
Assignment SIMATIC S7 is HW Config. The settings or parameters of all modules are
loaded into the CPU. The CPU must be in the STOP state to do this. In a
subsequent CPU warm restart, the CPU transfers these parameters to the
relevant modules via the backplane bus.

Diagnostic Interrupt The module triggers a diagnostic interrupt on the CPU when an error occurs.
Then an error information is entered in the diagnostic buffer and the CPU
immediately processes the program in Diagnostic Interrupt Organization Block
OB82. In this block, the user can program the necessary response to the error
that occurred.
Which errors an analog module can recognize depends on the module type.
Error examples:
• Incorrect parameter assignment data
• Short circuit to ground (only for analog output channels)
• Wire break
• Missing load voltage L+

Hardware interrupt The module triggers a hardware interrupt when a particular event occurs (such
as exceeding a voltage limit on a channel of an analog input module). Then the
CPU immediately processes an interrupt program that the user stores in one of
OB40 to 47, to determine the response to the event.

Note: Only the first channel of a channel group can monitor the input value for the
assigned limit values!

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 5 Analog Value Processing
Analog Input Modules
SM335 (Inputs) SM331

SIMATIC S7 Date: 18.09.2009


SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_04E.6

Settings • Measuring Type: Click the field to display and select the available
measurement types (voltage, current...). The entry "deactivated" is selected
for unused channels or channel groups. On the module, these channels
have to be grounded.
• Measuring Range: Click the field to display and select the available effective
ranges for the corresponding measurement type.
• Position of Measuring Range Selection Module: When you select a
measuring type and a measuring range, a particular position becomes
necessary on the measuring range module. This is displayed.
• Integration time and Interference frequency suppression are quantities that
are interdependent.

Integration Time When you use the “HW Config” tool, the resolution is specified indirectly
through the selection of an integration time.
The following table for SM331 illustrates the relationship between integration
time, resolution and interference frequency suppression:
Integration time Resolution Interference frequency suppression
(ms) (in bits) (Hz)
2.5 9 + sign bit 400
16.6 12 + sign bit 60
20 12 + sign bit 50
100 14 + sign bit. 10

Conversion Time The (A/D) conversion time depends directly on the conversion method
(integrating method, successive approximation) of the analog input channel.
The conversion times for the individual modules can be found in the S7-300
manual.
For example: For an SM344, the conversion time for all 4 input channels is only
5ms.
Note Unused inputs should be deactivated. This then reduces the conversion time.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 6 Analog Value Processing
Analog Output Modules

SM335 (Outputs) SM332

SIMATIC S7 Date: 18.09.2009


SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_04E.7

General Depending on the type of analog output module, voltages and/or currents can
be encoded or output (see slide).

Reaction to The behavior of analog output modules in the CPU STOP state can be
CPU STOP parameterized:
• OCV (Outputs have no current or voltage):
In the CPU STOP state, the module outputs 0V or 0mA
• KLV (Keep last value)
In the CPU STOP state, the module outputs the last encoded value (voltage
or current)

Note Unused outputs should be deactivated. This then reduces the conversion time.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 7 Analog Value Processing
Analog Value Representation and Measured Value Resolution

Bit no. min. units 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0

Bit value Dec. Hex. VZ 214 213 212 211 210 29 28 27 26 25 24 23 22 21 20

8 128 80 * * * * * * * * * 0 0 0 0 0 0 0

9 64 40 * * * * * * * * * * 0 0 0 0 0 0

10 32 20 * * * * * * * * * * * 0 0 0 0 0
Reso-
lution
11 16 10 * * * * * * * * * * * * 0 0 0 0
in bits
+ sign
12 8 8 * * * * * * * * * * * * * 0 0 0

13 4 4 * * * * * * * * * * * * * * 0 0

14 2 2 * * * * * * * * * * * * * * * 0

15 1 1 * * * * * * * * * * * * * * * *

* = 0 or 1

SIMATIC S7 Date: 18.09.2009


SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_04E.8

Representation Negative analog values are represented as the two's complement.


The value is positive if bit No. 15=0 and negative if bit No.15=1.

Resolution If the resolution of an analog module is less than 16 bits, the analog value is
written into the accumulator left-justified. The unused less significant bit
positions are filled with "0"s.

Accuracy Resolutions of between 8 and 16 bits are possible, depending on the type of
module.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 8 Analog Value Processing
Analog Value Representation of Different Measuring Ranges

Voltage Current Resistance Temperature


such as: such as: such as: e.g. Pt100 (Standard)
Range
Meas.range Units Meas.range Units Meas.range Units Meas.range Units
± 10V 4 to 20mA 0 ...300Ohm -200...+850ºC

Overflow >= 11.759 32767 >= 22.815 32767 >=352.778 32767 >= 1000.1 32767

Overrange 11.7589 32511 22.810 32511 352.767 32511 1000.0 10000


: : : : : : : :
10.0004 27649 20.0005 27649 300.011 27649 850.1 8501

10.00 27648 20.000 27648 300.000 27648 850.0 8500


7.50 20736 16.000 20736 225.000 20736 : :
Rated range : : : : : : : :
-7.5 -20736 : : : : : :
-10.00 -27648 4.000 0 0.000 0 -200.0 -2000

Underrange - 10.0004 - 27649 3.9995 -1 -1 - 200.1 - 2001


Negative
: : : : : : :
values
- 11.759 - 32512 1.1852 - 4864 not - 4864 - 243.0 - 2430
Underflow <= - 11.76 - 32768 <= 1.1845 - 32768 possible - 32768 <= - 243.1 - 32768

SIMATIC S7 Date: 18.09.2009


SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_04E.9

Voltage, Current Encoding the symmetrical voltage or current ranges


(Symmetrical) • ± 80mV • ± 2.5 V • ± 3.2 mA
• ± 250 mV • ± 5V • ± 10 mA
• ± 500 mV • ± 10V • ± 20 mA
• ±1V
results in a rated range of -27648 to +27648.

Voltage, Current Encoding the asymmetrical voltage or current ranges


(Asymmetrical) • 0 to 2 V • 0 to 20 mA
• 1 to 5 V • 4 to 20 mA
results in a rated range of 0 to +27648.

Resistance Encoding the resistance ranges


• 0 to 150 Ohm
• 0 to 300 Ohm
• 0 to 600 Ohm
results in a rated range of 0 to +27648.

Temperature Temperatures are measured with resistance thermometers or thermocouples.


Encoding results in a rated range of ten times the temperature range:
Sensor: Temperature range: Rated range when encoded:
• Pt 100 -200 to + 850 ºC -2000 to + 8500
• Ni 100 -60 to + 250 ºC -600 to + 2500
• Thermocouple type K -270 to + 1372 ºC -2700 to + 13720
• Thermocouple type N -270 to + 1300 ºC -2700 to + 13000
• Thermocouple type J -210 to + 1200 ºC -2100 to + 12000
• Thermocouple type E -270 to + 1000 ºC -2700 to + 10000.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 9 Analog Value Processing
Analog Value Representation for the Analog Outputs

Voltage Current
Units
Range Output ranges: Output ranges:
0 to 10V 1 to 5V ± 10V 0 to 20mA 4 to 20mA ± 20mA

Overflow >=32767 0 0 0 0 0 0
Overrange 32511 11.7589 5.8794 11.7589 23.515 22.81 23.515
: : : : : : :
27649 10.0004 5.0002 10.0004 20.0007 20.005 20.0007

27648 10.0000 5.0000 10.0000 20.000 20.000 20.000


: : : : : : :
0 0 1.0000 0 0 4.000 0
: 0 : 0 :
Rated range - 6912 0.9999 : 3.9995 :
: :
- 6913 0 : 0 :
: : :
: 0 : 0 :
: : :
- 27648 -10.0000 -20.000

Underrange - 27649 - 10.0004 - 20.007


: : :
- 32512 - 11.7589 - 23.515

Underflow <=- 32513 0 0

SIMATIC S7 Date: 18.09.2009


SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_04E.10

Voltage, Current For symmetrical voltage or current ranges, a rated range of


Symmetrical -27648 to +27648 is converted to:
• ± 10V
• ± 20mA.

Voltage, Current For asymmetrical voltage or current ranges, a rated range of


Asymmetrical 0 to +27648 is converted to:
• 0 to 10V
• 1 to 5V
• 0 to 20mA
• 4 to 20mA.

Overflow If the value to be converted reaches the overflow range, the analog output
module is disabled (0V, 0mA).

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 10 Analog Value Processing
Analog Module Addresses for the S7-300

Rack 3 Power IM 640 656 672 688 704 720 736 752
Supply
(Receive)
to to to to to to to to
654 670 686 702 718 734 750 766

Power IM 512 528 544 560 576 592 608 624


Rack 2
Supply
(Receive) to to to to to to to to
526 542 558 574 590 606 622 638

Rack 1 Power IM 384 400 416 432 448 464 480 496
Supply
(Receive) to to to to to to to to
398 414 430 446 462 478 494 510

R Power IM 256 272 288 304 320 336 352 368


0
Supply CPU (Send) to to to to to to to to
270 286 302 318 334 350 366 382

Slot 2 3 4 5 6 7 8 9 10 11

SIMATIC S7 Date: 18.09.2009


SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_04E.11

Address Area The S7-300 has special address areas for analog inputs and analog outputs.
These areas are separate from the process image input (PII) and process image
output (PIQ) tables for digital input and output modules.
Each address area extends from byte 256 to byte 767. Each analog channel
occupies 2 bytes.

Access You use Load and Transfer instructions to access the analog modules.
Example: The statement "L PIW256" reads the first channel of the first module in
rack 0.

S7-400 On the S7-400, the address area for the analog modules starts at byte 512.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 11 Analog Value Processing
Scaling Analog Input Values

unipolar (M 0.0 = ´0´) bipolar (M 0.0 = ´1´)


(Sensor supplies only positive voltage) (Sensor also supplies negative voltage)
OUT OUT
HI_LIM = 500.0 HI_LIM = 500.0

Δ
A B
Δ

LO_LIM = 0.0 LO_LIM = 0.0


IN IN
0 x x+1 0 x x+1
27648 -27648 27648

SIMATIC S7 Date: 18.09.2009


SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_04E.12

Examples The level of a tank, whose volume is 500 liters, is to be measured in liters.
Example A shows the scaling when a sensor is used that supplies a measured
voltage of 0V when the tank is empty and a measured voltage of +10V when
the tank is full. Example B shows the scaling when a sensor is used that
supplies a measured voltage of -10V when the tank is empty and a measured
voltage of +10V when the tank is full.
Resolution In example B, the level is measured with twice the resolution or with half as
much measuring tolerance Δ, since the volume of the tank is scaled to the
greater units range of -27648 to +27648.
Scaling The analog module encrypts the voltage range of -10V to +10V in the value
range of -27648 to +27648. The conversion of this value range to the original
physical size (such as 0 l to 500 l) is called scaling.
The standard block FC 105 is used for scaling the analog value. FC 105 is
supplied with the STEP 7 software in the "Standard Library" in the "TI-S7
Converting Blocks" S7 program.
IN The analog value at input IN can be read in from the module directly or can be
passed from a data interface in INT format.
LO_LIM, HI_LIM Inputs LO_LIM (low limit) and HI_LIM (high limit) are used for specifying the
limits of the basic physical size. In the example, a conversion to the range 0 to
500 liters is made.
OUT The scaled value (physical size) is stored as a real number at output OUT
(LO_LIM <= OUT <= HI_LIM).
BIPOLAR At input BIPOLAR you can specify as to whether only positive or also negative
values are to be converted. If an operand with the state ´0´ (unipolar) is passed
to the parameter, scaling is made for the range 0 to +27648. If the operand
state is ´1´ (bipolar), scaling is made for the range -27648 to +27648.
RET_VAL The output RET_VAL supplies the value 0 when execution is error free.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 12 Analog Value Processing
Unscaling Analog Output Values

bipolar (M 0.0 = ´1´)


(Actuator is energized with
positive and negative values)

OUT

27648

B
OUT
0
27648 IN
A 0.0 100.0
(LO_LIM) (HI_LIM)
unipolar (M 0.0 = ´0´)
(Actuator is energized
only with positive values)

0
IN -27648
0.0 100.0
(LO_LIM) (HI_LIM)

SIMATIC S7 Date: 18.09.2009


SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_04E.13

Examples An analog value in the range 0.0 to 100.0% that is calculated by the user program
is converted (unscaled) with FC106 to the range 0 to +27648 (uni-polar) or -
27648 to +27648 (bipolar). When the unscaled value is output to an analog output
module, this module will energize the analog actuator (such as a servo valve)
with a value such as 0V to +10V (unipolar) or -10V to +10V (bipolar).
Example A shows the scaling when an actuator is used that is to be energized
with the value 0 (0V or 0mA) when the program value is 0% and is to be
energized with maximum value ( such as +10V or 20mA) when the program value
is 100%.
Example B shows the scaling when an actuator is used that is to be energized
with the minimum value (-10V or -20mA) when the program value is 0% and is to
be energized with the maximum value (such as +10V or 20mA) when the
program value is 100%.
Unscaling A value calculated by the program - in the example shown a percentage - must
be converted (unscaled) to the value range of the analog output module.
The standard block FC 106 is used for unscaling. FC 106 is supplied with the
STEP 7 software in the "Standard Library" in the "TI-S7 Converting Blocks" S7
program.
IN The value calculated by the program must be passed in the REAL format.
LO_LIM, HI_LIM Inputs LO_LIM (low limit) and HI_LIM (high limit) specify the limits for the
program value. In the example, this is the range 0.0% to 100.0%.
OUT The unscaled value is output in the INT format at output OUT.
BIPOLAR At input BIPOLAR you can specify as to whether only positive or also negative
values are to be converted. If an operand with the state ´0´ (unipolar) is passed to
the parameter, unscaling is made for the range 0 to +27648. If the operand state
is ´1´ (bipolar), unscaling is made for the range -27648 to +27648.
RET_VAL The output RET_VAL supplies the value 0 when execution is error free.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 13 Analog Value Processing
Exercise 1: Assigning Parameters to the SM331 Analog Module

SIMATIC S7 Date: 18.09.2009


SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_04E.14

Task You are to assign parameters to the analog module using the parameters shown
in the slide above.

What to Do 1. Use the HW Config tool to open your HW Station.


SIMATIC Manager Æ select the S7 station Æ Double-click on the Hardware
icon
2. Start the parameter-assignment dialog for the analog module.
Double-click on the analog module
3. Assign parameters to the module by specifying the Measuring Type and the
Measuring Range for the Inputs as is indicated in the slide above. Activate
the Diagnostic Interrupt (don‘t forget the √ for Group Diagnostics!)
4. Save and compile the modified hardware configuration / parameter
assignment.
HW Config Æ Station Æ Save and compile
5. Download the modified system data to the CPU.
HW Config Æ PLC Æ Download...

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 14 Analog Value Processing
Exercise 2: Hardware Diagnosis with Diagnostic Interrupt

SIMATIC S7 Date: 18.09.2009


SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_04E.15

Task After you have assigned parameters to your analog module in the previous
exercise and have activated the diagnostic interrupt, you are now to initiate a
diagnostic interrupt by knowingly setting the simulator voltage too high.
After the CPU has gone into the STOP state because of the diagnostic interrupt,
"troubleshoot" the "error" that occurred with the Hardware Diagnostics test
function (see slide).

What to Do 1. On the simulator, set a too small or a too great voltage


(Voltage < -12V or voltage > +12V)
2. Activate the "Diagnose hardware" test function.
SIMATIC Manager Æ select the Station Æ PLC Æ Diagnostic/Setting Æ
Hardware Diagnostics
3. Double-click on the CPU to view the event entry in the diagnostic buffer.
4. Double-click on the analog module to view the diagnostic data.

Note The Diagnostic Interrupt OB 82 can be programmed to give you detailed


information about the error event. (evaluation of the OB 82 start information) .

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 15 Analog Value Processing
Exercise 3: Checking the Weight (OB 35)
DI DO Display Preselect
L_Weight_invalid Q 4.0
0 10
L_SYSTEM Q 4.1 0 0 0 5
L_MAN Q 4.2 V
"IW_Thumbw" (IW 2) AI1
L_AUTO Q 4.3 AI2 AO1
AO2
-15V...+15V

Statistic Values / Weight


L_Restart_man Q 4.5 AI1 AI2
L_Restart_aut Q 4.6
Preset Weight
"QW_DigDisp" (QW 6) "PIW_AI1" (PIW 304)
I 1.0 T_Ackn_Fault L_Conv_Fault Q 5.0

Structogram OB 35
Read in weight and scale using
Library Block FC 105
Store in "MW_Weight" (MW 36)
Weight > 400 kg

NO YES
Display Weight < 100 kg
of current
weight NO YES
Weight OK: Weight invalid: M 35.0 = 0
M 35.0 = 1 Flashing light at Q 4.0

SIMATIC S7 Date: 18.09.2009


SITRAIN Training for
Automation and Industrial Solutions
Siemens AG 2008. All rights reserved. File: PRO2_04E.16

Function (OB35) The part weight (0 to 500kg) is simulated via the simulator potentiometer
Weight Check "PIW_AI1" (PIW 304) and displayed on the touchpanel screen "Conv" at the
output field "Weight" (MW 36).
As long as an invalid weight (weight < 100kg or weight > 400kg) is set…
• … the simulator indicator light "L_Weight_invalid" (Q 4.0) flashes
• … the indicator light on the light barrier bay is dark because, with an invalid
weight, no new part may be placed on the conveyor
• … no new transport function can be started

What to Do 1. In the hardware configuration of your station, set the OB35 call interval to
250ms.
2. Write a program for the OB 35 block with the required functions
3. In "FC_Signal" (FC 14) and in "FC_ConvMotor" (FC 16), program the
above-mentioned interlocks.

SITRAIN Training for ST-PRO2


Automation and Industrial Solutions Page 16 Analog Value Processing

You might also like