SlideShare a Scribd company logo
1 of 52
Download to read offline
Ultrasonic Position Encoding Module
SM 338
SIMATIC S7
Release 06/96Equipment Manual
www.dienhathe.vn
www.dienhathe.com
www.dienhathe.vn
www.dienhathe.com
Contents
Product Overview
1
The SM 338 Module
2
Mounting
3
Data Communication with the
PLC
4
Operation
5
Appendix
A
Release 06/96
SM 338
Ultrasonic Position Encoding
Module
Equipment Manual
762 21 087
SIMATIC S7
www.dienhathe.vn
www.dienhathe.com
SM 338 Equipment Manual
(4) J31069 D401 U1 A0 7618
SIMATICR is a registered trademark of SIEMENS AG.
This manual contains notices which you should observe to ensure your own personal safety, as
well as to protect the product and connected equipment. These notices are highlighted in the
manual by a warning triangle and are marked as follows according to the level of danger:
!
Danger
indicates that death, severe personal injury or substantial property damage will result if proper
precautions are not taken.
!
Warning
indicates that death, severe personal injury or substantial property damage can result if proper
precautions are not taken.
!
Caution
indicatesthatminorpersonalinjuryorpropertydamagecanresult ifproper precautionsare nottaken.
Note
draws your attention to particularly important information on the product, handling the product, or
to a particular part of the documentation.
The device/system may only be set up and operated in conjunction with this manual.
Note the following:
!
Warning
This device and its components may only be used for the applications described in the catalog or the
technical description, and only in connection with devices or components from other manufacturers
which have been approved or recommended by Siemens.
This product can only function correctly and safely if it is transported, stored, set up, and installed
correctly, and operated and maintained as recommended.
We have checked the contents of this manual for agreement with the hardware and
software described. Since deviations cannot be precluded entirely, we cannot guarantee
full agreement. However, the data in this manual are reviewed regularly and any neces-
sary corrections included in subsequent editions. Suggestions for improvement are
welcomed.
Disclaimer of LiabilityCopyright E Siemens AG 1995 All rights reserved
The reproduction, transmission or use of this document or its contents is not permitted
without express written authority. Offenders will be liable for damages. All rights,
including rights created by patent grant or registration of a utility model or design, are
reserved.
Siemens AG
Automation Group
Systems Engineering
P. O. Box 2355
D-90713 Fuerth
Germany
Siemens Aktiengesellschaft Order No. 762 21 087
Technical data subject to change.
E Siemens AG 1995
Safety Guidelines
Qualified Personnel
Correct Usage
www.dienhathe.vn
www.dienhathe.com
i
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
Table of Contents
1 Product Overview 1-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2 The SM 338 Module 2-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.1 Layout 2-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2 Measuring Principle 2-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3 US Measuring System 2-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3 Mounting 3-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1 Installation 3-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.2 Installation 3-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4 Data Communication with the PLC 4-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1 Input Area 4-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2 Parameter Area 4-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3 Diagnosos Area 4-9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.1 System Diagnosis Bytes 4-10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3.2 Channel--Related Diagnosis Bytes 4-12. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5 Operation 5-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.1 Parameter Assignment 5-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.2 Example of an SDB 100 5-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.3 Normal Operation 5-7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
5.4 Error Diagnostics 5-8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6 Appendix A-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A.1 Technische Daten A-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A.2 Plug Connector Allocation A-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
A.3 Recommended Accessories A-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
www.dienhathe.vn
www.dienhathe.com
ii
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
Figures
2-1 Front view of the module 2-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2 Principle of ultrasonic position encoding 2-4. . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-3 Possible assignment of the measuring points 2-6. . . . . . . . . . . . . . . . . . . . . . . .
4-1 Organization of the dual port RAM 4-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-2 Example of the measuring points of a sensor 4-5. . . . . . . . . . . . . . . . . . . . . . . .
5-1 Flowchart of channel--related diagnostics 5-9. . . . . . . . . . . . . . . . . . . . . . . . . . .
Tables
2-1 LED indicators 2-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2-2 Recommended sensors 2-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-1 Slot for the SM 338 3-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-2 Slot numbers for S7 modules 3-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3-3 Terminal assignment 3-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-1 Input area 4-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-2 Bytes for counter assignment 4-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-3 Bytes for setting of the counters 4-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4-4 Default values for the parameter area 4-8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Table of Contents
www.dienhathe.vn
www.dienhathe.com
iii
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
Notes on the CE Seal
The following applies to the product described in this manual.
Products bearing the CE seal meet the requirements of EU Directive
89/336/EEC ’Electromagnetic Compatibility’ and the harmonized
European standards (EN) listed therein.
In accordance with article 10 of the above--mentioned EU Directive, the EU
declarations of conformity are held available for inspection by responsible
authorities at the addresses listed below:
Siemens Aktiengesellschaft
Bereich Automatisierungstechnik
AUT7 WKF KB2
Postfach 2355
D-90713 Fürth
The products have been designed for use in the industrial area and meet the
following requirements:
Area of Application Requirements
Emitted interference Immunity
Industry EN 50081-2 : 1993 EN 50082-2 : 1995
The products meet the requirements if you:
1. Observe the installation guidelines and safety notes contained in the ap-
plicable manuals and supplementary documentation, both for the pro-
grammable system and the individual module.
2. Observe the rules below.
The programmable systems and the listed modules must be installed in
grounded, closed metal enclosures (e.g., switching cabinets).
All signal lines outside this enclosure must be shielded as described in the
equipment manuals. The shields of the signal lines must be applied to the
shield bar at the entrance to the cabinet.
EU EMC directive
89/336/EEC
Area of application
Observing the
installation guide-
lines
Installing the
devices
www.dienhathe.vn
www.dienhathe.com
iv
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
In order to protect the modules from static electrical discharge, operating
personnel must discharge themselves of static electricity before opening
switching cabinets or switchboxes.
In contrast to the specifications contained in the ”General Technical Specifi-
cations” of the manual, the specifications listed below on electromagnetic
compatibility apply to modules which carry the CE seal.
The specifications apply to devices installed in accordance with the stated
installation guidelines.
Electromagnetic Compatibility Specifications Test Values
Immunity to static electrical discharge1
Tested in accordance with EN 61000-4-2
Discharge to air 8 kV
Discharge on contact
4 kV
Immunity to electromagnetic fields1
S Tested in accordance with EN V 50140
(amplitude-modulated HF)
S Tested in accordance wit EN V 50204
((pulse--modulated HF)
80 to 1000 MHz
10 V/m
80% AM (1 kHz)
900 MHz
10 V/m
50% ED, 200 Hz
repetition frequency
Immunity to fast transient bursts
Tested in accordance with EN 61000-4-4
S Supply lines for AC 120/230 V
S Signal lines (I/O and bus lines)
2 kV
2 kV 2
Immunity to high frequency
Tested in accordance with EN V 50141
0.15 to 80 MHz
10 V
80% AM (1 kHz)
Source impedance 150 Ω
Emitted interference1
Tested in accordance wit EN 55011
S Emission of electromagnetic fields
S Emitted interference over supply cable
Limit value class A,
group 1
Limit value class A,
group 1
1 For closed metal housing
2 Signal lines that are not used for process control: 1 kV (e.g., connections to external
printers)
Working on
switching cabinets
Updated technical
specifications
Preface
www.dienhathe.vn
www.dienhathe.com
1-1
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
Product Overview
The SM 338 is a position encoding module for the S7-300 programmable
controller. The module is connected to the P bus of the programmable con-
troller, and its parameters are assigned by the CPU. The SM 338 belongs to
the family of signal modules.
Position encoding is performed by ultrasonic sensors. These sensors offer the
following primary advantages.
S No wear and tear
S High protection class
S Steady accuracy regardless of the sensor length
S Low costs for longer sensors (> 500 mm)
S Up to four measuring points (magnets) per sensor possible
S The digital sensor interface (RS 422) is not sensitive to interference and
permits lines up to 50 m in length.
The SM 338 does not condition the data. Its only function is to supply the
CPU with counting values. Eight counters are available for the acquisition of
measured values.
Up to four sensors can be connected on the SM 338 module, and each sensor
can contain up to four measuring points. The sum of the measuring points on
all connected sensors may not exceed 8.
The sensors connected to the module can operate in synchronous or asyn-
chronous mode. This requires that the parameters of the selected sensors be
assigned appropriately.
Synchronous mode
The selected sensors operate synchronously (i.e., at the end of the cycle time,
the counting values of all synchronous sensors are transferred to the input
area of the dual port RAM). If enabled, an end-of-cycle alarm to the CPU is
then triggered. Synchronous mode does not use a parameterized, sensor-re-
lated, measuring cycle time.
Position encoding
with ultrasonic
sensors
Operating modes
1
www.dienhathe.vn
www.dienhathe.com
1-2
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
Asynchronous mode
The selected sensors operate asynchronously (i.e., each sensor operates with
its own specific sensor measuring cycle time). The measuring cycle time is
the time available to the sensor for one measurement. This time can be set
separately for each sensor. Cycle time and measuring cycle time are not de-
pendent on each other. At the end of the measuring cycle time, the counting
values allocated to this sensor are transferred to the input area of the dual
port RAM.
The SM 338 module is equipped with the following functions.
S Each sensor can be parameterized separately.
S Cycle time and measuring cycle time can be parameterized separately
(and with different lengths).
S Global enabling of an end-of-cycle alarm (i.e., process alarm) can be
parameterized.
S Global enabling of diagnosis alarms can be parameterized.
S Sensor-related enabling of the diagnoses can be parameterized.
S Sensor-related enabling of wire break monitoring can be parameterized.
S Firmware monitoring via watchdog
S Indication of error states via two LEDs
S Module parameters can be reassigned during normal running operation.
The main application area of the SM 338 is with plastics processing ma-
chines. Particularly with injection molding and blow molding machines, ul-
trasonic sensors are being used increasingly for position encoding. The
SM 338 is the direct link from the sensor to the S7-300 programmable con-
troller.
-
Functionality
Use
Product Overview
www.dienhathe.vn
www.dienhathe.com
2-1
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
The SM 338 Module 2
www.dienhathe.vn
www.dienhathe.com
2-2
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
2.1 Layout
The SM 338 is installed in a compact, plastic housing. This housing is
mounted on the rail of your programmable controller.
The two plug connectors on the back connect the module to the P bus.
All other connection and indicator elements are located on the front of the
module. Figure 2-1 shows the location of these elements.
SF
LED indi-
cators
External
supply volt-
age (24 V)
X
Slot number
Covering flaps
Sensors
2 + 4
Sensors
1 + 3DC
Figure 2-1 Front view of the module
The back
The front
The SM 338 Module
www.dienhathe.vn
www.dienhathe.com
2-3
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
The LED indicators on the front of the module have the functions listed in
table 2-1.
Table 2-1 LED indicators
Indicator Function
DC (green) External voltage present
External voltage not present
SF (red) System error/module requires diagnosis
Normal operation
LED indicators
The SM 338 Module
www.dienhathe.vn
www.dienhathe.com
2-4
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
2.2 Measuring Principle
A START pulse is sent by the SM 338 via the RS 422 interface. The sensor
electronics send an echo of this pulse back to the SM 338. The START pulse
generates a current pulse in the sensor electronics. This current pulse moves
from the sensor electronics toward the end of the measuring bar.
Figure 2-2 shows a diagram of the interaction between module and sensor.
µ ds
SM 338 RS 422
interface
Sensor
electron-
ics
Ultrasonic position sensor
Ultrasonic
pulse
Measuring bar
Measuring point
(magnet)
Current
pulseSTART
(Echo)
STOP
START signal
ds
Attenuation
zone
Figure 2-2 Principle of ultrasonic position encoding
The moving magnet field with the current pulse and the permanent magnet
field of the measuring point begin to affect each other. An ultrasonic pulse is
generated at the position of the measuring point (i.e., magnetostrictive princi-
ple).
This ultrasonic pulse spreads out in the direction of the end of the bar and the
sensor electronics. The pulse is attenuated at the end of the bar. The sensor
electronics convert this pulse into an electrical signal (i.e., the STOP pulse).
The time between the echo of the START pulse and the STOP pulse is pro-
portionate to the distance. This time is acquired by the SM 338 and for-
warded.
Note
Conversion of the position into mm using an offset factor is performed by
the CPU.
The SM 338 Module
www.dienhathe.vn
www.dienhathe.com
2-5
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
2.3 Ultrasonic Measuring System
A system for ultrasonic position encoding includes the following:
-- S7-300 PLC with CPU and power supply
-- Ultrasonic positioning module SM 338
-- External supply voltage of 24 V
-- Ultrasonic position encoding sensor(s)
Ultrasonic position encoding sensors with the following capabilities can be
used.
S START/STOP interface with RS 422 signals
S Power supply: for all sensors connected simultaneously to the SM 338
-- +15 V/max. of 200 mA, floating or
-- +24 V/max. of 300 mA, floating
The following sensors are recommended for connection to the SM 338.
Table 2-2
Company Model Supply Remarks
MTS
(Temposonic)
TTM
LP
+15 V/100 mA
15 to 24 V/30 mA
Bar form
Substitute for linear
potentiometer
T&R LP 38-SS 15 to 27 V/40 mA Substitute for linear
potentiometer
Balluff BTL2-P1-xxxx-B-xx
BTL2-P1-xxxx-P/F-xx
22 to 26 V/80 mA
22 to 26 V/80 mA
Bar form
Substitute for linear
potentiometer
The resolution is 0.05 mm for a sensor length of less than 3 m. The resolu-
tion is 0.1 mm for the maximum sensor length of 6 m.
Up to 4 encoding sensors can be connected to one SM 338. Up to 4 measur-
ing points per encoding sensor are permitted. One SM 338 can evaluate a
total of up to 8 measuring points.
When several measuring points are located on a sensor, the sensor-related,
minimum distance must be maintained. This distance ensures that the mea-
suring points do not interfere with each other.
System scope
Sensor capabilities
Recommended
sensors
Sensor length and
measuring accu-
racy
Number of sensors
Minimum distance
of the measuring
points
The SM 338 Module
www.dienhathe.vn
www.dienhathe.com
2-6
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
Except for the restrictions mentioned above, the measuring points can be al-
located to the sensors as desired (e.g., 4-2-1-1, 2-2-2-2, 1-0-4-3, and so on).
Figure 2-3 shows a complete system and a possible assignment of the mea-
suring points.
AS 300 bus
(of CPU)
AS 300 bus
(to end of rack)
Measuring
points 1 to 4 Sensor 1
Sensor 3
Sensor 2
Sensor 4
Measuring
points 5+6
Measuring
point 7
Measuring
point 8
230 V
AC
24 V
DC
X
1
X
2
SM 338
Figure 2-3 Possible assignment of the measuring points
-
Allocation of the
measuring points
The SM 338 Module
www.dienhathe.vn
www.dienhathe.com
3-1
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
Installation 3
www.dienhathe.vn
www.dienhathe.com
3-2
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
3.1 Mounting
The S7-300 is a programmable controller which can be equipped with vari-
ous modules to meet the requirements of the particular automation task.
Certain rules apply when positioning the SM 338 on the rail of the S7-300.
S A maximum of 8 signal modules may be placed to the right next to the
CPU.
S The number of modules which can be installed is restricted by their cur-
rent consumption from the S7-300 bus.
Make sure that the total current consumption of all modules on the rail does
not exceed 1.2 A.
When a vertical setup of the S7-300 is used, the maximum environmental
temperature permitted is reduced from 60° to 40° C.
Table 3-1 shows you which slots can be used for the SM 338.
Table 3-1 Slots for the SM 338
Slot
number
1 2 3 4 5 6 7 8 9 10 11
Rack 1
Rack 2 -
Rack 3 -
Rack 4 -
Module can be
installed.
Module cannot be
installed.
Slot does not exist.-
The standard precautionary measures as set forth in the ESD guidelines must
be adhered to when handling the module.
Introduction
Position and envi-
ronmental
temperature
Slots
Handling
Installation
www.dienhathe.vn
www.dienhathe.com
3-3
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
To mount the module on the rail, proceed as shown below.
3. Switch CPU to STOP status.
4. Unscrew the screw on the bottom of the module to the left of the SM 338.
5. Swing this module up, and insert the included bus connector.
Bus connector
Mounting the
module
Installation
www.dienhathe.vn
www.dienhathe.com
3-4
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
6. Hook in (1) the SM 338 on the top of the rail, and swing down (2).
(1)
(2)
7. Tighten both modules with screws (turning moment for screwdriver:
80 to 110 Ncm).
8. Assign the SM 338 a slot number as shown in table 3-2.
Table 3-2 Slot numbers for S7 modules
Slot Number Module Remarks
1 Power supply (PS) -
2 Central processing unit (CPU) -
3 Interface module (IM) -
4 1st signal module To the right, next to the CPU
or IM
5 2nd signal module -
6 3rd signal module -
7 4th signal module -
8 5th signal module -
9 6th signal module -
10 7th signal module -
11 8th signal module -
Installation
www.dienhathe.vn
www.dienhathe.com
3-5
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
9. Punch out the appropriate number on the front.
X
To connect the external supply voltage, open the covering flap on the left
side of the module.
Table 3-3 Terminal assignment
Terminal Assignment
1 P24 (input voltage jumpered with 3)
2 M24 (ground externally jumpered with 4)
3 P24 (jumpered with 1)
4 M24 (jumpered with 2)
Connect the supply voltage as shown on the printed terminal assignment.
!
Warning
It is absolutely essential to use a powerpack with potential isolation.
Connecting exter-
nal supply voltage
Installation
www.dienhathe.vn
www.dienhathe.com
3-6
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
3.2 Wiring
S For notes on installing an automation system, see the section on wiring an
S7-300 in the S7-300 manual.
For detailed information, see also the guidelines on interference-proof
setup of programmable controllers.
Order no: EWA 4NEB 811 617001
S Use the following to connect the sensors.
-- Connectors with shield spring (V42254-A1115-C325)
and
-- Connector covers with shielding (V42254-A6000-Gx25)
S The sensor lines are shielded (6AP5 400-2AA01). The shield must be
applied in the connectors as required for RF, (i.e., shield braiding via
cable clamp on connector housing).
S All line shields must be applied to a grounded shield rail
(6ES7 390-5AA00-0AA0) with small shield clamps.
S All sub D connectors must be secured with screws.
S Only one central connection between reference potential and shield is
permitted. When an S7 power supply module is used, this connection has
already been implemented inside.
-
Installation
www.dienhathe.vn
www.dienhathe.com
4-1
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
Data Communication with the PLC
The SM 338 is not equipped with operator control components. Software
handles the complete configuration of the module. The housing does not
need to be opened, and jumpers do not have to be inserted.
Data communication with the CPU of the PLC takes place in the dual port
RAM of the module.
Figure 4-1 shows the organization of the dual port RAM.
P bus
SM 338
Parameter
area
Output area (not
used)
Input
area
Diagnosis
area
Write only
Write onlyRead only
Read only
Figure 4-1 Organization of the dual port RAM
Introduction
Data communica-
tion with the PLC
Organization of
the dual port RAM
4
www.dienhathe.vn
www.dienhathe.com
4-2
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
4.1 Input Area
The acquired counting values are stored in the input area. Each of the eight
counters is represented with a resolution of 16 bits. Table 4-1 shows the or-
ganization of the input area.
Table 4-1 Input area
Value of HIGH Byte LOW Byte
Counter 1 0 1
Counter 2 2 3
Counter 3 4 5
Counter 4 6 7
Counter 5 8 9
Counter 6 10 11
Counter 7 12 13
Counter 8 14 15
After a RESET, the entire area contains the value 0.
Organization
Default setting
Data Communication with the PLC
www.dienhathe.vn
www.dienhathe.com
4-3
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
4.2 Parameter Area
The parameters required for presetting the SM 338 are stored in two data re-
cords in the 16-byte parameter area. This area can only be write-accessed by
the P bus. The data can also be modified during running operation (i.e., dy-
namically).
Note
All bits which are not defined in the following text are reserved and must be
“0”.
Data record 0 consists of two bytes.
Data record 0 is used to enable the following functions.
S The channel-related diagnostics and wire break monitoring
S Alarms
The entries in byte 0 specify general enabling of channel-related diagnostics
and wire break monitoring for each sensor.
Channel-related diagnostics
Sensor 1
Sensor 2
Sensor 3
Sensor 4
7 0
Byte 0
Wire break monitoring
Sensor 1
Sensor 2
Sensor 3
Sensor 4
0: Disabled
1: Enabled
Diagnostics
These bits can be used to enable/disable generation of diagnostics (i.e., re-
porting of errors) for each position sensor.
General
Data record 0
Channel-related
diagnostics, wire
break monitoring
Data Communication with the PLC
www.dienhathe.vn
www.dienhathe.com
4-4
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
Wire break monitoring
These bits can be used to enable/disable wire break monitoring for each posi-
tion sensor.
Wire break monitoring is performed indirectly by evaluating the reaction of
the position sensor to a START pulse from the SM 338. If the position sensor
does not react within a specified period of time, this is considered a wire
break.
Byte 1 can be used to enable or disable the end-of-cycle or diagnosis alarm.
7 0
Byte 1
End-of-cycle alarm
Diagnosis alarm
0: Alarm disabled
(i.e., is not forwarded)
1: Alarm enabled
0 0 0 0 0 0
Data record 1 consists of 14 bytes.
Data record 1 contains the following:
S Assignment of the counters and the counter setting (4 x 3 bytes) for each
sensor
S Setting of the cycle time (1 byte)
S Setting of the sensor-related, synchronous mode (1 byte)
Enabling alarms
Data record 1
Data Communication with the PLC
www.dienhathe.vn
www.dienhathe.com
4-5
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
Two bytes each are used to assign the eight counters to the four sensors and
to specify their measuring points.
Table 4-2 shows the applicable bytes for each sensor.
Table 4-2 Bytes for counter assignment
Sensor Number Bytes
1 2 and 3
2 5 and 6
3 8 and 9
4 11 and 12
Measuring point 1
Measuring point 2
Measuring point 3
Measuring point 4
0 0 0 0 No counter assigned
0 0 0 1 Counter 1 assigned
0 0 1 0 Counter 2 assigned
0 0 1 1 Counter 3 assigned
. .
. .
. .
0 1 1 1 Counter 7 assigned
1 0 0 0 Counter 8 assigned
1 0 0 1 No counter assigned*
. .
. .
. .
1 1 1 1 No counter assigned*
7 0
Byte n
7 0
Byte (n+1)
Note
The counter assignments marked with an * are illegal and will trigger the
diagnosis message “wrong parameters on the module”.
Counting of the measuring points of a sensor always begins with the sensor
electronics.
Measuring point
Electronics
34 2 1
Figure 4-2 Example of the measuring points of a sensor
Sensor-related
counter assign-
ment
Data Communication with the PLC
www.dienhathe.vn
www.dienhathe.com
4-6
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
The assigned counters for each sensor are set in one byte.
Table 4-3 shows the respective byte assigned.
Table 4-3 Bytes for setting the counters
Sensor Number Byte
1 4
2 7
3 10
4 13
Measuring cycle time
0 0 0 0 0 16.0 msec
0 0 0 0 1 0.5 msec
0 0 0 1 0 1.0 msec
. .
. .
. .
1 1 1 1 1 15.5 msec
Starting the counter
0: Immediately with sent START pulse
1: With echo of the sent START pulse
Selecting the edge
Counter starts/stops with
0: Rising edge (L ® H)
1: Falling edge H ® L)
Resolution
0: 0.10 mm (max. meas. range of
approx. 6 m)
1: 0.05 mm (max. meas. range of
approx. 3 m)
7 0
Byte (n+2)
Measuring cycle time
The measuring cycle time can be set in increments of 0.5 msec depending on
the sensor being used (length and required dead times). The maximum mea-
suring cycle time is 16 msec.
Starting the counter
When the counter is started with the sent START pulse, the maximum mea-
suring distance is reduced by the signal run time (approaching and returning
line) through all components. If the counter is started with the echo of the
START pulse, a synchronization error occurs.
Selecting the edge
Set the edge as described by the manufacturer of the sensor.
Sensor-related
counter setting
Data Communication with the PLC
www.dienhathe.vn
www.dienhathe.com
4-7
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
The SM 338 can generate an end-of-cycle alarm (i.e., process alarm 0) at the
end of the cycle time set. This requires that generation be enabled in byte 1
of data record 0.
Cycle time
0 0 0 0 0 16.0 msec
0 0 0 0 1 0.5 msec
0 0 0 1 0 1.0 msec
. .
. .
. .
1 1 1 1 1 15.5 msec
7 0
Byte 14 0 0 0
In synchronous mode, the sensor operates with the cycle time for alarm gen-
eration in byte 14 of data record 1, and not with its preset measuring cycle
time. In synchronous mode, new measured values are supplied at the same
time as the end-of-cycle.
Synchronous mode
Sensor 1
Sensor 2
Sensor 3
Sensor 4
0: Asynchronous
1: Synchronous
7 0
Byte 15
0000
Note
When one or more sensors are operated in synchronous mode, it is abso-
lutely imperative that the cycle time be adjusted to the slowest sensor. The
module does not perform a plausibility check of this.
Cycle time
Sensor-related
synchronous
mode
Data Communication with the PLC
www.dienhathe.vn
www.dienhathe.com
4-8
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
Following a new start or a RESET of the module, the parameter area is set
with the default values specified in table 4-4.
Table 4-4 Default values for the parameter area
Value Meaning
Data record 0
Byte 0 00H No diagnostics and wire break monitoring
Byte 1 00H Alarms disabled
Data record 1
Byte 2 01H Sensor 1:
C 1 i i 1
Byte 3 00H
Counter 1 to measuring point 1
Byte 4 00H Resolution of 0.1 mm; rising edge starts/stops
counter; counter starts immediately with sent
START pulse; measuring cycle time is
16 msec.
Byte 5 02H Sensor 2:
C 2 i i 1
Byte 6 00H
Counter 2 to measuring point 1
Byte 7 00H Same as byte 4
Byte 8 03H Sensor 3:
C 3 i i 1
Byte 9 00H
Counter 3 to measuring point 1
Byte 10 00H Same as byte 4
Byte 11 04H Sensor 4:
C 4 i i 1
Byte 12 00H
Counter 4 to measuring point 1
Byte 13 00H Same as byte 4
Byte 14 00H Cycle time of 16 msec
Byte 15 00H No synchronous mode
Default settings
Data Communication with the PLC
www.dienhathe.vn
www.dienhathe.com
4-9
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
4.3 Diagnosis Area
The errors detected by the SM 338 are stored in the 12-byte diagnosis area.
A set bit signals an error. If the error is a sporadic one, it is stored and re-
ported to the CPU as “arriving”. After acknowledgment of the diagnosis
alarm, such an error is then immediately reported as “departing”.
The SF LED only lights up for the actual duration of the error, but at least
1 second. It is switched off again to make on-site error analysis easier.
The P bus can only read-access the diagnosis area.
General
SF LED
(system error)
Access
Data Communication with the PLC
www.dienhathe.vn
www.dienhathe.com
4-10
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
4.3.1 System Diagnosis Bytes
Note
The contents of the system diagnosis bytes are standardized, and fixed desig-
nations are used. The standardized term “channel” corresponds to a sensor
for the SM 338.
The system diagnosis bytes occupy the first 4 bytes of the diagnosis area.
They contain errors occurring at the module level. Their contents are de-
scribed in detail below.
7 0
0Byte 0
Module malfunction
(Any error was detected.)
Internal error
(e.g., EPROM checksum wrong)
External error (e.g., cable break detected)
Channel error detected
Fault in the 24 V external voltage supply
Module parameters not assigned
Wrong parameters on the module
Module parameters not assigned
Valid parameters have not been transferred since booting took place. The bit
is reset after the correct parameters have been transferred.
Wrong parameters on the module
When accepting parameters, the SM 338 checks their plausibility within cer-
tain limits. A detected error is indicated here and cancelled after valid pa-
rameters have been received.
Module class
Channel information present
7 0
000Byte 1 0 0 11
Channel information present
The error which occurred on a channel (i.e., sensor) is described in more de-
tail in bytes 4 to 11.
Module errors
Module class,
channel informa-
tion
Data Communication with the PLC
www.dienhathe.vn
www.dienhathe.com
4-11
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
Communication malfunction
(detected by the module)
Time monitoring
(Watchdog has triggered a RESET.)
7 0
00000Byte 2
Failure of internal module supply
voltage
(sensor supply +15 V/+24 V; inter-
face supply 5 V)
Time monitoring
The module is equipped with a time monitoring function to check that the
firmware is functioning correctly. If program run time exceeds a certain time
frame, a RESET is triggered on the module. The module then boots with the
default parameters and does not go into an undefined state.
EPROM error
(wrong checksum during test)
RAM error
7 0
000000Byte 3
When a memory error occurs, the module can only be started again with a
RESET on the bus.
Data communica-
tion, program run
time and supply
voltage
Memory error
Data Communication with the PLC
www.dienhathe.vn
www.dienhathe.com
4-12
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
4.3.2 Channel-Related Diagnosis Bytes
Channel-related data are stored in bytes 4 to 11. The contents of bytes 4 to 6
are fixed while bytes 7 to 11 contain the actual channel errors.
Channel type = 7EH
7 0
0Byte 4 1 1 1 1 1 1 0
Length of the diagnosis information
per channel
= Number of bits per channel
Value: 08H
7 0
00010000Byte 5
Number of channels (i.e., sensors)
Value: 04H
7 0
00100000Byte 6
Group error for channel 1
See byte 8 for more details.
7 0
0000Byte 7
Group error for channel 2
See byte 9 for more details.
Group error for channel 3
See byte 10 for more details.
Group error for channel 4
See byte 11 for more details.
Channel type
Diagnosis bits per
channel
Number of
channels
Group errors of
the channels
(channel error
vector)
Data Communication with the PLC
www.dienhathe.vn
www.dienhathe.com
4-13
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
Byte 8: Channel 1
Byte 9: Channel 2
Byte 10: Channel 3
Byte 11: Channel 4
7 0
0000
Parameter error
Wire break
Pulse error
Counter overflow
Parameter error
The channel (i.e., sensor) contains invalid parameters.
Wire break
The sensor has not supplied a STOP pulse.
Pulse error
The sensor has not supplied enough STOP pulses.
Counter overflow
A 16-bit counter assigned to the channel (i.e., sensor) has overflowed.
Note
All counters assigned to the channel (i.e., sensor) output the value 0 for the
duration of the error.
-
Individual errors of
the channels
Data Communication with the PLC
www.dienhathe.vn
www.dienhathe.com
4-14
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
Data Communication with the PLC
www.dienhathe.vn
www.dienhathe.com
5-1
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
Operation
The parameters of the SM 338 must be assigned before it can begin position
encoding. When an error occurs, it provides a diagnosis if this was enabled
in the parameter assignment.
5
www.dienhathe.vn
www.dienhathe.com
5-2
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
5.1 Parameter Assignment
Parameter assignment sets the SM 338 module to the connected sensors.
There are three ways to assign parameters to the SM 338.
S Automatic parameter assignment
S Parameter assignment by the CPU during startup (SDB 100)
S Parameter assignment via SFC during operation
Transferred parameters are always subject to a plausibility check. The fol-
lowing checks are performed.
S Number of counters used < 8
S Number of measuring points per sensor < 4
S Each counter only used once
If the module was not parameterized by the CPU after conclusion of initiali-
zation and release, the parameters are assigned automatically.
The following default values are loaded (see table 4-4).
S One measuring point per sensor
S Greatest measuring cycle time
S Sensors operate asynchronously.
S Lowest resolution (i.e., greatest measuring range)
S End-of-cycle and diagnosis alarm disabled
S Channel-related diagnostics and wire break monitoring disabled
Parameter assignment is performed by the CPU during startup (after every
transition from STOP to RUN).
The parameter information is taken from the SDB 100 system data block and
transferred to the module.
Requirements:
S SDB 100 exists.
S SDB 100 contains appropriate parameter information for all slots which
have been used.
S Type identifier in the parameter record matches the type identifier of the
module.
Automatic parame-
ter assignment
Parameter assign-
ment via CPU
Operation
www.dienhathe.vn
www.dienhathe.com
5-3
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
Parameter assignment via SFC (abbreviation of System Function Call) is per-
formed during normal operation.
All parameters in data records 0 and 1 can be changed.
Note
All parameters in both data records must always be valid since all 16 bytes
are transferred and compared.
Parameter assignment via SFC is primarily used for dynamic, measuring
cycle control. The plastics industry uses this method to shorten the duration
of a measuring cycle by temporarily disabling measuring channels, or to per-
form continuous measurements in critical situations.
Parameter assign-
ment via SFC
Operation
www.dienhathe.vn
www.dienhathe.com
5-4
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
5.2 Example of an SDB 100
Using a programmable controller containing an SDB 100, modules whose
parameters can be assigned can be parameterized each time a switch is made
from STOP to RUN.
During startup, the CPU performs a bus identification procedure and enters
the module identifier(s).
When the SDB 100 is transferred to the module, the CPU first checks to de-
termine whether the module identifier entered for the respective slot matches
the module identifier stored in the SDB 100 for this slot. The parameters are
not transferred until this check is performed successfully.
The module identifier classifies the installed module with respect to its ad-
dress in the I/O address area of the CPU.
Example:
The SM 338 has the module identifier 05EDH.
00000101 11101101
16-byte input area (counting values)
16-byte output area (not used)
System identifier for S7
Can be parameterized
Class identifier: SONDER
Type class: SM-ANALOG
Introduction
Module identifier
Operation
www.dienhathe.vn
www.dienhathe.com
5-5
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
SDB 100
(* Slot directory = contents directory *)
KH = 0008 (* Length of directory: The value corresponds to the number of entries
(1 entry = 2 bytes) *)
KH = 0000 (* Data offset in bytes for slot 4 *)
KH = 0000 (* Data offset in bytes for slot 5 *)
KH = 0012 (* Data offset in bytes for slot 6 *)
KH = 0034 (* Data offset in bytes for slot 7 *)
(* Values are global pointers and specify after how many bytes after the
start of the file the data for this slot begin *)
KH = 0000 (* Data offset in bytes for slot 8 *)
KH = 0000 (* Data offset in bytes for slot 9 *)
KH = 0000 (* Data offset in bytes for slot 10 *)
KH = 0000 (* Data offset in bytes for slot 11 *)
(* Parameter block of the first SM 338 module *)
(* Offset 12h = 18 dec: Data for slot 6 *)
KH = 0002 (* Transmission attribute *)
KH = 0002 (* Number of data records *)
KH = 05ED (* Module identifier ”SM_AI_SONDER” *)
(* Infos (header) for data record 0 *)
KH = 8012 (* Offset for net data, data record 0 in bytes *)
(* Offset 12h = 18 dec: local pointer; specifies after how many bytes
after the start of the parameter block the data for data record 0 are
located *)
KH = 0002 (* Identifier for data record 0; length: 2 bytes *)
KH = 0000 (* Reserved *)
(* Infos (header) for data record 1 *)
KH = 8014 (* Offset for net data, data record 1 in bytes *)
(* Offset 14h = 20 dec: local pointer; specifies after how many bytes
after the start of the parameter block the data for data record 1 are
located *)
KH = 010E (* Identifier for data record 1; length: 14 bytes *)
KH = 0000 (* Reserved *)
(* Parameters of the module *)
(* Starting here, the parameters are to be transferred to the module *)
KH = FF44 (* Channel diagnostics; diagnosis and end-of-cycle alarm *)
(* Offset 12h = 18 dec after start of the parameter block *)
KH = 2143 (* S1: meas. pts 2,1 -> counters 2,1; meas. pts 4,3 -> counters 4,3 *)
(* Offset 14h = 20 dec after start of the parameter block *)
KH = 8200 (* 0.05 mm, r. ed., START-I, 1 msec; S2: meas. pts 2,1 -> free *)
KH = 0000 (* S2: meas. pts 4,3 -> free; 0.1 mm, r. ed., START-I, 16 msec *)
KH = 0000 (* S3: meas. pts. 2,1 free; meas. pts 4,3 -> free *)
KH = 0000 (* 0.1 mm, r. ed., START-I, 16 msec; S4: meas. pts 2,1 -> free *)
KH = 0000 (* S4: meas. pts 4,3 -> free; 0.1 mm, r. ed., START-I, 16 msec *)
KH = 0000 (* Cycle time 16 msec; sensors asynchronous *)
(* Same as above; parameter record for the second module *)
(* Parameter block of the second SM 338 module *)
(* Offset 34h = 52 dec: Data for slot 7 *)
KH = 0002 (* Transmission attribute *)
KH = 0002 (* Number of data records *)
KH = 05ED (* Module identifier ”SM_AI_SONDER” *)
(* Infos (header) for data record 0 *)
KH = 8012 (* Offset for net data, data record 0 in bytes *)
KH = 0002 (* Identifier for data record 0; length: 2 bytes *)
KH = 0000 (* Reserved *)
Fixed entries
16 bytes of data
records 0 and 1
SDB 100 Program
Operation
www.dienhathe.vn
www.dienhathe.com
5-6
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
(* Infos (header) for data record 1 *)
KH = 8014 (* Offset for net data, data record 1 in bytes *)
KH = 010E (* Identifier for data record 1; length: 14 bytes *)
KH = 0000 (* Reserved *)
(* Parameters of the module *)
KH = FF44 (* Channel diagnostics; diagnosis and end-of-cycle alarm *)
KH = 2143 (* S1: meas. pts 2,1 -> counters 2,1; meas. pts 4,3 -> counters 4,3 *)
KH = 8200 (* 0.05 mm, r. ed., START-I, 1 msec; S2: meas. pts 2,1 -> free *)
KH = 0000 (* S2: meas. pts 4,3 -> free; 0.1 mm, r. ed., START-I, 16 msec *)
KH = 0000 (* S3: meas. pts. 2,1 free; meas. pts 4,3 -> free *)
KH = 0000 (* 0.1 mm, r. ed., START-I, 16 msec; S4: meas. pts 2,1 -> free *)
KH = 0000 (* S4: meas. pts 4,3 -> free; 0.1 mm, r. ed., START-I, 16 msec *)
KH = 0000 (* Cycle time 16 msec; sensors asynchronous *)
Operation
www.dienhathe.vn
www.dienhathe.com
5-7
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
5.3 Normal Operation
After the parameters have been assigned correctly, the SM 338 functions in
normal operation. This is signaled by the LEDs as shown below.
S DC (green) on
S SF (red) off
Depending on the parameter assignment, the measured values of a sensor are
updated synchronously (i.e., at the end of the cycle time) or asynchronously
(i.e., at the end of the measuring cycle time).
The sensor values can then be read in by the user program and evaluated.
Note
Each counting value consists of 2 bytes or 1 word (i.e., data consistency re-
quires that the counting values be fetched via “load I/O input word”).
Operation
www.dienhathe.vn
www.dienhathe.com
5-8
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
5.4 Error Diagnostics
Diagnostics acquire errors on the module
Diagnosis information is updated continuously and stored in the diagnosis
area of the dual port RAM. If channel-related diagnostics is enabled, this
additional information is entered when channel errors occur. Both arriving
and departing errors are considered by the diagnostics.
The CPU can read out the diagnosis area. An error which has occurred is
indicated by the red “SF” LED regardless of whether the diagnosis alarm is
enabled or not.
Note
This alarm is not forwarded to the CPU unless the diagnosis alarm is en-
abled.
If the diagnosis alarm has been enabled during assignment of the SM 338
parameters, an OB 82 must exist in the programmable controller. The first
six words of the local data of OB 82 contain information concerning the
module address and identifier, and the four bytes of system diagnostics.
When a diagnosis alarm is received, the CPU branches to OB 82 and trans-
fers the diagnosis information to the user program.
Diagnostics
Diagnosis alarm
Operation
www.dienhathe.vn
www.dienhathe.com
5-9
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
Channel-related diagnostics is performed as shown in the flowchart below.
Diagnosis
alarm to CPU
YES
Error on
channel x?
NO
YES
“SF” LED on
Wire break?
NO
Other channel
error?
NO
Channel-
related diagnostics
and monitoring en-
abled?
NO
Channel-
related diag-
nostics en-
abled?
NO
Entry in byte 7
(channel error
vector), and
bytes 8 to 11?
Update system
diagnosis bytes
(channel error).
YES
YES
Diagnosis
alarm en-
abled?
NO
End
YES
Entry in byte 7
(channel error
vector), and
bytes 8 to 11?
Parameter
area
Diagnosis
area
YES
Figure 5-1 Flowchart of channel-related diagnostics
-
Flowchart of chan-
nel-related diag-
nostics
Operation
www.dienhathe.vn
www.dienhathe.com
5-10
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
Operation
www.dienhathe.vn
www.dienhathe.com
A-1
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
Appendix A
www.dienhathe.vn
www.dienhathe.com
A-2
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
A.1 Technical Specifications
Housing
Dimensions (in mm) 80 x 125 x 120
Weight 500 g
Protection class IP20
Position Sensors
Number Max. of 4
Number of measuring
points
Max. of 8, max. of 4 per
sensor
Measuring range 3/6 m
Resolution 0.05/0.1 mm
Programmable measuring
cycles
0.5 to 16 msec
Supply voltage for sensors
With potential isolation
S Voltage
Total current
S Voltage
Total current
Total power to supply sen-
sors
+15 V
200 mA
24 V
300 mA
Max. of 7.2 W
Interface RS 422 with START/
STOP interface
Front connector 25-way, sub D socket
Line length Max. of 50 m
Supply Voltage for the Module
Internal
Current consumption
From S7-300 bus
80 mA (typical)
100 mA (maximum)
External
Permissible voltage
range
Current consumption
Without sensors
With sensors
Fuse
Pole reversal protec-
tion
24 V
20.4 to 28.8 V
Max. of 0.1 A
Max. of 0.85 A
Fine-wire fuse, 1.0 A,
delayed
Yes
Environmental Requirements
Environmental tempera-
ture
Horizontal installation
Vertical installation
0° to 60° C
0° to 40° C
Relative humidity 5 to 95%
(without condensation)
Air pressure 860 to 1080 hPa
Pollution concentration
SO2
H2S
Max. of 10 ppm
Max. of 1 ppm
Vibration
10 to 57 Hz
57 to 150 Hz
0.075 mm amplitude
1 g const. acceleration
Transportation and Storage Requirements*
Free fall
(in acc. with IEC 1131-2)
< 1 m
Temperature
(in acc. with IEC 1131-2)
-40° C to +70° C
Air pressure > 700 hPa (corresponds to
a height of 3000 m)
Relative humidity 5 to 95% (without con-
densation)
Appendix
* In original packaging
www.dienhathe.vn
www.dienhathe.com
A-3
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
Electromagnetic Compatibility
Electrostatic discharge
In acc. with DIN
VDE 0843, part 2
(IEC 801-2)
8 kV discharge via air
6 kV discharge via contact
(Degree 3)
High-energy, single pulse
In acc. with DIN
VDE 0839, part 10
(IEC 801-5)
Additional measures re-
quired
Ex: Lighting cond. KT
Type AD24V SIMATIC
Order no. 919253
Mfg: Dehn und Söhne
Burst pulse
In acc. with DIN
VDE 0843, part 4
(IEC 801-4)
S 2 kV (supply line)
1 kV (signal line)
(Degree 3)
S 2 kV (supply line)
2 kV (signal line)
for Generic Standard
Interference suppression
In acc. With EN 55011;
DIN VDE 0871, part 1
Limit value class A,
group 1
Appendix
www.dienhathe.vn
www.dienhathe.com
A-4
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
A.2 Plug Connector Allocation
Plug connector X1
Sub D plug connector, 25-way socket
Pin Function
1 -15 V voltage supply (with fuse/floating)
2 Reference potential, voltage supply
3 +15 V voltage supply (with fuse/floating)
4 -
5 Sensor 1: STOP input (RS 422)
6 Sensor 1: START output (RS 422)
7 -
8 Sensor 3: STOP input (RS 422)
9 Sensor 3: START output (RS 422)
10 -
11 -
12 Reference potential, voltage supply
13 +24 V auxiliary voltage (with fuse/floating)
14 -15 V voltage supply (with fuse/floating)
15 Reference potential, voltage supply
16 +15 V voltage supply (with fuse/floating)
17 -
18 Sensor 1: STOP input (RS 422)
19 Sensor 1: START output (RS 422)
20 -
21 Sensor 3: STOP input (RS 422)
22 Sensor 3: START output (RS 422)
23 -
24 Reference potential, voltage supply
25 +24 V auxiliary voltage (with fuse/floating)
Connection
sensors 1 and 3
25 13
14
1
Appendix
www.dienhathe.vn
www.dienhathe.com
A-5
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
Plug connector X2
Sub D plug connector, 25-way socket
Pin Function
1 -15 V voltage supply (with fuse/floating)
2 Reference potential, voltage supply
3 +15 V voltage supply (with fuse/floating)
4 -
5 Sensor 2: STOP input (RS 422)
6 Sensor 2: START output (RS 422)
7 -
8 Sensor 4: STOP input (RS 422)
9 Sensor 4: START output (RS 422)
10 -
11 -
12 Reference potential, voltage supply
13 +24 V auxiliary voltage (with fuse/floating)
14 -15 V voltage supply (with fuse/floating)
15 Reference potential, voltage supply
16 +15 V voltage supply (with fuse/floating)
17 -
18 Sensor 2: STOP input (RS 422)
19 Sensor 2: START output (RS 422)
20 -
21 Sensor 4: STOP input (RS 422)
22 Sensor 4: START output (RS 422)
23 -
24 Reference potential, voltage supply
25 +24 V auxiliary voltage (with fuse/floating)
Quadruple screw terminal
Pin Function
1 P24 (input voltage = jumpered with pin 3)
2 M24 (external ground = jumpered with pin 4)
3 P24 (input voltage = jumpered with pin 1)
4 M24 (external ground = jumpered with pin 2)
Connection
sensors 2 and 4
25 13
14
1
External supply
voltage
1
4
Appendix
www.dienhathe.vn
www.dienhathe.com
A-6
SM 338 Equipment Manual
(4) J31069-D401-U1-A0-7618
A.3 Recommended Accessories
Designation Order Number
Sub D, pin connector,
25-way
V42254-A1115-C325
Plug connector hood V42254-A6000-G325 black
V42254-A6000-G125 pebble gray
Cable sleeve (8 mm) V42254-A6209-L100 black
V42254-A6209-L1 pebble gray
Contact cover V42254-A6108-L1
Knurled screw V42254-A112-V109 black (10 each)
V42254-A112-V009 kieselgrau (10 each)
See data book on plug connectors from Siemens (order no.
A23001-G21-D005) for minimum ordering quantities and packaging units.
Designation Order No.
Sensor line 6AP5 400-2AA01
Designation Order No.
Shield rail
Shield terminals
Small (recommended)
Medium
Large
6ES7 390-5AA00-0AA0
6ES7 390-5AB00-0AA0
6ES7 390-5BA00-0AA0
6ES7 390-5CA00-0AA0
If required for protection against high-energy, single pulses
Lightning conductor KT type AD24V SIMATIC
Order no: 919 253, mfg: Dehn und Söhne
-
Plug Connector
Lines
Shielding
Appendix
www.dienhathe.vn
www.dienhathe.com

More Related Content

Similar to Siemens s7 300-400-sm 338 ultrasonic position encoding module

Siemens s7 300-400-simatic couter module cm35
Siemens s7 300-400-simatic couter module cm35Siemens s7 300-400-simatic couter module cm35
Siemens s7 300-400-simatic couter module cm35Dien Ha The
 
Simocode dp = manual de parametrização e operação
Simocode dp = manual de parametrização e operaçãoSimocode dp = manual de parametrização e operação
Simocode dp = manual de parametrização e operaçãoconfidencial
 
Emf2102 ib _lecom-a-b-li aif module__v2-0__en
Emf2102 ib _lecom-a-b-li aif module__v2-0__enEmf2102 ib _lecom-a-b-li aif module__v2-0__en
Emf2102 ib _lecom-a-b-li aif module__v2-0__enCharles Santos
 
PLC: Manual de usuario de PLC Micrologix1500.pdf
PLC: Manual de usuario de PLC Micrologix1500.pdfPLC: Manual de usuario de PLC Micrologix1500.pdf
PLC: Manual de usuario de PLC Micrologix1500.pdfSantiagoPabloAlberto1
 
Analog module omron
Analog module omronAnalog module omron
Analog module omronAlain Hua
 
Cummins onan dskab generator set with power command 1.1 controller service re...
Cummins onan dskab generator set with power command 1.1 controller service re...Cummins onan dskab generator set with power command 1.1 controller service re...
Cummins onan dskab generator set with power command 1.1 controller service re...fusjejfjskerekem
 
Cummins onan dskca generator set with power command 1.1 controller service re...
Cummins onan dskca generator set with power command 1.1 controller service re...Cummins onan dskca generator set with power command 1.1 controller service re...
Cummins onan dskca generator set with power command 1.1 controller service re...fusjejfjskerekem
 
Cummins onan dskaa generator set with power command 1.1 controller service re...
Cummins onan dskaa generator set with power command 1.1 controller service re...Cummins onan dskaa generator set with power command 1.1 controller service re...
Cummins onan dskaa generator set with power command 1.1 controller service re...fujsjefjskefksemm
 
Cummins onan dskaa generator set with power command 1.1 controller service re...
Cummins onan dskaa generator set with power command 1.1 controller service re...Cummins onan dskaa generator set with power command 1.1 controller service re...
Cummins onan dskaa generator set with power command 1.1 controller service re...fujjsjewsfkskekmm
 
Cummins onan dskaa generator set with power command 1.1 controller service re...
Cummins onan dskaa generator set with power command 1.1 controller service re...Cummins onan dskaa generator set with power command 1.1 controller service re...
Cummins onan dskaa generator set with power command 1.1 controller service re...fusjejfjskerekem
 
Cummins onan dskba generator set with power command 1.1 controller service re...
Cummins onan dskba generator set with power command 1.1 controller service re...Cummins onan dskba generator set with power command 1.1 controller service re...
Cummins onan dskba generator set with power command 1.1 controller service re...fusjejfjskerekem
 
Siemens catalog hmi-tp070 touch panel
Siemens catalog hmi-tp070 touch panelSiemens catalog hmi-tp070 touch panel
Siemens catalog hmi-tp070 touch panelDien Ha The
 
Siemens catalog hmi-tp070_e
Siemens catalog hmi-tp070_eSiemens catalog hmi-tp070_e
Siemens catalog hmi-tp070_eDien Ha The
 

Similar to Siemens s7 300-400-sm 338 ultrasonic position encoding module (20)

Siemens s7 300-400-simatic couter module cm35
Siemens s7 300-400-simatic couter module cm35Siemens s7 300-400-simatic couter module cm35
Siemens s7 300-400-simatic couter module cm35
 
Simocode dp = manual de parametrização e operação
Simocode dp = manual de parametrização e operaçãoSimocode dp = manual de parametrização e operação
Simocode dp = manual de parametrização e operação
 
Emf2102 ib _lecom-a-b-li aif module__v2-0__en
Emf2102 ib _lecom-a-b-li aif module__v2-0__enEmf2102 ib _lecom-a-b-li aif module__v2-0__en
Emf2102 ib _lecom-a-b-li aif module__v2-0__en
 
Manual de PLC Micrologix 1500
Manual de PLC Micrologix 1500 Manual de PLC Micrologix 1500
Manual de PLC Micrologix 1500
 
PLC: Manual de usuario de PLC Micrologix1500.pdf
PLC: Manual de usuario de PLC Micrologix1500.pdfPLC: Manual de usuario de PLC Micrologix1500.pdf
PLC: Manual de usuario de PLC Micrologix1500.pdf
 
Manual de PLC Micrologix 1500.pdf
Manual de PLC Micrologix 1500.pdfManual de PLC Micrologix 1500.pdf
Manual de PLC Micrologix 1500.pdf
 
Manual fec standard
Manual fec standardManual fec standard
Manual fec standard
 
Manual CLP Omron CP1H
Manual CLP Omron CP1HManual CLP Omron CP1H
Manual CLP Omron CP1H
 
Analog module omron
Analog module omronAnalog module omron
Analog module omron
 
DVOR 432.pdf
DVOR 432.pdfDVOR 432.pdf
DVOR 432.pdf
 
Cummins onan dskab generator set with power command 1.1 controller service re...
Cummins onan dskab generator set with power command 1.1 controller service re...Cummins onan dskab generator set with power command 1.1 controller service re...
Cummins onan dskab generator set with power command 1.1 controller service re...
 
Cummins onan dskca generator set with power command 1.1 controller service re...
Cummins onan dskca generator set with power command 1.1 controller service re...Cummins onan dskca generator set with power command 1.1 controller service re...
Cummins onan dskca generator set with power command 1.1 controller service re...
 
Cummins onan dskaa generator set with power command 1.1 controller service re...
Cummins onan dskaa generator set with power command 1.1 controller service re...Cummins onan dskaa generator set with power command 1.1 controller service re...
Cummins onan dskaa generator set with power command 1.1 controller service re...
 
Cummins onan dskaa generator set with power command 1.1 controller service re...
Cummins onan dskaa generator set with power command 1.1 controller service re...Cummins onan dskaa generator set with power command 1.1 controller service re...
Cummins onan dskaa generator set with power command 1.1 controller service re...
 
Cummins onan dskaa generator set with power command 1.1 controller service re...
Cummins onan dskaa generator set with power command 1.1 controller service re...Cummins onan dskaa generator set with power command 1.1 controller service re...
Cummins onan dskaa generator set with power command 1.1 controller service re...
 
Cummins onan dskba generator set with power command 1.1 controller service re...
Cummins onan dskba generator set with power command 1.1 controller service re...Cummins onan dskba generator set with power command 1.1 controller service re...
Cummins onan dskba generator set with power command 1.1 controller service re...
 
Manual de PLC Micrologix 1200
Manual de PLC Micrologix 1200Manual de PLC Micrologix 1200
Manual de PLC Micrologix 1200
 
Siemens catalog hmi-tp070 touch panel
Siemens catalog hmi-tp070 touch panelSiemens catalog hmi-tp070 touch panel
Siemens catalog hmi-tp070 touch panel
 
Siemens catalog hmi-tp070_e
Siemens catalog hmi-tp070_eSiemens catalog hmi-tp070_e
Siemens catalog hmi-tp070_e
 
Service Manual.pdf
Service Manual.pdfService Manual.pdf
Service Manual.pdf
 

More from Dien Ha The

Vnd feb 2020 price list schneider (1)
Vnd feb 2020 price list schneider (1)Vnd feb 2020 price list schneider (1)
Vnd feb 2020 price list schneider (1)Dien Ha The
 
Resize bientanfuji-dienhathe.com
Resize bientanfuji-dienhathe.comResize bientanfuji-dienhathe.com
Resize bientanfuji-dienhathe.comDien Ha The
 
Fed e-quick-start-up-guide-bientanfuji-dienhathe.com
Fed e-quick-start-up-guide-bientanfuji-dienhathe.comFed e-quick-start-up-guide-bientanfuji-dienhathe.com
Fed e-quick-start-up-guide-bientanfuji-dienhathe.comDien Ha The
 
Fed e-quick-start-manual-bientanfuji-dienhathe.com
Fed e-quick-start-manual-bientanfuji-dienhathe.comFed e-quick-start-manual-bientanfuji-dienhathe.com
Fed e-quick-start-manual-bientanfuji-dienhathe.comDien Ha The
 
Ls bang gia ls ap dung 20 04-2019
Ls bang gia ls ap dung 20 04-2019Ls bang gia ls ap dung 20 04-2019
Ls bang gia ls ap dung 20 04-2019Dien Ha The
 
Mitsubishi graphic operation terminal got2000 series parts library book
Mitsubishi graphic operation terminal got2000 series parts library bookMitsubishi graphic operation terminal got2000 series parts library book
Mitsubishi graphic operation terminal got2000 series parts library bookDien Ha The
 
Mitsubishi inverter fr-a700-instruction-manualbasic-160425031653
Mitsubishi inverter fr-a700-instruction-manualbasic-160425031653Mitsubishi inverter fr-a700-instruction-manualbasic-160425031653
Mitsubishi inverter fr-a700-instruction-manualbasic-160425031653Dien Ha The
 
Mitsubishi graphic operation terminal got2000 series gt2103 new product release
Mitsubishi graphic operation terminal got2000 series gt2103 new product releaseMitsubishi graphic operation terminal got2000 series gt2103 new product release
Mitsubishi graphic operation terminal got2000 series gt2103 new product releaseDien Ha The
 
Mitsubishi graphic operation terminal got2000 series got mobile function quic...
Mitsubishi graphic operation terminal got2000 series got mobile function quic...Mitsubishi graphic operation terminal got2000 series got mobile function quic...
Mitsubishi graphic operation terminal got2000 series got mobile function quic...Dien Ha The
 
Mitsubishi graphic operation terminal got2000 series drive control interactiv...
Mitsubishi graphic operation terminal got2000 series drive control interactiv...Mitsubishi graphic operation terminal got2000 series drive control interactiv...
Mitsubishi graphic operation terminal got2000 series drive control interactiv...Dien Ha The
 
Mitsubishi inverter option catalog
Mitsubishi inverter option catalogMitsubishi inverter option catalog
Mitsubishi inverter option catalogDien Ha The
 
Mitsubishi low voltage ws-v series mccb and elcb
Mitsubishi low voltage ws-v series mccb and elcbMitsubishi low voltage ws-v series mccb and elcb
Mitsubishi low voltage ws-v series mccb and elcbDien Ha The
 
Mitsubishi graphic operation terminal got2000 series (concise)
Mitsubishi graphic operation terminal got2000 series (concise)Mitsubishi graphic operation terminal got2000 series (concise)
Mitsubishi graphic operation terminal got2000 series (concise)Dien Ha The
 
Mitsubishi low voltage ws-v series comparison of previous and new models
Mitsubishi low voltage ws-v series comparison of previous and new modelsMitsubishi low voltage ws-v series comparison of previous and new models
Mitsubishi low voltage ws-v series comparison of previous and new modelsDien Ha The
 
Mitsubishi inverter inverter family
Mitsubishi inverter inverter familyMitsubishi inverter inverter family
Mitsubishi inverter inverter familyDien Ha The
 
Mitsubishi low voltage miniature circuit breakers din series
Mitsubishi low voltage miniature circuit breakers din seriesMitsubishi low voltage miniature circuit breakers din series
Mitsubishi low voltage miniature circuit breakers din seriesDien Ha The
 
Mitsubishi inverter freqrol-hc2 series
Mitsubishi inverter freqrol-hc2 seriesMitsubishi inverter freqrol-hc2 series
Mitsubishi inverter freqrol-hc2 seriesDien Ha The
 
Mitsubishi low voltage mccb and elcb(ws-v series) y0720-version 1-mitsu
Mitsubishi low voltage mccb and elcb(ws-v series) y0720-version 1-mitsuMitsubishi low voltage mccb and elcb(ws-v series) y0720-version 1-mitsu
Mitsubishi low voltage mccb and elcb(ws-v series) y0720-version 1-mitsuDien Ha The
 
Mitsubishi inverter freqrol-f700 pj series
Mitsubishi inverter freqrol-f700 pj seriesMitsubishi inverter freqrol-f700 pj series
Mitsubishi inverter freqrol-f700 pj seriesDien Ha The
 
Mitsubishi inverter catalog-mitsubishi-inverter-option-160426021125
Mitsubishi inverter catalog-mitsubishi-inverter-option-160426021125Mitsubishi inverter catalog-mitsubishi-inverter-option-160426021125
Mitsubishi inverter catalog-mitsubishi-inverter-option-160426021125Dien Ha The
 

More from Dien Ha The (20)

Vnd feb 2020 price list schneider (1)
Vnd feb 2020 price list schneider (1)Vnd feb 2020 price list schneider (1)
Vnd feb 2020 price list schneider (1)
 
Resize bientanfuji-dienhathe.com
Resize bientanfuji-dienhathe.comResize bientanfuji-dienhathe.com
Resize bientanfuji-dienhathe.com
 
Fed e-quick-start-up-guide-bientanfuji-dienhathe.com
Fed e-quick-start-up-guide-bientanfuji-dienhathe.comFed e-quick-start-up-guide-bientanfuji-dienhathe.com
Fed e-quick-start-up-guide-bientanfuji-dienhathe.com
 
Fed e-quick-start-manual-bientanfuji-dienhathe.com
Fed e-quick-start-manual-bientanfuji-dienhathe.comFed e-quick-start-manual-bientanfuji-dienhathe.com
Fed e-quick-start-manual-bientanfuji-dienhathe.com
 
Ls bang gia ls ap dung 20 04-2019
Ls bang gia ls ap dung 20 04-2019Ls bang gia ls ap dung 20 04-2019
Ls bang gia ls ap dung 20 04-2019
 
Mitsubishi graphic operation terminal got2000 series parts library book
Mitsubishi graphic operation terminal got2000 series parts library bookMitsubishi graphic operation terminal got2000 series parts library book
Mitsubishi graphic operation terminal got2000 series parts library book
 
Mitsubishi inverter fr-a700-instruction-manualbasic-160425031653
Mitsubishi inverter fr-a700-instruction-manualbasic-160425031653Mitsubishi inverter fr-a700-instruction-manualbasic-160425031653
Mitsubishi inverter fr-a700-instruction-manualbasic-160425031653
 
Mitsubishi graphic operation terminal got2000 series gt2103 new product release
Mitsubishi graphic operation terminal got2000 series gt2103 new product releaseMitsubishi graphic operation terminal got2000 series gt2103 new product release
Mitsubishi graphic operation terminal got2000 series gt2103 new product release
 
Mitsubishi graphic operation terminal got2000 series got mobile function quic...
Mitsubishi graphic operation terminal got2000 series got mobile function quic...Mitsubishi graphic operation terminal got2000 series got mobile function quic...
Mitsubishi graphic operation terminal got2000 series got mobile function quic...
 
Mitsubishi graphic operation terminal got2000 series drive control interactiv...
Mitsubishi graphic operation terminal got2000 series drive control interactiv...Mitsubishi graphic operation terminal got2000 series drive control interactiv...
Mitsubishi graphic operation terminal got2000 series drive control interactiv...
 
Mitsubishi inverter option catalog
Mitsubishi inverter option catalogMitsubishi inverter option catalog
Mitsubishi inverter option catalog
 
Mitsubishi low voltage ws-v series mccb and elcb
Mitsubishi low voltage ws-v series mccb and elcbMitsubishi low voltage ws-v series mccb and elcb
Mitsubishi low voltage ws-v series mccb and elcb
 
Mitsubishi graphic operation terminal got2000 series (concise)
Mitsubishi graphic operation terminal got2000 series (concise)Mitsubishi graphic operation terminal got2000 series (concise)
Mitsubishi graphic operation terminal got2000 series (concise)
 
Mitsubishi low voltage ws-v series comparison of previous and new models
Mitsubishi low voltage ws-v series comparison of previous and new modelsMitsubishi low voltage ws-v series comparison of previous and new models
Mitsubishi low voltage ws-v series comparison of previous and new models
 
Mitsubishi inverter inverter family
Mitsubishi inverter inverter familyMitsubishi inverter inverter family
Mitsubishi inverter inverter family
 
Mitsubishi low voltage miniature circuit breakers din series
Mitsubishi low voltage miniature circuit breakers din seriesMitsubishi low voltage miniature circuit breakers din series
Mitsubishi low voltage miniature circuit breakers din series
 
Mitsubishi inverter freqrol-hc2 series
Mitsubishi inverter freqrol-hc2 seriesMitsubishi inverter freqrol-hc2 series
Mitsubishi inverter freqrol-hc2 series
 
Mitsubishi low voltage mccb and elcb(ws-v series) y0720-version 1-mitsu
Mitsubishi low voltage mccb and elcb(ws-v series) y0720-version 1-mitsuMitsubishi low voltage mccb and elcb(ws-v series) y0720-version 1-mitsu
Mitsubishi low voltage mccb and elcb(ws-v series) y0720-version 1-mitsu
 
Mitsubishi inverter freqrol-f700 pj series
Mitsubishi inverter freqrol-f700 pj seriesMitsubishi inverter freqrol-f700 pj series
Mitsubishi inverter freqrol-f700 pj series
 
Mitsubishi inverter catalog-mitsubishi-inverter-option-160426021125
Mitsubishi inverter catalog-mitsubishi-inverter-option-160426021125Mitsubishi inverter catalog-mitsubishi-inverter-option-160426021125
Mitsubishi inverter catalog-mitsubishi-inverter-option-160426021125
 

Recently uploaded

VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxJoão Esperancinha
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingrakeshbaidya232001
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 

Recently uploaded (20)

VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptxDecoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
Decoding Kotlin - Your guide to solving the mysterious in Kotlin.pptx
 
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
★ CALL US 9953330565 ( HOT Young Call Girls In Badarpur delhi NCR
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 

Siemens s7 300-400-sm 338 ultrasonic position encoding module

  • 1. Ultrasonic Position Encoding Module SM 338 SIMATIC S7 Release 06/96Equipment Manual www.dienhathe.vn www.dienhathe.com
  • 3. Contents Product Overview 1 The SM 338 Module 2 Mounting 3 Data Communication with the PLC 4 Operation 5 Appendix A Release 06/96 SM 338 Ultrasonic Position Encoding Module Equipment Manual 762 21 087 SIMATIC S7 www.dienhathe.vn www.dienhathe.com
  • 4. SM 338 Equipment Manual (4) J31069 D401 U1 A0 7618 SIMATICR is a registered trademark of SIEMENS AG. This manual contains notices which you should observe to ensure your own personal safety, as well as to protect the product and connected equipment. These notices are highlighted in the manual by a warning triangle and are marked as follows according to the level of danger: ! Danger indicates that death, severe personal injury or substantial property damage will result if proper precautions are not taken. ! Warning indicates that death, severe personal injury or substantial property damage can result if proper precautions are not taken. ! Caution indicatesthatminorpersonalinjuryorpropertydamagecanresult ifproper precautionsare nottaken. Note draws your attention to particularly important information on the product, handling the product, or to a particular part of the documentation. The device/system may only be set up and operated in conjunction with this manual. Note the following: ! Warning This device and its components may only be used for the applications described in the catalog or the technical description, and only in connection with devices or components from other manufacturers which have been approved or recommended by Siemens. This product can only function correctly and safely if it is transported, stored, set up, and installed correctly, and operated and maintained as recommended. We have checked the contents of this manual for agreement with the hardware and software described. Since deviations cannot be precluded entirely, we cannot guarantee full agreement. However, the data in this manual are reviewed regularly and any neces- sary corrections included in subsequent editions. Suggestions for improvement are welcomed. Disclaimer of LiabilityCopyright E Siemens AG 1995 All rights reserved The reproduction, transmission or use of this document or its contents is not permitted without express written authority. Offenders will be liable for damages. All rights, including rights created by patent grant or registration of a utility model or design, are reserved. Siemens AG Automation Group Systems Engineering P. O. Box 2355 D-90713 Fuerth Germany Siemens Aktiengesellschaft Order No. 762 21 087 Technical data subject to change. E Siemens AG 1995 Safety Guidelines Qualified Personnel Correct Usage www.dienhathe.vn www.dienhathe.com
  • 5. i SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 Table of Contents 1 Product Overview 1-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 The SM 338 Module 2-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 Layout 2-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2 Measuring Principle 2-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.3 US Measuring System 2-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Mounting 3-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.1 Installation 3-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2 Installation 3-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 Data Communication with the PLC 4-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 Input Area 4-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2 Parameter Area 4-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3 Diagnosos Area 4-9. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3.1 System Diagnosis Bytes 4-10. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3.2 Channel--Related Diagnosis Bytes 4-12. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 Operation 5-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.1 Parameter Assignment 5-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.2 Example of an SDB 100 5-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.3 Normal Operation 5-7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5.4 Error Diagnostics 5-8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 Appendix A-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A.1 Technische Daten A-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A.2 Plug Connector Allocation A-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . A.3 Recommended Accessories A-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . www.dienhathe.vn www.dienhathe.com
  • 6. ii SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 Figures 2-1 Front view of the module 2-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2 Principle of ultrasonic position encoding 2-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-3 Possible assignment of the measuring points 2-6. . . . . . . . . . . . . . . . . . . . . . . . 4-1 Organization of the dual port RAM 4-1. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2 Example of the measuring points of a sensor 4-5. . . . . . . . . . . . . . . . . . . . . . . . 5-1 Flowchart of channel--related diagnostics 5-9. . . . . . . . . . . . . . . . . . . . . . . . . . . Tables 2-1 LED indicators 2-3. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-2 Recommended sensors 2-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1 Slot for the SM 338 3-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-2 Slot numbers for S7 modules 3-4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-3 Terminal assignment 3-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1 Input area 4-2. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-2 Bytes for counter assignment 4-5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-3 Bytes for setting of the counters 4-6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-4 Default values for the parameter area 4-8. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Table of Contents www.dienhathe.vn www.dienhathe.com
  • 7. iii SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 Notes on the CE Seal The following applies to the product described in this manual. Products bearing the CE seal meet the requirements of EU Directive 89/336/EEC ’Electromagnetic Compatibility’ and the harmonized European standards (EN) listed therein. In accordance with article 10 of the above--mentioned EU Directive, the EU declarations of conformity are held available for inspection by responsible authorities at the addresses listed below: Siemens Aktiengesellschaft Bereich Automatisierungstechnik AUT7 WKF KB2 Postfach 2355 D-90713 Fürth The products have been designed for use in the industrial area and meet the following requirements: Area of Application Requirements Emitted interference Immunity Industry EN 50081-2 : 1993 EN 50082-2 : 1995 The products meet the requirements if you: 1. Observe the installation guidelines and safety notes contained in the ap- plicable manuals and supplementary documentation, both for the pro- grammable system and the individual module. 2. Observe the rules below. The programmable systems and the listed modules must be installed in grounded, closed metal enclosures (e.g., switching cabinets). All signal lines outside this enclosure must be shielded as described in the equipment manuals. The shields of the signal lines must be applied to the shield bar at the entrance to the cabinet. EU EMC directive 89/336/EEC Area of application Observing the installation guide- lines Installing the devices www.dienhathe.vn www.dienhathe.com
  • 8. iv SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 In order to protect the modules from static electrical discharge, operating personnel must discharge themselves of static electricity before opening switching cabinets or switchboxes. In contrast to the specifications contained in the ”General Technical Specifi- cations” of the manual, the specifications listed below on electromagnetic compatibility apply to modules which carry the CE seal. The specifications apply to devices installed in accordance with the stated installation guidelines. Electromagnetic Compatibility Specifications Test Values Immunity to static electrical discharge1 Tested in accordance with EN 61000-4-2 Discharge to air 8 kV Discharge on contact 4 kV Immunity to electromagnetic fields1 S Tested in accordance with EN V 50140 (amplitude-modulated HF) S Tested in accordance wit EN V 50204 ((pulse--modulated HF) 80 to 1000 MHz 10 V/m 80% AM (1 kHz) 900 MHz 10 V/m 50% ED, 200 Hz repetition frequency Immunity to fast transient bursts Tested in accordance with EN 61000-4-4 S Supply lines for AC 120/230 V S Signal lines (I/O and bus lines) 2 kV 2 kV 2 Immunity to high frequency Tested in accordance with EN V 50141 0.15 to 80 MHz 10 V 80% AM (1 kHz) Source impedance 150 Ω Emitted interference1 Tested in accordance wit EN 55011 S Emission of electromagnetic fields S Emitted interference over supply cable Limit value class A, group 1 Limit value class A, group 1 1 For closed metal housing 2 Signal lines that are not used for process control: 1 kV (e.g., connections to external printers) Working on switching cabinets Updated technical specifications Preface www.dienhathe.vn www.dienhathe.com
  • 9. 1-1 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 Product Overview The SM 338 is a position encoding module for the S7-300 programmable controller. The module is connected to the P bus of the programmable con- troller, and its parameters are assigned by the CPU. The SM 338 belongs to the family of signal modules. Position encoding is performed by ultrasonic sensors. These sensors offer the following primary advantages. S No wear and tear S High protection class S Steady accuracy regardless of the sensor length S Low costs for longer sensors (> 500 mm) S Up to four measuring points (magnets) per sensor possible S The digital sensor interface (RS 422) is not sensitive to interference and permits lines up to 50 m in length. The SM 338 does not condition the data. Its only function is to supply the CPU with counting values. Eight counters are available for the acquisition of measured values. Up to four sensors can be connected on the SM 338 module, and each sensor can contain up to four measuring points. The sum of the measuring points on all connected sensors may not exceed 8. The sensors connected to the module can operate in synchronous or asyn- chronous mode. This requires that the parameters of the selected sensors be assigned appropriately. Synchronous mode The selected sensors operate synchronously (i.e., at the end of the cycle time, the counting values of all synchronous sensors are transferred to the input area of the dual port RAM). If enabled, an end-of-cycle alarm to the CPU is then triggered. Synchronous mode does not use a parameterized, sensor-re- lated, measuring cycle time. Position encoding with ultrasonic sensors Operating modes 1 www.dienhathe.vn www.dienhathe.com
  • 10. 1-2 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 Asynchronous mode The selected sensors operate asynchronously (i.e., each sensor operates with its own specific sensor measuring cycle time). The measuring cycle time is the time available to the sensor for one measurement. This time can be set separately for each sensor. Cycle time and measuring cycle time are not de- pendent on each other. At the end of the measuring cycle time, the counting values allocated to this sensor are transferred to the input area of the dual port RAM. The SM 338 module is equipped with the following functions. S Each sensor can be parameterized separately. S Cycle time and measuring cycle time can be parameterized separately (and with different lengths). S Global enabling of an end-of-cycle alarm (i.e., process alarm) can be parameterized. S Global enabling of diagnosis alarms can be parameterized. S Sensor-related enabling of the diagnoses can be parameterized. S Sensor-related enabling of wire break monitoring can be parameterized. S Firmware monitoring via watchdog S Indication of error states via two LEDs S Module parameters can be reassigned during normal running operation. The main application area of the SM 338 is with plastics processing ma- chines. Particularly with injection molding and blow molding machines, ul- trasonic sensors are being used increasingly for position encoding. The SM 338 is the direct link from the sensor to the S7-300 programmable con- troller. - Functionality Use Product Overview www.dienhathe.vn www.dienhathe.com
  • 11. 2-1 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 The SM 338 Module 2 www.dienhathe.vn www.dienhathe.com
  • 12. 2-2 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 2.1 Layout The SM 338 is installed in a compact, plastic housing. This housing is mounted on the rail of your programmable controller. The two plug connectors on the back connect the module to the P bus. All other connection and indicator elements are located on the front of the module. Figure 2-1 shows the location of these elements. SF LED indi- cators External supply volt- age (24 V) X Slot number Covering flaps Sensors 2 + 4 Sensors 1 + 3DC Figure 2-1 Front view of the module The back The front The SM 338 Module www.dienhathe.vn www.dienhathe.com
  • 13. 2-3 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 The LED indicators on the front of the module have the functions listed in table 2-1. Table 2-1 LED indicators Indicator Function DC (green) External voltage present External voltage not present SF (red) System error/module requires diagnosis Normal operation LED indicators The SM 338 Module www.dienhathe.vn www.dienhathe.com
  • 14. 2-4 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 2.2 Measuring Principle A START pulse is sent by the SM 338 via the RS 422 interface. The sensor electronics send an echo of this pulse back to the SM 338. The START pulse generates a current pulse in the sensor electronics. This current pulse moves from the sensor electronics toward the end of the measuring bar. Figure 2-2 shows a diagram of the interaction between module and sensor. µ ds SM 338 RS 422 interface Sensor electron- ics Ultrasonic position sensor Ultrasonic pulse Measuring bar Measuring point (magnet) Current pulseSTART (Echo) STOP START signal ds Attenuation zone Figure 2-2 Principle of ultrasonic position encoding The moving magnet field with the current pulse and the permanent magnet field of the measuring point begin to affect each other. An ultrasonic pulse is generated at the position of the measuring point (i.e., magnetostrictive princi- ple). This ultrasonic pulse spreads out in the direction of the end of the bar and the sensor electronics. The pulse is attenuated at the end of the bar. The sensor electronics convert this pulse into an electrical signal (i.e., the STOP pulse). The time between the echo of the START pulse and the STOP pulse is pro- portionate to the distance. This time is acquired by the SM 338 and for- warded. Note Conversion of the position into mm using an offset factor is performed by the CPU. The SM 338 Module www.dienhathe.vn www.dienhathe.com
  • 15. 2-5 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 2.3 Ultrasonic Measuring System A system for ultrasonic position encoding includes the following: -- S7-300 PLC with CPU and power supply -- Ultrasonic positioning module SM 338 -- External supply voltage of 24 V -- Ultrasonic position encoding sensor(s) Ultrasonic position encoding sensors with the following capabilities can be used. S START/STOP interface with RS 422 signals S Power supply: for all sensors connected simultaneously to the SM 338 -- +15 V/max. of 200 mA, floating or -- +24 V/max. of 300 mA, floating The following sensors are recommended for connection to the SM 338. Table 2-2 Company Model Supply Remarks MTS (Temposonic) TTM LP +15 V/100 mA 15 to 24 V/30 mA Bar form Substitute for linear potentiometer T&R LP 38-SS 15 to 27 V/40 mA Substitute for linear potentiometer Balluff BTL2-P1-xxxx-B-xx BTL2-P1-xxxx-P/F-xx 22 to 26 V/80 mA 22 to 26 V/80 mA Bar form Substitute for linear potentiometer The resolution is 0.05 mm for a sensor length of less than 3 m. The resolu- tion is 0.1 mm for the maximum sensor length of 6 m. Up to 4 encoding sensors can be connected to one SM 338. Up to 4 measur- ing points per encoding sensor are permitted. One SM 338 can evaluate a total of up to 8 measuring points. When several measuring points are located on a sensor, the sensor-related, minimum distance must be maintained. This distance ensures that the mea- suring points do not interfere with each other. System scope Sensor capabilities Recommended sensors Sensor length and measuring accu- racy Number of sensors Minimum distance of the measuring points The SM 338 Module www.dienhathe.vn www.dienhathe.com
  • 16. 2-6 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 Except for the restrictions mentioned above, the measuring points can be al- located to the sensors as desired (e.g., 4-2-1-1, 2-2-2-2, 1-0-4-3, and so on). Figure 2-3 shows a complete system and a possible assignment of the mea- suring points. AS 300 bus (of CPU) AS 300 bus (to end of rack) Measuring points 1 to 4 Sensor 1 Sensor 3 Sensor 2 Sensor 4 Measuring points 5+6 Measuring point 7 Measuring point 8 230 V AC 24 V DC X 1 X 2 SM 338 Figure 2-3 Possible assignment of the measuring points - Allocation of the measuring points The SM 338 Module www.dienhathe.vn www.dienhathe.com
  • 17. 3-1 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 Installation 3 www.dienhathe.vn www.dienhathe.com
  • 18. 3-2 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 3.1 Mounting The S7-300 is a programmable controller which can be equipped with vari- ous modules to meet the requirements of the particular automation task. Certain rules apply when positioning the SM 338 on the rail of the S7-300. S A maximum of 8 signal modules may be placed to the right next to the CPU. S The number of modules which can be installed is restricted by their cur- rent consumption from the S7-300 bus. Make sure that the total current consumption of all modules on the rail does not exceed 1.2 A. When a vertical setup of the S7-300 is used, the maximum environmental temperature permitted is reduced from 60° to 40° C. Table 3-1 shows you which slots can be used for the SM 338. Table 3-1 Slots for the SM 338 Slot number 1 2 3 4 5 6 7 8 9 10 11 Rack 1 Rack 2 - Rack 3 - Rack 4 - Module can be installed. Module cannot be installed. Slot does not exist.- The standard precautionary measures as set forth in the ESD guidelines must be adhered to when handling the module. Introduction Position and envi- ronmental temperature Slots Handling Installation www.dienhathe.vn www.dienhathe.com
  • 19. 3-3 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 To mount the module on the rail, proceed as shown below. 3. Switch CPU to STOP status. 4. Unscrew the screw on the bottom of the module to the left of the SM 338. 5. Swing this module up, and insert the included bus connector. Bus connector Mounting the module Installation www.dienhathe.vn www.dienhathe.com
  • 20. 3-4 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 6. Hook in (1) the SM 338 on the top of the rail, and swing down (2). (1) (2) 7. Tighten both modules with screws (turning moment for screwdriver: 80 to 110 Ncm). 8. Assign the SM 338 a slot number as shown in table 3-2. Table 3-2 Slot numbers for S7 modules Slot Number Module Remarks 1 Power supply (PS) - 2 Central processing unit (CPU) - 3 Interface module (IM) - 4 1st signal module To the right, next to the CPU or IM 5 2nd signal module - 6 3rd signal module - 7 4th signal module - 8 5th signal module - 9 6th signal module - 10 7th signal module - 11 8th signal module - Installation www.dienhathe.vn www.dienhathe.com
  • 21. 3-5 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 9. Punch out the appropriate number on the front. X To connect the external supply voltage, open the covering flap on the left side of the module. Table 3-3 Terminal assignment Terminal Assignment 1 P24 (input voltage jumpered with 3) 2 M24 (ground externally jumpered with 4) 3 P24 (jumpered with 1) 4 M24 (jumpered with 2) Connect the supply voltage as shown on the printed terminal assignment. ! Warning It is absolutely essential to use a powerpack with potential isolation. Connecting exter- nal supply voltage Installation www.dienhathe.vn www.dienhathe.com
  • 22. 3-6 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 3.2 Wiring S For notes on installing an automation system, see the section on wiring an S7-300 in the S7-300 manual. For detailed information, see also the guidelines on interference-proof setup of programmable controllers. Order no: EWA 4NEB 811 617001 S Use the following to connect the sensors. -- Connectors with shield spring (V42254-A1115-C325) and -- Connector covers with shielding (V42254-A6000-Gx25) S The sensor lines are shielded (6AP5 400-2AA01). The shield must be applied in the connectors as required for RF, (i.e., shield braiding via cable clamp on connector housing). S All line shields must be applied to a grounded shield rail (6ES7 390-5AA00-0AA0) with small shield clamps. S All sub D connectors must be secured with screws. S Only one central connection between reference potential and shield is permitted. When an S7 power supply module is used, this connection has already been implemented inside. - Installation www.dienhathe.vn www.dienhathe.com
  • 23. 4-1 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 Data Communication with the PLC The SM 338 is not equipped with operator control components. Software handles the complete configuration of the module. The housing does not need to be opened, and jumpers do not have to be inserted. Data communication with the CPU of the PLC takes place in the dual port RAM of the module. Figure 4-1 shows the organization of the dual port RAM. P bus SM 338 Parameter area Output area (not used) Input area Diagnosis area Write only Write onlyRead only Read only Figure 4-1 Organization of the dual port RAM Introduction Data communica- tion with the PLC Organization of the dual port RAM 4 www.dienhathe.vn www.dienhathe.com
  • 24. 4-2 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 4.1 Input Area The acquired counting values are stored in the input area. Each of the eight counters is represented with a resolution of 16 bits. Table 4-1 shows the or- ganization of the input area. Table 4-1 Input area Value of HIGH Byte LOW Byte Counter 1 0 1 Counter 2 2 3 Counter 3 4 5 Counter 4 6 7 Counter 5 8 9 Counter 6 10 11 Counter 7 12 13 Counter 8 14 15 After a RESET, the entire area contains the value 0. Organization Default setting Data Communication with the PLC www.dienhathe.vn www.dienhathe.com
  • 25. 4-3 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 4.2 Parameter Area The parameters required for presetting the SM 338 are stored in two data re- cords in the 16-byte parameter area. This area can only be write-accessed by the P bus. The data can also be modified during running operation (i.e., dy- namically). Note All bits which are not defined in the following text are reserved and must be “0”. Data record 0 consists of two bytes. Data record 0 is used to enable the following functions. S The channel-related diagnostics and wire break monitoring S Alarms The entries in byte 0 specify general enabling of channel-related diagnostics and wire break monitoring for each sensor. Channel-related diagnostics Sensor 1 Sensor 2 Sensor 3 Sensor 4 7 0 Byte 0 Wire break monitoring Sensor 1 Sensor 2 Sensor 3 Sensor 4 0: Disabled 1: Enabled Diagnostics These bits can be used to enable/disable generation of diagnostics (i.e., re- porting of errors) for each position sensor. General Data record 0 Channel-related diagnostics, wire break monitoring Data Communication with the PLC www.dienhathe.vn www.dienhathe.com
  • 26. 4-4 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 Wire break monitoring These bits can be used to enable/disable wire break monitoring for each posi- tion sensor. Wire break monitoring is performed indirectly by evaluating the reaction of the position sensor to a START pulse from the SM 338. If the position sensor does not react within a specified period of time, this is considered a wire break. Byte 1 can be used to enable or disable the end-of-cycle or diagnosis alarm. 7 0 Byte 1 End-of-cycle alarm Diagnosis alarm 0: Alarm disabled (i.e., is not forwarded) 1: Alarm enabled 0 0 0 0 0 0 Data record 1 consists of 14 bytes. Data record 1 contains the following: S Assignment of the counters and the counter setting (4 x 3 bytes) for each sensor S Setting of the cycle time (1 byte) S Setting of the sensor-related, synchronous mode (1 byte) Enabling alarms Data record 1 Data Communication with the PLC www.dienhathe.vn www.dienhathe.com
  • 27. 4-5 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 Two bytes each are used to assign the eight counters to the four sensors and to specify their measuring points. Table 4-2 shows the applicable bytes for each sensor. Table 4-2 Bytes for counter assignment Sensor Number Bytes 1 2 and 3 2 5 and 6 3 8 and 9 4 11 and 12 Measuring point 1 Measuring point 2 Measuring point 3 Measuring point 4 0 0 0 0 No counter assigned 0 0 0 1 Counter 1 assigned 0 0 1 0 Counter 2 assigned 0 0 1 1 Counter 3 assigned . . . . . . 0 1 1 1 Counter 7 assigned 1 0 0 0 Counter 8 assigned 1 0 0 1 No counter assigned* . . . . . . 1 1 1 1 No counter assigned* 7 0 Byte n 7 0 Byte (n+1) Note The counter assignments marked with an * are illegal and will trigger the diagnosis message “wrong parameters on the module”. Counting of the measuring points of a sensor always begins with the sensor electronics. Measuring point Electronics 34 2 1 Figure 4-2 Example of the measuring points of a sensor Sensor-related counter assign- ment Data Communication with the PLC www.dienhathe.vn www.dienhathe.com
  • 28. 4-6 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 The assigned counters for each sensor are set in one byte. Table 4-3 shows the respective byte assigned. Table 4-3 Bytes for setting the counters Sensor Number Byte 1 4 2 7 3 10 4 13 Measuring cycle time 0 0 0 0 0 16.0 msec 0 0 0 0 1 0.5 msec 0 0 0 1 0 1.0 msec . . . . . . 1 1 1 1 1 15.5 msec Starting the counter 0: Immediately with sent START pulse 1: With echo of the sent START pulse Selecting the edge Counter starts/stops with 0: Rising edge (L ® H) 1: Falling edge H ® L) Resolution 0: 0.10 mm (max. meas. range of approx. 6 m) 1: 0.05 mm (max. meas. range of approx. 3 m) 7 0 Byte (n+2) Measuring cycle time The measuring cycle time can be set in increments of 0.5 msec depending on the sensor being used (length and required dead times). The maximum mea- suring cycle time is 16 msec. Starting the counter When the counter is started with the sent START pulse, the maximum mea- suring distance is reduced by the signal run time (approaching and returning line) through all components. If the counter is started with the echo of the START pulse, a synchronization error occurs. Selecting the edge Set the edge as described by the manufacturer of the sensor. Sensor-related counter setting Data Communication with the PLC www.dienhathe.vn www.dienhathe.com
  • 29. 4-7 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 The SM 338 can generate an end-of-cycle alarm (i.e., process alarm 0) at the end of the cycle time set. This requires that generation be enabled in byte 1 of data record 0. Cycle time 0 0 0 0 0 16.0 msec 0 0 0 0 1 0.5 msec 0 0 0 1 0 1.0 msec . . . . . . 1 1 1 1 1 15.5 msec 7 0 Byte 14 0 0 0 In synchronous mode, the sensor operates with the cycle time for alarm gen- eration in byte 14 of data record 1, and not with its preset measuring cycle time. In synchronous mode, new measured values are supplied at the same time as the end-of-cycle. Synchronous mode Sensor 1 Sensor 2 Sensor 3 Sensor 4 0: Asynchronous 1: Synchronous 7 0 Byte 15 0000 Note When one or more sensors are operated in synchronous mode, it is abso- lutely imperative that the cycle time be adjusted to the slowest sensor. The module does not perform a plausibility check of this. Cycle time Sensor-related synchronous mode Data Communication with the PLC www.dienhathe.vn www.dienhathe.com
  • 30. 4-8 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 Following a new start or a RESET of the module, the parameter area is set with the default values specified in table 4-4. Table 4-4 Default values for the parameter area Value Meaning Data record 0 Byte 0 00H No diagnostics and wire break monitoring Byte 1 00H Alarms disabled Data record 1 Byte 2 01H Sensor 1: C 1 i i 1 Byte 3 00H Counter 1 to measuring point 1 Byte 4 00H Resolution of 0.1 mm; rising edge starts/stops counter; counter starts immediately with sent START pulse; measuring cycle time is 16 msec. Byte 5 02H Sensor 2: C 2 i i 1 Byte 6 00H Counter 2 to measuring point 1 Byte 7 00H Same as byte 4 Byte 8 03H Sensor 3: C 3 i i 1 Byte 9 00H Counter 3 to measuring point 1 Byte 10 00H Same as byte 4 Byte 11 04H Sensor 4: C 4 i i 1 Byte 12 00H Counter 4 to measuring point 1 Byte 13 00H Same as byte 4 Byte 14 00H Cycle time of 16 msec Byte 15 00H No synchronous mode Default settings Data Communication with the PLC www.dienhathe.vn www.dienhathe.com
  • 31. 4-9 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 4.3 Diagnosis Area The errors detected by the SM 338 are stored in the 12-byte diagnosis area. A set bit signals an error. If the error is a sporadic one, it is stored and re- ported to the CPU as “arriving”. After acknowledgment of the diagnosis alarm, such an error is then immediately reported as “departing”. The SF LED only lights up for the actual duration of the error, but at least 1 second. It is switched off again to make on-site error analysis easier. The P bus can only read-access the diagnosis area. General SF LED (system error) Access Data Communication with the PLC www.dienhathe.vn www.dienhathe.com
  • 32. 4-10 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 4.3.1 System Diagnosis Bytes Note The contents of the system diagnosis bytes are standardized, and fixed desig- nations are used. The standardized term “channel” corresponds to a sensor for the SM 338. The system diagnosis bytes occupy the first 4 bytes of the diagnosis area. They contain errors occurring at the module level. Their contents are de- scribed in detail below. 7 0 0Byte 0 Module malfunction (Any error was detected.) Internal error (e.g., EPROM checksum wrong) External error (e.g., cable break detected) Channel error detected Fault in the 24 V external voltage supply Module parameters not assigned Wrong parameters on the module Module parameters not assigned Valid parameters have not been transferred since booting took place. The bit is reset after the correct parameters have been transferred. Wrong parameters on the module When accepting parameters, the SM 338 checks their plausibility within cer- tain limits. A detected error is indicated here and cancelled after valid pa- rameters have been received. Module class Channel information present 7 0 000Byte 1 0 0 11 Channel information present The error which occurred on a channel (i.e., sensor) is described in more de- tail in bytes 4 to 11. Module errors Module class, channel informa- tion Data Communication with the PLC www.dienhathe.vn www.dienhathe.com
  • 33. 4-11 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 Communication malfunction (detected by the module) Time monitoring (Watchdog has triggered a RESET.) 7 0 00000Byte 2 Failure of internal module supply voltage (sensor supply +15 V/+24 V; inter- face supply 5 V) Time monitoring The module is equipped with a time monitoring function to check that the firmware is functioning correctly. If program run time exceeds a certain time frame, a RESET is triggered on the module. The module then boots with the default parameters and does not go into an undefined state. EPROM error (wrong checksum during test) RAM error 7 0 000000Byte 3 When a memory error occurs, the module can only be started again with a RESET on the bus. Data communica- tion, program run time and supply voltage Memory error Data Communication with the PLC www.dienhathe.vn www.dienhathe.com
  • 34. 4-12 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 4.3.2 Channel-Related Diagnosis Bytes Channel-related data are stored in bytes 4 to 11. The contents of bytes 4 to 6 are fixed while bytes 7 to 11 contain the actual channel errors. Channel type = 7EH 7 0 0Byte 4 1 1 1 1 1 1 0 Length of the diagnosis information per channel = Number of bits per channel Value: 08H 7 0 00010000Byte 5 Number of channels (i.e., sensors) Value: 04H 7 0 00100000Byte 6 Group error for channel 1 See byte 8 for more details. 7 0 0000Byte 7 Group error for channel 2 See byte 9 for more details. Group error for channel 3 See byte 10 for more details. Group error for channel 4 See byte 11 for more details. Channel type Diagnosis bits per channel Number of channels Group errors of the channels (channel error vector) Data Communication with the PLC www.dienhathe.vn www.dienhathe.com
  • 35. 4-13 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 Byte 8: Channel 1 Byte 9: Channel 2 Byte 10: Channel 3 Byte 11: Channel 4 7 0 0000 Parameter error Wire break Pulse error Counter overflow Parameter error The channel (i.e., sensor) contains invalid parameters. Wire break The sensor has not supplied a STOP pulse. Pulse error The sensor has not supplied enough STOP pulses. Counter overflow A 16-bit counter assigned to the channel (i.e., sensor) has overflowed. Note All counters assigned to the channel (i.e., sensor) output the value 0 for the duration of the error. - Individual errors of the channels Data Communication with the PLC www.dienhathe.vn www.dienhathe.com
  • 36. 4-14 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 Data Communication with the PLC www.dienhathe.vn www.dienhathe.com
  • 37. 5-1 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 Operation The parameters of the SM 338 must be assigned before it can begin position encoding. When an error occurs, it provides a diagnosis if this was enabled in the parameter assignment. 5 www.dienhathe.vn www.dienhathe.com
  • 38. 5-2 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 5.1 Parameter Assignment Parameter assignment sets the SM 338 module to the connected sensors. There are three ways to assign parameters to the SM 338. S Automatic parameter assignment S Parameter assignment by the CPU during startup (SDB 100) S Parameter assignment via SFC during operation Transferred parameters are always subject to a plausibility check. The fol- lowing checks are performed. S Number of counters used < 8 S Number of measuring points per sensor < 4 S Each counter only used once If the module was not parameterized by the CPU after conclusion of initiali- zation and release, the parameters are assigned automatically. The following default values are loaded (see table 4-4). S One measuring point per sensor S Greatest measuring cycle time S Sensors operate asynchronously. S Lowest resolution (i.e., greatest measuring range) S End-of-cycle and diagnosis alarm disabled S Channel-related diagnostics and wire break monitoring disabled Parameter assignment is performed by the CPU during startup (after every transition from STOP to RUN). The parameter information is taken from the SDB 100 system data block and transferred to the module. Requirements: S SDB 100 exists. S SDB 100 contains appropriate parameter information for all slots which have been used. S Type identifier in the parameter record matches the type identifier of the module. Automatic parame- ter assignment Parameter assign- ment via CPU Operation www.dienhathe.vn www.dienhathe.com
  • 39. 5-3 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 Parameter assignment via SFC (abbreviation of System Function Call) is per- formed during normal operation. All parameters in data records 0 and 1 can be changed. Note All parameters in both data records must always be valid since all 16 bytes are transferred and compared. Parameter assignment via SFC is primarily used for dynamic, measuring cycle control. The plastics industry uses this method to shorten the duration of a measuring cycle by temporarily disabling measuring channels, or to per- form continuous measurements in critical situations. Parameter assign- ment via SFC Operation www.dienhathe.vn www.dienhathe.com
  • 40. 5-4 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 5.2 Example of an SDB 100 Using a programmable controller containing an SDB 100, modules whose parameters can be assigned can be parameterized each time a switch is made from STOP to RUN. During startup, the CPU performs a bus identification procedure and enters the module identifier(s). When the SDB 100 is transferred to the module, the CPU first checks to de- termine whether the module identifier entered for the respective slot matches the module identifier stored in the SDB 100 for this slot. The parameters are not transferred until this check is performed successfully. The module identifier classifies the installed module with respect to its ad- dress in the I/O address area of the CPU. Example: The SM 338 has the module identifier 05EDH. 00000101 11101101 16-byte input area (counting values) 16-byte output area (not used) System identifier for S7 Can be parameterized Class identifier: SONDER Type class: SM-ANALOG Introduction Module identifier Operation www.dienhathe.vn www.dienhathe.com
  • 41. 5-5 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 SDB 100 (* Slot directory = contents directory *) KH = 0008 (* Length of directory: The value corresponds to the number of entries (1 entry = 2 bytes) *) KH = 0000 (* Data offset in bytes for slot 4 *) KH = 0000 (* Data offset in bytes for slot 5 *) KH = 0012 (* Data offset in bytes for slot 6 *) KH = 0034 (* Data offset in bytes for slot 7 *) (* Values are global pointers and specify after how many bytes after the start of the file the data for this slot begin *) KH = 0000 (* Data offset in bytes for slot 8 *) KH = 0000 (* Data offset in bytes for slot 9 *) KH = 0000 (* Data offset in bytes for slot 10 *) KH = 0000 (* Data offset in bytes for slot 11 *) (* Parameter block of the first SM 338 module *) (* Offset 12h = 18 dec: Data for slot 6 *) KH = 0002 (* Transmission attribute *) KH = 0002 (* Number of data records *) KH = 05ED (* Module identifier ”SM_AI_SONDER” *) (* Infos (header) for data record 0 *) KH = 8012 (* Offset for net data, data record 0 in bytes *) (* Offset 12h = 18 dec: local pointer; specifies after how many bytes after the start of the parameter block the data for data record 0 are located *) KH = 0002 (* Identifier for data record 0; length: 2 bytes *) KH = 0000 (* Reserved *) (* Infos (header) for data record 1 *) KH = 8014 (* Offset for net data, data record 1 in bytes *) (* Offset 14h = 20 dec: local pointer; specifies after how many bytes after the start of the parameter block the data for data record 1 are located *) KH = 010E (* Identifier for data record 1; length: 14 bytes *) KH = 0000 (* Reserved *) (* Parameters of the module *) (* Starting here, the parameters are to be transferred to the module *) KH = FF44 (* Channel diagnostics; diagnosis and end-of-cycle alarm *) (* Offset 12h = 18 dec after start of the parameter block *) KH = 2143 (* S1: meas. pts 2,1 -> counters 2,1; meas. pts 4,3 -> counters 4,3 *) (* Offset 14h = 20 dec after start of the parameter block *) KH = 8200 (* 0.05 mm, r. ed., START-I, 1 msec; S2: meas. pts 2,1 -> free *) KH = 0000 (* S2: meas. pts 4,3 -> free; 0.1 mm, r. ed., START-I, 16 msec *) KH = 0000 (* S3: meas. pts. 2,1 free; meas. pts 4,3 -> free *) KH = 0000 (* 0.1 mm, r. ed., START-I, 16 msec; S4: meas. pts 2,1 -> free *) KH = 0000 (* S4: meas. pts 4,3 -> free; 0.1 mm, r. ed., START-I, 16 msec *) KH = 0000 (* Cycle time 16 msec; sensors asynchronous *) (* Same as above; parameter record for the second module *) (* Parameter block of the second SM 338 module *) (* Offset 34h = 52 dec: Data for slot 7 *) KH = 0002 (* Transmission attribute *) KH = 0002 (* Number of data records *) KH = 05ED (* Module identifier ”SM_AI_SONDER” *) (* Infos (header) for data record 0 *) KH = 8012 (* Offset for net data, data record 0 in bytes *) KH = 0002 (* Identifier for data record 0; length: 2 bytes *) KH = 0000 (* Reserved *) Fixed entries 16 bytes of data records 0 and 1 SDB 100 Program Operation www.dienhathe.vn www.dienhathe.com
  • 42. 5-6 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 (* Infos (header) for data record 1 *) KH = 8014 (* Offset for net data, data record 1 in bytes *) KH = 010E (* Identifier for data record 1; length: 14 bytes *) KH = 0000 (* Reserved *) (* Parameters of the module *) KH = FF44 (* Channel diagnostics; diagnosis and end-of-cycle alarm *) KH = 2143 (* S1: meas. pts 2,1 -> counters 2,1; meas. pts 4,3 -> counters 4,3 *) KH = 8200 (* 0.05 mm, r. ed., START-I, 1 msec; S2: meas. pts 2,1 -> free *) KH = 0000 (* S2: meas. pts 4,3 -> free; 0.1 mm, r. ed., START-I, 16 msec *) KH = 0000 (* S3: meas. pts. 2,1 free; meas. pts 4,3 -> free *) KH = 0000 (* 0.1 mm, r. ed., START-I, 16 msec; S4: meas. pts 2,1 -> free *) KH = 0000 (* S4: meas. pts 4,3 -> free; 0.1 mm, r. ed., START-I, 16 msec *) KH = 0000 (* Cycle time 16 msec; sensors asynchronous *) Operation www.dienhathe.vn www.dienhathe.com
  • 43. 5-7 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 5.3 Normal Operation After the parameters have been assigned correctly, the SM 338 functions in normal operation. This is signaled by the LEDs as shown below. S DC (green) on S SF (red) off Depending on the parameter assignment, the measured values of a sensor are updated synchronously (i.e., at the end of the cycle time) or asynchronously (i.e., at the end of the measuring cycle time). The sensor values can then be read in by the user program and evaluated. Note Each counting value consists of 2 bytes or 1 word (i.e., data consistency re- quires that the counting values be fetched via “load I/O input word”). Operation www.dienhathe.vn www.dienhathe.com
  • 44. 5-8 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 5.4 Error Diagnostics Diagnostics acquire errors on the module Diagnosis information is updated continuously and stored in the diagnosis area of the dual port RAM. If channel-related diagnostics is enabled, this additional information is entered when channel errors occur. Both arriving and departing errors are considered by the diagnostics. The CPU can read out the diagnosis area. An error which has occurred is indicated by the red “SF” LED regardless of whether the diagnosis alarm is enabled or not. Note This alarm is not forwarded to the CPU unless the diagnosis alarm is en- abled. If the diagnosis alarm has been enabled during assignment of the SM 338 parameters, an OB 82 must exist in the programmable controller. The first six words of the local data of OB 82 contain information concerning the module address and identifier, and the four bytes of system diagnostics. When a diagnosis alarm is received, the CPU branches to OB 82 and trans- fers the diagnosis information to the user program. Diagnostics Diagnosis alarm Operation www.dienhathe.vn www.dienhathe.com
  • 45. 5-9 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 Channel-related diagnostics is performed as shown in the flowchart below. Diagnosis alarm to CPU YES Error on channel x? NO YES “SF” LED on Wire break? NO Other channel error? NO Channel- related diagnostics and monitoring en- abled? NO Channel- related diag- nostics en- abled? NO Entry in byte 7 (channel error vector), and bytes 8 to 11? Update system diagnosis bytes (channel error). YES YES Diagnosis alarm en- abled? NO End YES Entry in byte 7 (channel error vector), and bytes 8 to 11? Parameter area Diagnosis area YES Figure 5-1 Flowchart of channel-related diagnostics - Flowchart of chan- nel-related diag- nostics Operation www.dienhathe.vn www.dienhathe.com
  • 46. 5-10 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 Operation www.dienhathe.vn www.dienhathe.com
  • 47. A-1 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 Appendix A www.dienhathe.vn www.dienhathe.com
  • 48. A-2 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 A.1 Technical Specifications Housing Dimensions (in mm) 80 x 125 x 120 Weight 500 g Protection class IP20 Position Sensors Number Max. of 4 Number of measuring points Max. of 8, max. of 4 per sensor Measuring range 3/6 m Resolution 0.05/0.1 mm Programmable measuring cycles 0.5 to 16 msec Supply voltage for sensors With potential isolation S Voltage Total current S Voltage Total current Total power to supply sen- sors +15 V 200 mA 24 V 300 mA Max. of 7.2 W Interface RS 422 with START/ STOP interface Front connector 25-way, sub D socket Line length Max. of 50 m Supply Voltage for the Module Internal Current consumption From S7-300 bus 80 mA (typical) 100 mA (maximum) External Permissible voltage range Current consumption Without sensors With sensors Fuse Pole reversal protec- tion 24 V 20.4 to 28.8 V Max. of 0.1 A Max. of 0.85 A Fine-wire fuse, 1.0 A, delayed Yes Environmental Requirements Environmental tempera- ture Horizontal installation Vertical installation 0° to 60° C 0° to 40° C Relative humidity 5 to 95% (without condensation) Air pressure 860 to 1080 hPa Pollution concentration SO2 H2S Max. of 10 ppm Max. of 1 ppm Vibration 10 to 57 Hz 57 to 150 Hz 0.075 mm amplitude 1 g const. acceleration Transportation and Storage Requirements* Free fall (in acc. with IEC 1131-2) < 1 m Temperature (in acc. with IEC 1131-2) -40° C to +70° C Air pressure > 700 hPa (corresponds to a height of 3000 m) Relative humidity 5 to 95% (without con- densation) Appendix * In original packaging www.dienhathe.vn www.dienhathe.com
  • 49. A-3 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 Electromagnetic Compatibility Electrostatic discharge In acc. with DIN VDE 0843, part 2 (IEC 801-2) 8 kV discharge via air 6 kV discharge via contact (Degree 3) High-energy, single pulse In acc. with DIN VDE 0839, part 10 (IEC 801-5) Additional measures re- quired Ex: Lighting cond. KT Type AD24V SIMATIC Order no. 919253 Mfg: Dehn und Söhne Burst pulse In acc. with DIN VDE 0843, part 4 (IEC 801-4) S 2 kV (supply line) 1 kV (signal line) (Degree 3) S 2 kV (supply line) 2 kV (signal line) for Generic Standard Interference suppression In acc. With EN 55011; DIN VDE 0871, part 1 Limit value class A, group 1 Appendix www.dienhathe.vn www.dienhathe.com
  • 50. A-4 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 A.2 Plug Connector Allocation Plug connector X1 Sub D plug connector, 25-way socket Pin Function 1 -15 V voltage supply (with fuse/floating) 2 Reference potential, voltage supply 3 +15 V voltage supply (with fuse/floating) 4 - 5 Sensor 1: STOP input (RS 422) 6 Sensor 1: START output (RS 422) 7 - 8 Sensor 3: STOP input (RS 422) 9 Sensor 3: START output (RS 422) 10 - 11 - 12 Reference potential, voltage supply 13 +24 V auxiliary voltage (with fuse/floating) 14 -15 V voltage supply (with fuse/floating) 15 Reference potential, voltage supply 16 +15 V voltage supply (with fuse/floating) 17 - 18 Sensor 1: STOP input (RS 422) 19 Sensor 1: START output (RS 422) 20 - 21 Sensor 3: STOP input (RS 422) 22 Sensor 3: START output (RS 422) 23 - 24 Reference potential, voltage supply 25 +24 V auxiliary voltage (with fuse/floating) Connection sensors 1 and 3 25 13 14 1 Appendix www.dienhathe.vn www.dienhathe.com
  • 51. A-5 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 Plug connector X2 Sub D plug connector, 25-way socket Pin Function 1 -15 V voltage supply (with fuse/floating) 2 Reference potential, voltage supply 3 +15 V voltage supply (with fuse/floating) 4 - 5 Sensor 2: STOP input (RS 422) 6 Sensor 2: START output (RS 422) 7 - 8 Sensor 4: STOP input (RS 422) 9 Sensor 4: START output (RS 422) 10 - 11 - 12 Reference potential, voltage supply 13 +24 V auxiliary voltage (with fuse/floating) 14 -15 V voltage supply (with fuse/floating) 15 Reference potential, voltage supply 16 +15 V voltage supply (with fuse/floating) 17 - 18 Sensor 2: STOP input (RS 422) 19 Sensor 2: START output (RS 422) 20 - 21 Sensor 4: STOP input (RS 422) 22 Sensor 4: START output (RS 422) 23 - 24 Reference potential, voltage supply 25 +24 V auxiliary voltage (with fuse/floating) Quadruple screw terminal Pin Function 1 P24 (input voltage = jumpered with pin 3) 2 M24 (external ground = jumpered with pin 4) 3 P24 (input voltage = jumpered with pin 1) 4 M24 (external ground = jumpered with pin 2) Connection sensors 2 and 4 25 13 14 1 External supply voltage 1 4 Appendix www.dienhathe.vn www.dienhathe.com
  • 52. A-6 SM 338 Equipment Manual (4) J31069-D401-U1-A0-7618 A.3 Recommended Accessories Designation Order Number Sub D, pin connector, 25-way V42254-A1115-C325 Plug connector hood V42254-A6000-G325 black V42254-A6000-G125 pebble gray Cable sleeve (8 mm) V42254-A6209-L100 black V42254-A6209-L1 pebble gray Contact cover V42254-A6108-L1 Knurled screw V42254-A112-V109 black (10 each) V42254-A112-V009 kieselgrau (10 each) See data book on plug connectors from Siemens (order no. A23001-G21-D005) for minimum ordering quantities and packaging units. Designation Order No. Sensor line 6AP5 400-2AA01 Designation Order No. Shield rail Shield terminals Small (recommended) Medium Large 6ES7 390-5AA00-0AA0 6ES7 390-5AB00-0AA0 6ES7 390-5BA00-0AA0 6ES7 390-5CA00-0AA0 If required for protection against high-energy, single pulses Lightning conductor KT type AD24V SIMATIC Order no: 919 253, mfg: Dehn und Söhne - Plug Connector Lines Shielding Appendix www.dienhathe.vn www.dienhathe.com