06 Analog Input Modules PDF
06 Analog Input Modules PDF
Overview This chapter contains a description of the structure and the operation of the
VIPA analog input modules.
System overview
Input modules The following gives you an overview of the analog input modules of the
SM 331 System 300V available from VIPA:
F0 F0
F1 F1
F2
F3
F4
F5
F6
F7
X 2 X 2 X 2
3 4 3 4 3 4
Security hint
Attention!
Please regard that the modules described here do not have hardware
precautions against wrong parameterization res. wrong wiring. The setting
of the according measuring range is exclusively at the project engineering.
For example, the modules may get a defect if you connect a voltage at
parameterized current measuring.
At the project engineering you should be very careful.
Please regard also that disconnecting res. connecting during operation is
not possible!
Principles
Cables for analog For analog signals you have to use isolated cables to reduce interference.
signals The cable screening should be grounded at both ends. If there are
differences in the potential between the cable ends, there may occur a
potential compensating current that could disturb the analog signals. In this
case you should ground the cable screening only at one end.
Connecting The analog input modules provide variant connecting possibilities for:
test probes Current sensor
Voltage senor
Resistance thermometer
Thermocouple
Resistors
Note!
Please take care of the correct polarity when installing the measuring
transducer! Please install short circuits at non used inputs by connecting
the positive contact with the channel ground of the according channel.
Parameterization The analog input modules from VIPA do not have any measuring range
plug.
The modules are parameterized via the hardware configurator or during
runtime via SFCs.
Diagnostic The modules that are described in this chapter except the 331-1KF01 offer
functions diagnostics functions.
The following errors may cause diagnostics:
Error in the project engineering res. parameterization
Wire break at current measuring
Measuring range overstep
Measuring range shortfall
Common Mode Error
Lost process interrupt
Failure of the external power supply
For diagnostic evaluation during runtime, you may use the SFCs 51 and
59. They allow you to request detailed diagnostic information and to react
to it.
Parameterization - Basics
Overview The analog input modules from VIPA do not have any measuring range
plug, so the measuring range is to be set by configuration.
There are the following possibilities for parameterization:
Parameterization by hardware configuration of Siemens SIMATIC
manager or with WinPLC7 from VIPA.
Parameterization during run time by means of SFCs.
Parameters The following parameters can be adjusted at the analog input modules:
Starting address of the input data
Measuring range, measuring type and integration time
Diagnostics and interrupt reaction (only 331-7Kx01)
Parameterization By using the SFCs 55, 56 and 57 you may change the parameters of the
during runtime analog modules during runtime via the CPU. The time needed until the new
parameterization is valid can last up to a few ms. During this time the
measuring value 7FFFh is issued.
The following example shows the assignment of record set 1 to the module
331-7Kx01 during run time.
Example
Get mode As shown in the following illustration the parameter mode is made up of the
coding of the measuring range and measuring type during run time
parameterization each channel respectively channel group.
7 4 3 0 Bit-No.
Byte 2 ...9
Example Referring to the example specified above the mode is determined in the
following:
For the module 331-7Kx01 results from the table in the case of
"Thermocouple with compensation internal, linear" the binary coding for
measuring type: 1101b.
For Measuring range "Type S" the binary measuring range coding results
as: 0100b.
By joining the two binary values you receive the following byte as mode:
1101 0100b = D4h.
331-1KF01 - AI 8x13Bit
Description The analog input module transforms analog signals from the process into
digital signals for the internal processing.
The module is pin and function compatible to the known module from
Siemens. Plugging and unplugging during operation, is not supported.
Voltage and current encoders, resistors and resistor thermometers may be
connected as sensors
Properties 8 inputs
Measuring value resolution 12Bit + sign
Isolated to the backplane bus
Default After Power ON the module has the following default configuration. These
configuration can be changed by hardware configuration.
measuring range: 10V for all channels
integration time: 60ms
2 6 U+
7 I+
26 U+
27 I+
Pin assignment
1 U+ channel 0 1 U+
AI 8x13Bit
2 I+ channel 0 2 I+
3 S- channel 0 CH 0
3 S-
4 M+ channel 0 4 M+
5 M- channel 0 5 M-
6 U+ channel 1 6 U+
7 I+ channel 1 7 I+
S-
8 S- channel 1 CH 1 8
9 M+ channel 1 9 M+
SM331
10 M- channel 1 10 M-
11 U+
11 U+ channel 2
12 I+
12 I+ channel 2
13 S- channel 2 CH 2 13 S-
14 M+
14 M+ channel 2
15 M-
15 M- channel 2
16 U+
16 U+ channel 3
17 I+
17 I+ channel 3 X 2
3 4
19 M+ channel 3 19 M+
20 M-
20 M- channel 3
21 U+ channel 4 21 U+
22 I+ channel 4 22 I+
23 S- channel 4 CH 4
23 S-
24 M+ channel 4 24 M+
25 M- channel 4 25 M-
26 U+ channel 5 26 U+
27 I+
27 I+ channel 5
S-
28 S- channel 5 CH 5 28
29 M+
29 M+ channel 5
30 M- channel 5 30 M-
31 U+
31 U+ channel 6
32 I+
32 I+ channel 6
33 S- channel 6 CH 6 33 S-
34 M+ channel 6 34 M+
35 M- channel 6 35 M-
36 U+ channel 7 36 U+
37 I+ channel 7 37 I+
S-
38 S- channel 7 CH 7 38
39 M+ channel 7 39 M+
40 M- channel 7 40 M-
Wiring diagrams The following illustration shows the connection options for the different
measuring ranges. The assignment to the measuring ranges is to find in
the column "Conn." of the table "Measuring" on the next pages.
1 2 3 4 5 6
U+ U+ U+ U+ U+ U+
I+ I+ I+ I+ I+ I+
S- S- S- S- S- S-
CH x V
M+ M+ A M+ M+ M+ M+
M- M- M- mV M- M- M- not wired
Note!
Please take care that the maximum permissible common-mode voltage of
2V between the inputs at connection of voltage and current giver is not
exceeded. To avoid wrong measurements you connect the individual
connections M- with each other.
At measuring of resistances and resistance thermometers a connection of
the M- connections is not required.
Temporarily not used inputs with activated channel must be connected with
the concerning ground. When not used channels are deactivated this is not
necessary.
Representation of Analog values are exclusively processed by the CPU in a binary format.
analog values For this the analog module transforms every process signal into a digital
and transfers this as word to the CPU.
At similar nominal range, the digitalized analog value for in- and output is
identical..
Resolution Because the resolution of the module is 12Bit plus sign-Bit, the not used low
value positions (3 Bit) are filled with "0".
For the sign Bit is valid:
Bit 15 = "0" positive value
Bit 15 = "1" negative value
Overview After Power ON the module is set to 10V for all channels with an
integration time of 60ms.
Via a hardware configuration you may parameterize the channels
individually.
Place module Start the hardware configurator with the project the analog modules are
to be configured.
To place the analog module open the hardware catalog. There the
module can be found at SIMATIC 300/SM-300/AI-300, order no.: 6ES7
331-1KF01-0AB0.
Choose the according module and drag & drop it to the concerning slot
in the hardware configurator.
Parameterize the Via double click on the wanted module in the hardware configurator you
module open the concerning parameter window.
You may alter the following parameters:
Start address of the data of the module stored in the CPU
Measuring range, measuring type and integration times for all of the 8
channels
Mode per Channel The following section shows an overview of all measuring types and ranges
Byte 2 ...9
7 4 3 0 Bit-No.
plus binary coding for the parameterization. Additionally, the wiring diagram
assigned to the measuring range is shown in brackets.
Coding for Coding for
measuring type measuring range
1 2 3 4 5 6
U+ U+ U+ U+ U+ U+
I+ I+ I+ I+ I+ I+
S- S- S- S- S- S-
CH x V
M+ M+ A M+ M+ M+ M+
M- M- M- mV M- M- M- not wired
331-7Kx01 - AI 8(2)x12Bit
Description The analog input modules transform analog signals from the process into
digital signals for the internal processing. The modules are pin and function
compatible to the modules from Siemens with the same name.
Please regard that contrary to the Siemens modules the modules specified
here do not have any measuring range plug. The attitude of the designated
measuring range exclusively takes place during software project
engineering. Plugging and unplugging during operation, is not supported.
Voltage and current sensors, thermocouples, resistors and resistance
thermometers may be connected.
Measuring range After Power ON both modules have the following default configuration.
after Power ON These can be changed by hardware configuration:
measuring range: 10V for all channels
integration time: 20ms
Interrupts deactivated
Pin assignment
status monitor
L+
1 Power supply DC 24V AI 8x12Bit
SF SF LED (red)
2 + Channel 0
Group error, ON as
3 Ground Channel 0 F0 soon as a diagnostic
4 + Channel 1
entry is present
5 Ground Channel 1 F1
respectively during
6 + Channel 2
F2 missing external
7 Ground Channel 2
voltage supply
8 + Channel 3 F3
9 Ground Channel 3
10 + Compensation slot
= SM331 F0...7 LED (red)
11 Ground Compens. slot
Channel error,
12 + Channel 4
ON together with SF
13 Ground Channel 4 F4
if error respectively
14 + Channel 5
overflow measuring
15 Ground Channel 5 F5
range per channel
16 + Channel 6
F6
17 Ground Channel 6
18 + Channel 7 F7
19 Ground Channel 7 X 2
3 4
Connection of Regarding the fact, that parameterized inputs can be left unused due to the
sensors building of channel groups, you have to connect the unused inputs with the
associated ground.
If you want to use the internal compensation when deploying thermo-
couples, the 2 COMP inputs have to be bridged too.
In the following all connection types of sensors for a pair of channels are
specified.
2wire measurand L+
transducer M
M+
2wire
measurand P
M- transducer
Lo-
Bus ADU M+
gic
2wire
M- measurand P
transducer
M+
4wire
measurand P
M- transducer
Lo-
Bus ADU M+
gic
4wire
M- measurand P
transducer
M L+
Installation of The following picture shows the installation of voltage sensors at a channel
voltage sensors pair of a potential separated analog input module:
M+
M-
Lo- ADU
Bus M+
gic
M-
Installation of The thermo pair consists of two wires of different metals or metal alloys
thermocouples which are soldered or welded together at the ends. The different combi-
AI 8(2)x12Bit nations of metals cause different thermocouple types, e.g. K, J, N.
Operating basics Independent from the type of the thermocouple the principle of measuring
is identical for all types:
When the measuring point has another temperature than the free ends of
the thermo pair (connection point), a voltage occurs between the free ends,
the thermo voltage.
The amount of the thermo voltage depends on the difference between the
temperature at the measuring point and the temperature at the free ends.
For a thermo pair always records a temperature difference, the free ends
have to be set on a comparison point with known temperature, to
determine the temperature at the measuring point.
Extension to a The thermo pairs may be extended from your connecting point to a point
comparison point with known temperature (comparison point) via compensating lines.
The compensating lines have the same material as the wires of the
thermocouple. The leads are out of copper. In this case you should use the
external compensation. Please regard pole correct installation, for this may
cause enormous measuring errors.
Installation variants The following pictures show the different installation possibilities of
thermocouple with and without compensation slot.
COMP+ L+
COMP- COMP+ Compensating lines:
same material
COMP- as thermocouple
M+
When connecting thermocouples with one
compensation slot, you have to regard that the
M-
Lo- ADU
thermocouples have the same type.
Bus M+
gic
The compensation slot is to be connected at
M-
COMP+ and COMP- and is to be supplied
L+ external.
COMP+ Comp
COMP- slot
M+ M+ M+
M- M- M-
Lo- ADU
Bus IC+ I C+ I C+
gic
IC- IC- I C-
Thermocouples Starting with firmware version 1.3.8 of the analog module, there is the
with Pt100 possibility to connect a Pt100 reference junction for compensation.
reference junction With this connection variant the temperature of the reference junction is
(since firmware V1.3.8) evaluated by means of a Pt100 resistance thermometer. For this the
channel group tied up to Pt100 reference junction is to be parameterized
as "Pt100 reference junction". Only one channel group may be
parameterized as "Pt100 reference junction".
Every channel, which is parameterized on "thermocouple with external
compensation" uses the temperature of the Pt100 reference junction for
evaluation.
Compared to the compensating box there is the possibility to use
thermocouples of different type at the same time. The temperature
evaluation is more exactly than internal compensation, too.
Since this variant is not supported by the Siemens SIMATIC manager, the
parameterization only takes place exclusively at run time.
Copper cables
M+
M+: measuring line (positive)
M-
M-: measuring line (negative)
M+
IC+: constant current line (positive)
IC-: constant current line (negative)
M-
Pt100
Lo-
Bus ADU
gik
M+
M-
IC+
IC-
COMP+
COMP-
Connection Pt100 The installation of the Pt100 reference junction needs 4 wires. By
reference junction appropriate bridges on the module between M+ and IC+ respectively M- and
IC- you also may attach Pt100 in 2- and 3wire technique. Due to the not
considered conduit length you have to count on losses of accuracy with the
result of the measurement.
Here via the connections IC+ and IC- the Pt resistance thermometer gets a
constant current. The voltage occurring at the Pt100 resistor thermometer
is measured via the connections M+ and M-.
Channel allocation At Pt100 reference junction the whole channel group (both channels) are
st
used. The measured value can be found at the area of the 1 channel of
nd
the group. The 2 channel of the group is predefined with the overflow
value "7FFFh".
Every channel, which is parameterized on "thermocouple with external
compensation" uses this measuring value for evaluation.
Analog value The analog values are only processed by the CPU in binary representation.
representation Hereby the process signals are transformed into digital format in the analog
module and passed on to the CPU as word variable.
The digitized analog value is the same for input and output values at the
same nominal range.
Resolution The resolution of an analog value is 14 Bit plus sign Bit. Bit 15 serves as
sign bit (SG) with the meaning:
Bit 15 = "0" positive value
Bit 15 = "1" negative value
Depending upon parameterized interference frequency (integration time)
the modules offers different resolutions. The not used low byte bits are set
to "0".
High-Byte Low-Byte
Bit number 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0
Note!
This resolution does not apply to temperature levels. The converted
temperature levels are the result of a conversion of the analog module.
Behavior at over- As soon as a measured value exceeds the overdrive region and/or falls
and underflow below the underdrive region, the following value is issued:
Measuring value > end of overdrive region: 32767 (7FFFh)
Measuring value < end of underdrive region: -32768 (8000h)
Overview After power ON every channel of the modules is adjusted to 10V with a
interference frequency of 50Hz. The diagnostic function is deactivated.
At the parameterization, a record set of 16Byte length is transferred to both
modules. Here the AI 2x12Bit (331-7KB01) uses the parameters for the
channel group 0/1 the parameters for further channel groups are ignorred.
Note!
Parameters which are not supported by the Siemens hardware configurator
may only be changed during run time by means of SFCs.
Install module Start the hardware configurator and load your project for the analog
module.
Open the hardware catalog to install the analog input module.
In the hardware catalog the analog modules with the the order-no.:
6ES7 331-7KB01 (2x12Bit) and 6ES7 331-7KF01 (8x12Bit) can be
found at SIMATIC 300/SM-300/AI-300.
Choose the according module and drag & drop this module to the
concerning slot in the hardware configurator.
Parameterize the Via double click on the wanted module in the hardware configurator you
module open the concerning parameter window.
You can change the following module parameters:
Starting address for CPU mapping
Measuring ranges, measuring type and integration times for channel
pairs
Process interrupt at limit value overflow for channel 0 and channel 2
Limit value action at overflow
Diagnosis and group diagnosis for each channel pair at wire break or
measuring range over-/underflow.
Structure of the At the parameterization, a parameter area of 16Byte length is stored in the
parameter bytes record sets 0 and 1. Here the data irrelevant for the module AI 2x12Bit
(331-7KB01) are ignored.
Record set 0,
Using the SFCs 55, 56 and 57 you can only change parameters at record
Record set 1 set 1 and transfer during runtime to the analog module. On this way
parameters may be transferred which are not supported by the Siemens
SIMATIC manager, as e.g. setting of high temperature measuring ranges.
Modus per The following section shows an overview of all measuring types and ranges
channel pair plus binary coding for the parameterization.
Diagnostics As soon as an error occurs, like "wire break" or "measuring value out of
range", an entry is made in the diagnostic area that can be evaluated by
means of the user application.
If you have released the diagnostic interrupts at the parameterization,
incoming and outgoing error events are signaled by interrupts and
monitored on the according analog input module via LED.
At a diagnostic interrupt the CPU interrupts the user application and works
off the OB 82. For more detailed diagnostic information you may call the
SFC 51 res. SFC 59 in the OB 82. The diagnostic data is consistent until
you leave the OB 82.
Starting the When an error occurs and after error correction, the diagnosis is started.
diagnosis Via the parameterization you fix the diagnosis behavior at error:
Error indication Every analog input module sends, independent from the parameterization,
via measuring the measuring value 7FFFh at overflow and 8000h at underflow when
value and LEDs recognizing an error.
At activated group diagnosis the group diagnosis-LED (SF) and the error-
LED that is assigned to that channel are blinking.
If you additionally activated the wire break diagnosis at current measuring,
a wire break is shown via the error LED assigned to this channel.
Evaluating the At a diagnosis event the CPU interrupts the user program and branches
diagnosis into OB 82. This OB allows you via according programming to request
detailed diagnostic information by means of the SFCs 51 and 59 and react
to it.
After processing of the OB 82, the processing of the user application is
continued. The diagnostic data are consistent until leaving the OB 82.
As soon as you have activated the diagnostic interrupt release, record set 0
is transferred to the superordinated system in cause of an error. The record
set 0 has a fixed content and a length of 4Byte. The content of record set 0
may be monitored in plain text in the diagnosis window of the CPU.
For the extended diagnosis during run time, you may also evaluate the
record set 1 of 16Byte length via SFCs 51 and 59.
Record set 0 and 1 have the following structure:
Note!
Please note that the AI 2x12Bit (331-7KB01) exclusively supplies
diagnostic data of the channel group 0/1!
Process Process interrupts are limit value interrupts. They occur if they are released
interrupts via parameterization and a measuring value is outside the defined range.
Process interrupts may only parameterized for the channels 0 and 2.
When a process interrupt occurs, the CPU interrupts the user application
and processes the OB 40.
With the help of the OB 40 you may define, how your CPU should react at
a process interrupt.
Initializing the As soon as a measuring value is out of the range defined in the
process interrupt parameterization, a processes interrupt is initialized, if this option is
released.
Via the parameterization you define the part of the nominal range, in which
the value has to be, by means of defining high and low limit.
A process interrupt may only be initialized, when you have activated
hardware interrupt when limit exceeded.
Reaction to a the At a process interrupt the CPU interrupts the user application and branches
process interrupt into the OB 40.
More detailed information about the channel, which limit value has been
exceeded, are stored in the OB 40 in the variable OB 40_POINT_ADR in
the local data double word 8 (LD 8).
Diagnostic message If a second identical process interrupt occurs during processing interrupt in
"Process interrupt OB 40, the CPU branches into the OB 82 and activates the Bit 6 in record
lost" set 0 of Byte 3 for "process interrupt lost".
After having processed the OB 82, the CPU jumps back to OB 40.
Influence of the The behavior of the analog input module depends on the location of the
measuring values measuring value inside the value range.
The following table lists the different behaviors: