indicates that death or severe personal injury will result if proper precautions are not taken.
WARNING
indicates that death or severe personal injury may result if proper precautions are not taken.
CAUTION
indicates that minor personal injury can result if proper precautions are not taken.
NOTICE
indicates that property damage can result if proper precautions are not taken.
Qualified Personnel
personnel qualified
Proper use of Siemens products
WARNING
Siemens products may only be used for the applications described in the catalog and in the relevant technical
are required to ensure that the products operate safely and without any problems. The permissible
ambient conditions must be complied with. The information in the relevant documentation must be observed.
Trademarks
Disclaimer of Liability
This manual contains notices you have to observe in order to ensure your personal safety, as well as to prevent
damage to property. The notices referring to your personal safety are highlighted in the manual by a safety alert
symbol, notices referring only to property damage have no safety alert symbol. These notices shown below are
graded according to the degree of danger.
If more than one degree of danger is present, the warning notice representing the highest degree of danger will
be used. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to
property damage.
The product/system described in this documentation may be operated only by
task in accordance with the relevant documentation, in particular its warning notices and safety instructions.
Qualified personnel are those who, based on their training and experience, are capable of identifying risks and
avoiding potential hazards when working with these products/systems.
Note the following:
documentation. If products and components from other manufacturers are used, these must be recommended
or approved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation and
maintenance
All names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publication
may be trademarks whose use by third parties for their own purposes could violate the rights of the owner.
We have reviewed the contents of this publication to ensure consistency with the hardware and software
described. Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the
information in this publication is reviewed regularly and any necessary corrections are included in subsequent
editions.
for the specific
11/2014 Subject to change
Page 3
Preface
Purpose of the documentation
Conventions
Note
A notice contains important information on the product described in the documentation,
handling the product or about parts of the documentation you should pay particular attention
to.
Names
License conditions
Note
Open source software
Read the license conditions for open source
This device manual supplements the system manual of the automation system S7-1500 and
the function manuals. All functions that go beyond the system are described in the system
manual.
With the information in this manual and the system manual, you will be able to commission
the CM 1542-5 communications module.
See also Guide to the documentation (Page 7)
Make sure you read the special notices below:
● In this document, the term "CM" is also used instead of the full product name.
● The name STEP 7 is used to mean the STEP 7 Professional configuration tool.
You will find license conditions in the following documents on the supplied data medium:
● DOC_OSS-S7CMCP_74.pdf
software carefully before using the product.
● DOC_OSS-CM1542-5_76.pdf
CM 1542-5
Manual, 11/2014, C79000-G8976-C290-02
3
Page 4
Preface
Security information
Trademarks
SIMATIC NET glossary
Siemens provides products and solutions with industrial security functions that support the
secure operation of plants, solutions, machines, equipment and/or networks. They are
important components in a holistic industrial security concept. With this in mind, Siemens’
products and solutions undergo continuous development. Siemens recommends strongly
that you regularly check for product updates.
For the secure operation of Siemens products and solutions, it is necessary to take suitable
preventive action (e.g. cell protection concept) and integrate each component into a holistic,
state-of-the-art industrial security concept. Third-party products that may be in use should
also be considered. For more information about industrial security, visit
http://www.siemens.com/industrialsecurity.
To stay informed about product updates as they occur, sign up for a product-specific
newsletter. For more information, visit http://support.automation.siemens.com.
The following and possibly other names not identified by the registered trademark sign ® are
registered trademarks of Siemens AG:
SIMATIC NET, CM 1542-5
Explanations of many of the specialist terms used in this documentation can be found in the
SIMATIC NET glossary.
6.4 Standard diagnostics .............................................................................................................. 27
6.5 Device-specific diagnostics in DP-V1 ..................................................................................... 29
6.6 DP diagnostics frames when the CPU is in STOP ................................................................. 32
CM 1542-5
Manual, 11/2014, C79000-G8976-C290-02
5
Page 6
Table of contents
CM 1542-5
6Manual, 11/2014, C79000-G8976-C290-02
Page 7
1
Introduction
Overview of the documentation on communication with S7-1500
Topic
Documentation
Most important contents
ew/en/57251228)
ew/en/59192925)
The documentation of the SIMATIC products has a modular structure and covers topics
relating to your automation system.
The complete documentation for the S7-1500 system consists of a system manual, function
manuals and device manuals.
The STEP 7 information system (online help) also supports you in configuring and
programming your automation system.
The following table lists additional documents, which supplement this description of
CM 1542-5 and are available in the Internet.
Table 1- 1 Documentation for the CM 1542-5
System description
Module properties Device manual: Power supplies
System diagnostics
Communication Function manual: Communication
System manual: S7-1500 Automation System
(http://support.automation.siemens.com/WW/vi
ew/en/59191792)
(http://support.automation.siemens.com/WW/vi
Device manual: Signal modules
(http://support.automation.siemens.com/WW/vi
ew/en/59174020)
Function manual: System diagnostics
(http://support.automation.siemens.com/WW/vi
ew/en/59192926)
(http://support.automation.siemens.com/WW/vi
• Application planning
• Installation
• Connecting
• Commissioning
• Connecting
• Parameter assignment/
addressing
• Interrupts, error messages,
diagnostics and system
alarms
• Technical specifications
• Dimensional drawing
• Overview
• Diagnostics evaluation for
hardware/software
• Overview
CM 1542-5
Manual, 11/2014, C79000-G8976-C290-02
Function manual: PROFINET with STEP 7 V12
(http://support.automation.siemens.com/WW/vi
ew/en/49948856)
• PROFINET basics
• PROFINET functions
• PROFINET diagnostics
7
Page 8
Guide to the documentation
Topic
Documentation
Most important contents
ew/en/59193566)
ew/en/59193559)
SIMATIC manuals
CP/CM documentation in the Manual Collection (article number A5E00069051)
Version History / Current Downloads for the SIMATIC NET S7 CPs/CMs
Function manual: PROFIBUS with STEP 7 V12
(http://support.automation.siemens.com/WW/vi
ew/en/59193579)
Function manual: Web Server
(http://support.automation.siemens.com/WW/vi
ew/en/59193560)
Interference-free
installation of
control systems
Memory concept Function manual: Structure and Use of the
Cycle and response times
Analog value
processing
Function Manual: Interference-free installation
of control systems
(http://support.automation.siemens.com/WW/vi
ew/en/59193566)
CPU Memory
(http://support.automation.siemens.com/WW/vi
ew/en/59193101)
Function manual: Cycle and Response Times
(http://support.automation.siemens.com/WW/vi
Function manual: Analog value processing
(http://support.automation.siemens.com/WW/vi
• PROFIBUS basics
• PROFIBUS functions
• PROFIBUS diagnostics
• Function
• Operation
• Basics
• Electromagnetic compatibil-
ity
• Lightning protection
• Housing selection
• Design
• Principle of operation
• Use
• Basics
• Calculations
• Wiring options
• Tables of measured values
All current manuals for SIMATIC products are available for download free of charge from the
Internet (http://www.siemens.com/automation/service&support).
The "SIMATIC NET Manual Collection" DVD contains the device manuals and descriptions
of all SIMATIC NET products current at the time it was created. It is updated at regular
intervals.
The "Version History/Current Downloads for SIMATIC NET S7 CPs (PROFIBUS)" provides
information on all CPs available up to now for SIMATIC S7 (PROFIBUS).
An up-to-date version of this document can be found on the Internet
(http://support.automation.siemens.com/WW/view/en/9836605)
CM 1542-5
8Manual, 11/2014, C79000-G8976-C290-02
Page 9
2
2.1
Properties
Article number, validity and product names
View of the module
①
LEDs
②
Type plate
③
PROFIBUS interface: 1 x 9-pin D-sub female connector (RS-485)
This description contains information on the following product:
CM 1542-5
Article number 6GK7 542-5DX00-0XE0
Hardware product version 1
Firmware version V1.0
Communications module CM 1542-5 for SIMATIC S7-1500 on PROFIBUS DP.
Figure 2-1 View of the CM 1542-5 with closed (left) and open (right) front cover
CM 1542-5
Manual, 11/2014, C79000-G8976-C290-02
9
Page 10
Product overview
Application
Supported communications services
PROFIBUS DP master (class 1)
PROFIBUS DP slave
Note
DP master or DP slave
Please note, however: The CM 1542
DP slave.
S7 communication
Data record routing / field device parameter assignment
2.1 Properties
The communications module CM 1542-5 is intended for operation in an S7-1500 automation
system. The CM 1542-5 allows the connection of an S7-1500 station to a PROFIBUS
fieldbus system.
In its current configuration, the CM 1542-5 communications module supports the following
communications services:
●
– PROFIBUS DP according to EN 50170 DPV1, DP master
– DP master mode for DP slaves complying with the PROFIBUS DPV0 and DPV1
standard
– DP master mode for Siemens DP slaves
– Direct data exchange (DP slave to DP slave)
As a DP master, the CM 1542-5 is capable of enabling direct data exchange for "its"
DP slaves.
– SYNC / FREEZE
The outputs or inputs can be synchronized by the user program using system function
DPSYNC_FR.
●
PROFIBUS DP according to EN 50170 DPV1, DP slave
-5 only supports operation either as DP master or
●
– PG communication for uploading / downloading of S7 configuration, diagnostics and
routing
– Operator control and monitoring functions (HMI communication)
– Data exchange over S7 connections
●
You can use the CM as a router for data records intended for field devices (DP slaves).
Data records from devices that are not connected directly to PROFIBUS and therefore
have no direct access to the DP slaves are forwarded to the DP slaves by the CM.
The services of the CM 1542-5 listed above can be used independently at the same time.
CM 1542-5
10Manual, 11/2014, C79000-G8976-C290-02
Page 11
Product overview
2.2
Further functions
Enabling /disabling DP slave - in the standard system
Diagnostics requests
Getting the bus topology in a DP master system
Time-of-day synchronization - time master or time slave
Note
Recommendation for setting the time
It is advisable to set the time
day frames are sent at intervals of
approximately 10 seconds. This achieves as small a
internal time and the absolute time.
Web diagnostics
2.2 Further functions
DP slaves can be activated and deactivated by the user program using system function
D_ACT_DP.
As a DP master (class 1), the CM 1542-5 supports diagnostics requests of a DP master
(class 2).
The CM 1542-5 operating as DP master supports the measurement of the PROFIBUS bus
topology in a DP master system using a diagnostics repeater (DP slave).
System function DP_TOPOL in the user program can instruct diagnostics repeaters to
measure the PROFIBUS BUS topology in a DP master system.
The CM 1542-5 can be enabled for time-of-day synchronization. As an alternative, the CM
can be configured as time master or time slave on PROFIBUS.
● Time master: The CM is synchronized using the time of day in the S7-1500 station and
outputs the time of day on PROFIBUS. The output interval can be set.
● Time slave: The CM receives time-of-day frames on PROFIBUS and outputs the time
within the S7-1500 station. The output interval within the S7-1500 station is set
permanently to 10 seconds.
-of-day master so that time-of-
With the aid of Web diagnostics of the CPU, you read the diagnostics data from an S7
station via the Web browser on the PG/PC.
deviation as possible between the
In terms of the CM, the Web pages provide the following information:
● Module and status information
● Special information on the DP master system (status of the DP slaves)
CM 1542-5
Manual, 11/2014, C79000-G8976-C290-02
11
Page 12
Product overview
2.2 Further functions
CM 1542-5
12Manual, 11/2014, C79000-G8976-C290-02
Page 13
3
Note
Measured values of transfer or reaction times
Measurements of transfer and reaction times in Ethernet, PROFIBUS and PROFINET
networks for a series of configurations can be
(
3.1
Transmission speeds supported
Note
Remember the cable length
The permitted cable length must be kept to depending on the transmission speed.
The transmission speed is set with the SIMATIC STEP 7 configuration software.
Refer to the information in the section Technical specifications (Page 33)
No special program blocks are required for DP mode. The interfacing to the distributed I/O is
by direct I/O access or using program blocks (SFCs/SFBs) of the CPU.
Table 3- 1 General characteristic data of DP mode
CM 1542-5
Manual, 11/2014, C79000-G8976-C290-02
13
Page 14
Functional characteristics
Diagnostics requests
DP startup behavior
Note
Increasing the default value for startup parameters - configuration of the CPU
In some situations, it is necessary to increase the default value for the startup parameter
"Parameter assignment time for the distributed I/O" in the configuration of the CPU:
•
•
3.3
Characteristics of S7 communication
General characteristic data
Characteristic
Explanation / values
The value depends on the S71500 CPU being used.
Note
PG or HMI functions or data record routing
If PG or HMI functions or data record routing are used, a suitable number of S7 connections
must be reserved during configuration!
Help provided by STEP 7
3.3 Characteristics of S7 communication
As a DP master (class 1), the CM 1542-5 supports diagnostics requests of a DP master
(class 2).
When there is a large number of modules (DP slaves) configured that can be assigned
parameters.
When a high value is configured for the constant bus cycle time in the network properties
of the PROFIBUS DP line.
The following information is important when operating S7 connections:
Table 3- 2 General characteristics of S7 connections
Number of S7 connections via
PROFIBUS
Operable in total: Max. 48
Configurable: Max. 40
The number of connections on PROFIBUS shown in the table above can vary due to other
CM 1542-5
14Manual, 11/2014, C79000-G8976-C290-02
influencing factors. The STEP 7 configuration tool displays warnings and help messages as
soon as limit values are exceeded.
Page 15
4
4.1
Configuration limits
4.2
Project engineering
Configuration and downloading the configuration data
When using the CM type described here, the following limits apply:
● The number of CMs that can be operated in a rack depends on the CPU type being used.
Note the information in the documentation of the CPU, see Guide to the documentation
(Page 7)
When the configuration data is downloaded to the CPU, the CM 1542-5 is supplied with the
relevant information. The configuration data can be downloaded to the CPU via PROFIBUS
or any PROFINET interface of the S7-1500 station.
The following version of STEP 7 is required:
STEP 7 Professional V12 The full functionality of the CM 1542-5 (6GK7
542 5DX00 0XE0) can be configured
For communications services, there are preprogrammed program blocks (instructions)
available as the interface in your STEP 7 user program.
Table 4- 1 Instructions for PROFIBUS DP
DPNRM_DG Reading the diagnostics data of a DP slave
CM 1542-5
Manual, 11/2014, C79000-G8976-C290-02
15
Page 16
Requirements for use
System blocks and system functions
Meaning when used with CM
SETIO
Transferring the process image of a DP standard slave
GETIO_PART
Reading the process image partition of a DP standard slave
SETIO_PART
Transferring the process image partition of a standard DP slave
DPRD_DAT
Reading consistent data of a DP standard slave
DPWR_DAT
Writing consistent data of a DP standard slave
specific interrupt)
Calling program blocks (instructions) for distributed I/O
See also
4.3 Programming
D_ACT_DP Disable / enable DP slaves
RALRM Event-driven reading of interrupt information (diagnostics, pull/plug,
hardware interrupt) and DPV1-specific interrupts (update, status, vendor-
Refer to the documentation of the program blocks in the online help of STEP 7
Several calls are necessary for the instructions of the distributed I/O.
The time required to process the job depends on load, round-trip time and transmission
speed. If these instructions are called in a loop within one cycle, the cycle time could be
exceeded.
Exceptions:
● Only one call is required for the RALRM instruction "receive alarm".
Program blocks for DPV1 (according to the PNO standard)
1)
:
● Instruction RDREC "Read data record from a DP slave" corresponds to SFC59 in terms
of function
● Instruction WRREC "Write data record to a DP slave" corresponds to SFC58 in terms of
function
● Instruction RALRM "Read interrupt information from a DP slave" - call in an interrupt OB
There is an additional requirement if devices are operated with a redundant power supply:
General notices on use in hazardous areas
WARNING
Risk of explosion when connecting or disconnecting the device
The following safety notices must be adhered to when setting up and operating the device
and during all associated work such as installation, connecting up, replacing devices or
opening the device.
The equipment is designed for operation with Safety Extra-Low Voltage (SELV) by a
Limited Power Source (LPS). (This does not apply to 100 V...240 V devices.)
This means that only SELV / LPS complying with IEC 60950-1 / EN 60950-1 / VDE 0805-1
must be connected to the power supply terminals. The power supply unit for the equipment
power supply must comply with NEC Class 2, as described by the National Electrical Code
(r) (ANSI / NFPA 70).
If the equipment is connected to a redundant power supply (two separate power supplies),
both must meet these requirements.
EXPLOSION HAZARD
DO NOT CONNECT OR DISCONNECT EQUIPMENT WHEN A FLAMMABLE OR
COMBUSTIBLE ATMOSPHERE IS PRESENT.
CM 1542-5
Manual, 11/2014, C79000-G8976-C290-02
17
Page 18
Connecting up / commissioning
WARNING
Replacing components
WARNING
Requirements for the cabinet/enclosure
WARNING
Restricted area of application
WARNING
Restricted area of application
WARNING
LAN attachment
General notices on use in hazardous areas according to ATEX
WARNING
Requirements for the cabinet/enclosure
5.1 Important notes on using the device
EXPLOSION HAZARD
SUBSTITUTION OF COMPONENTS MAY IMPAIR SUITABILITY FOR CLASS I, DIVISION
2 OR ZONE 2.
When used in hazardous environments corresponding to Class I, Division 2 or Class I,
Zone 2, the device must be installed in a cabinet or a suitable enclosure.
This equipment is suitable for use in Class I, Division 2, Groups A, B, C and D or nonhazardous locations only.
This equipment is suitable for use in Class I, Zone 2, Group IIC or non-hazardous locations
only.
A LAN or LAN segment with the attachments belonging to it should be within a single lowvoltage supply system and within a single building. Make sure that the LAN is in an of type
A environment according to IEEE 802.3 or in a type 0 environment according to IEC TR
62101.
Never establish a direct electrical connection to TNV networks (telephone network) or
WANs (Wide Area Network).
To comply with EU Directive 94/9 (ATEX95), this enclosure must meet the requirements of
at least IP54 in compliance with EN 60529.
CM 1542-5
18Manual, 11/2014, C79000-G8976-C290-02
Page 19
Connecting up / commissioning
WARNING
Suitable cables for temperatures in excess of 70 °C
WARNING
Protection against transient voltage surges
5.2
Installing and commissioning the CM 1542-5
WARNING
Read the system manual "S7-1500 Automation System"
Configuration
5.2 Installing and commissioning the CM 1542-5
If the cable or conduit entry point exceeds 70°C or the branching point of conductors
exceeds 80°C, special precautions must be taken. If the device is operated at ambient
temperatures above 50°C, the permitted temperature range of the selected cable must be
suitable for the temperatures actually measured.
Provisions shall be made to prevent the rated voltage from being exceeded by transient
voltage surges of more than 40%. This criterion is fulfilled, if supplies are derived from
SELV (Safety Extra-Low Voltage) only.
Prior to installation, connecting up and commissioning, read the relevant sections in the
system manual "S7-1500 Automation System" (references to documentation, refer to the
section Guide to the documentation (Page 7)).
Make sure that the power supply is turned off when installing/uninstalling the devices.
One requirement for the commissioning of the CP is the completeness of the STEP 7 project
data.
CM 1542-5
Manual, 11/2014, C79000-G8976-C290-02
19
Page 20
Connecting up / commissioning
Procedure for installation and commissioning
Step
Execution
Notes and explanations
1
tem".
3 Connect the CM to PROFIBUS via the
RS-485 socket.
4
Turn on the power supply.
5
tion.
6
You will find more detailed information on loading in
5.2 Installing and commissioning the CM 1542-5
When installing and connecting up,
keep to the procedures described for
installing I/O modules in the system
manual "S7-1500 Automation Sys-
Close the front covers of the module
and keep them closed during opera-
The remaining steps in commission-
ing involve downloading the STEP 7
project data.
Lower surface of the CM
The STEP 7 project data of the CM is transferred
when you download to the station. To load the
station, connect the engineering station on which
the project data is located to the Ethernet/MPI interface of the CPU.
the following sections of the STEP 7 online help:
• Downloading project data
• Using online and diagnostics functions
CM 1542-5
20Manual, 11/2014, C79000-G8976-C290-02
Page 21
Connecting up / commissioning
PROFIBUS interface
View
Signal name
Designation
1 - -
2 - -
3
RxD/TxD-P
Data line B
5
M5V2
Data reference potential (from station)
7 - - 8 RxD/TxD-N
Data line A
9 - -
Note
PROFIBUS interface
The CM provides no 24
example, PC adapter 6ES7972
5.3
Replacing a module without a programming device
General procedure
5.3 Replacing a module without a programming device
The table below shows the terminal assignment of the PROFIBUS interface. The assignment
corresponds to the standard assignment of RS485 interface.
Table 5- 1 Terminal assignment PROFIBUS interface
4 RTS Request To Send
6 P5V2 Supply plus (from station)
The configuration data of the CM is stored on the CPU. This means that this module can be
replaced by a module of the same type (identical article number) without using a PG.
VDC power supply on the PROFIBUS interface. I/O devices (for
-0CB20-0XA0) are therefore not operational on the interface).
CM 1542-5
Manual, 11/2014, C79000-G8976-C290-02
21
Page 22
Connecting up / commissioning
5.4
Mode of the CPU - effect on the CM
Changing the CPU from STOP to RUN:
Changing the CPU from RUN to STOP:
5.4 Mode of the CPU - effect on the CM
You can change the mode of the CPU between RUN and STOP using the STEP 7
configuration software.
Depending on the operating status of the CPU, the CM behaves as described below.
The CM loads configured and/or downloaded data into the work memory and then changes
to RUN mode.
The reaction is as follows in STOP:
● DP master mode: Change to the CLEAR mode.
● DP slave mode: Input data is sent to the DP master with the value "0" and a DP
diagnostics alarm is sent.
● The following functions remain enabled:
– The configuration and diagnostics of the CM (system connections for configuration,
diagnostics, and PG channel routing are retained);
– S7 routing function
– Time-of-day synchronization
CM 1542-5
22Manual, 11/2014, C79000-G8976-C290-02
Page 23
system alarms
6
6.1
Status and error display of the CM
LED display
①
RUN/STOP LED
②
ERROR LED
③
MAINT LED
The status and error displays of the CM 1542-5 are described below.
You can find additional information on "Interrupts" in the STEP 7 online help.
You can find additional information on "Diagnostics" and "System alarms" in the System
diagnostics (http://support.automation.siemens.com/WW/view/en/59192926) function
manual.
The following figure shows the LEDs of the CM 1542-5.
CM 1542-5
Manual, 11/2014, C79000-G8976-C290-02
Figure 6-1 LED display of the CM 1542-5 (without front cover)
23
Page 24
Interrupts, diagnostics messages, error and system alarms
Meaning of the LED displays
•
(one
•
(one
•
(one
RUN/STOP LED
ERROR LED
MAINT LED
Meaning
LED off
LED off
LED off
LED lit green
LED lit red
LED off
No disruptions
No CM configuration exists
LED flashing red
LED lit green
LED off
LED lit yellow
yellow
Maintenance is required.
green
yellow
Diagnostics with LEDs
6.1 Status and error display of the CM
The CM 1542-5 has 3 LEDs to display the current operating status and the diagnostics
status and these have the following meanings:
RUN/STOP LED
-color LED: green)
ERROR LED
MAINT LED
-color LED: red)
-color LED: yellow)
The following table shows the meaning of the various combinations of colors of the
RUN/STOP, ERROR and MAINT LEDs.
Table 6- 1 Meaning of the LEDs
LED lit green
LED lit green
LED flashing
green
LED lit green
LED lit red
LED off
LED off
LED lit yellow
LED off
LED off
LED off
No supply voltage on the CM or supply
voltage too low.
LED test during startup
Startup (booting the CM)
CM is in RUN mode.
Loading firmware
A diagnostics event has occurred.
Maintenance, maintenance is demanded.
CM 1542-5
24Manual, 11/2014, C79000-G8976-C290-02
LED lit green
LED flashing
LED flashing red LED flashing
LED off
LED flashing
Downloading the user program
Module fault
Diagnostics using the LEDs is the first means of narrowing down errors/faults. To narrow the
error/fault down even further, evaluate the message on the display of the S7-1500 CPU. If
errors/faults occur, you can also identify them using the Web server or by evaluating the
diagnostics buffer of the CPU. The diagnostics buffer of the CPU contains plain language
information about the error/fault that has occurred. The diagnostics buffer is accessible via
STEP 7, the display and the Web server.
Page 25
Interrupts, diagnostics messages, error and system alarms
6.2
Diagnostics options
Diagnostics options
6.3
DP slave diagnostics
DP-V1 slave: Diagnostics interrupt
Supported diagnostics functions
6.2 Diagnostics options
You have the following diagnostics options available for the module:
● The LEDs of the module
For information on the LED displays, refer to the section Status and error display of the
CM (Page 23).
● STEP 7: The "Diagnostics" tab in the Inspector window
Here, you can obtain the following information on the selected module:
– Entries in the diagnostics buffer of the CPU
– Information on the online status of the module
● STEP 7: Diagnostics functions in the "Online > Online and diagnostics" menu
Here, you can obtain static information on the selected module:
– General information on the module
– Diagnostics status
– Information on the PROFIBUS interface
You can obtain further information on the diagnostics functions of STEP 7 in the STEP 7
online help.
● DP diagnostics
The DP diagnostics of the CM is described below.
The evaluation of diagnostics data records requested by the DP master and the
diagnostics interrupts or diagnostics alarms of the DP slaves is handled in the user
program of the DP master station.
The diagnostics data is transferred as a diagnostics interrupt. Diagnostics interrupts must be
acknowledged by the DP master.
The CM 1542-5 supports the following blocks of DP diagnostics:
● Standard diagnostics (6 bytes)
● Identifier-related diagnostics (2 to 17 bytes), depending on the number of configured
transfer areas
● Module status (5 to 35 bytes), depending on the number of configured transfer areas
● If it exists: Diagnostics interrupt (8 bytes)
CM 1542-5
Manual, 11/2014, C79000-G8976-C290-02
25
Page 26
Interrupts, diagnostics messages, error and system alarms
User program (DP master)
Overview of standard diagnostics
Standard diagnostics
Byte
Meaning
0
Station status 1
1
Station status 2
3
Master address
Overview of device-specific diagnostics
DP-V1 slave
Device-specific diagnostics
Byte
Meaning
0
Header
Interrupt type
Status type
2
Slot number
Interrupt specifier
Status specifier
4...62
Module-specific diagnostics data
6.3 DP slave diagnostics
To read out the diagnostics data of the DP slave (DP single diagnostics), use the
"DPNRM_DG" instruction on the DP master.
Diagnostics interrupts of DP-V1 slaves are evaluated in the user program of the master
using the "RALRM" instruction.
You will find the required parameter assignment for the instructions in the STEP 7 online
help.
Below, there is an overview of the structure of the diagnostics data.
2 Station status 3
4...5 Vendor ID of the slave
The device-specific diagnostics data depends on the protocol variant operating on the DP
slave:
●
Table 6- 2 Overview of device-specific diagnostics of the CM with DP-V1 slaves
1 Variant
3 Variant
Variant
Variant
CM 1542-5
26Manual, 11/2014, C79000-G8976-C290-02
Page 27
Interrupts, diagnostics messages, error and system alarms
6.4
Standard diagnostics
Byte 0: Station status 1
Bit no.
Name
Explanation
address.
Solution: Check the parameter settings for illegal parameters.
from the DP slave.
This bit is set by the DP master when the master has requested a function that is
Solution: Change the parameter setting to disable the function on the master.
This is a temporary status that cannot be influenced by the DP master.
initial value.
6.4 Standard diagnostics
The coding of the standard diagnostics bytes is explained below.
Table 6- 3 Structure of station status byte 1
7 Master_Lock The DP slave was assigned parameters by a different DP master. The DP slave
can only be read by the configured productive DP master.
This bit is set by the DP master when its bus address differs from the configured
6 Parameter_Fault The last received parameter assignment frame was bad or not permitted. The
DP slave sets this bit.
5 Invalid_Slave_Response This bit is set by the DP master when no plausible response has been received
4 Service_Not_Supported
not supported by the DP slave.
3 Ext_Diag This bit is set by the slave.
• Bit =1: There is diagnostics data in the slave-specific diagnostics area. The
diagnostics data can be evaluated in the user program of the master.
• Bit =0: There may be status information in the slave-specific diagnostics
area. The status information can be evaluated in the user program of the
master.
2 Slave_Config_Check_Fault The configuration data sent by the DP master is rejected by the DP slave.
1 Station_Not_Ready The DP slave is not ready for productive data exchange.
0 Station_Non_Existent The DP slave is not reacting on the bus.
This bit is set by the DP master 1 (the slave sets this bit permanently to 0). If the
bit is set, the diagnostic bits have the state of the last diagnostics alarm or the
CM 1542-5
Manual, 11/2014, C79000-G8976-C290-02
27
Page 28
Interrupts, diagnostics messages, error and system alarms
Byte 1: Station status 2
Bit no.
Name
Explanation
and it is not polled cyclically.
5
Sync_Mode
The DP slave is in SYNC mode. The bit is set by the slave.
4
Freeze_Mode
The DP slave is in FREEZE mode. The bit is set by the slave.
3
Watchdog_On
Watchdog monitoring is active on the DP slave. The bit is set by the slave.
manently to 1 by the slave.
The DP slave sets this bit, for example when it is not capable of data transfer.
If bit 0 and bit 1 are both set, bit 0 has the higher priority.
Byte 2: Station status 3
Bit no.
Name
Explanation
the diagnostics data. This data cannot be displayed.
6...0
Reserved
- reserved -
Byte 3: Master address
Bytes 4 and 5: Vendor ID of the slave ("Ident_Number")
6.4 Standard diagnostics
Table 6- 4 Structure of station status byte 2
7 Deactivated The DP slave was identified as being not active in the local parameter record
6 Reserved - reserved -
2 Status_From_Slave Bit =1: The diagnostics information comes from the DP slave. The bit is set per-
1 Static_Diag Static diagnostics
If the DP slave sets this bit, the DP master must fetch diagnostics data from the
DP slave until the DP slave resets the bit.
0 Parameter_Request The DP slave sets this bit when it needs to have new parameters assigned and
be reconfigured.
Table 6- 5 Structure of station status byte 3
7 Ext_Data_Overflow If this bit is set, there is more diagnostics information available than indicated in
The address of the DP master that assigned parameters to this DP slave is entered in the
"Master_Add" byte.
If the DP slave did not have parameters assigned to it by any DP master, the DP slave sets
the address 255 in this byte.
The vendor ID ("Ident_Number") for the DP slave type is entered in bytes 4 and 5. This
identifier can be used to identify the slave.
The more significant part of the value is in byte 5.
CM 1542-5
28Manual, 11/2014, C79000-G8976-C290-02
Page 29
Interrupts, diagnostics messages, error and system alarms
6.5
Device-specific diagnostics in DP-V1
Byte 0: Header
Byte 1: Variant "Interrupt type"
Bit no.
Meaning
Value
Meaning
0
Interrupt
Alarm_Type
1
Diagnostics interrupt
3
Pull interrupt
4
Plug interrupt
5
Status interrupt
6
Update interrupt
7...31
- reserved -
32...126
Vendor-specific
127
- reserved -
6.5 Device-specific diagnostics in DP-V1
There are two variants of device-specific diagnostics with DP-V1 slaves:
● Interrupt type
● Status type
The two variants differ from each other in the coding of byte 1, bit 7 of the device-specific
diagnostics data. The difference is component-specific.
The two most significant bits have the value 00. This identifies the "module-specific
diagnostics data" field (see bytes 4... 62) as a whole.
The remaining six bits indicate the length of the data field including byte 0.
Table 6- 6 Structure of byte 1 of the device-specific diagnostics (variant "interrupt type")
7
6...0
0 - reserved -
2 Hardware interrupt
If status interrupts are received in quick succession, older status interrupts may be
overwritten by newer interrupts.
CM 1542-5
Manual, 11/2014, C79000-G8976-C290-02
29
Page 30
Interrupts, diagnostics messages, error and system alarms
Byte 1: Variant "Status type"
Bit no.
Meaning
Value
Meaning
1
Status information
Status_Type
1
Status information
2
Modul_Status (see also bytes 4...62)
3...31
- reserved -
32...126
Vendor-specific
127
- reserved -
Byte 2: Slot number
Byte 3: Variant "Interrupt specifier"
Bit no.
Meaning
7...3
Seq_No
Unique identifier of an interrupt alarm
expects an acknowledgement in the form of a WRITE job.
Alarm_Specifier
0
No further distinction
The slot generates an interrupt due to an error.
errors.
errors.
6.5 Device-specific diagnostics in DP-V1
Table 6- 7 Structure of byte 1 of the device-specific diagnostics (variant "status type")
7
6...0
0 - reserved -
Slot number (1...n) of the slave module
0 is the placeholder for the entire device.
Table 6- 8 Structure of byte 3 of the device-specific diagnostics (variant "interrupt specifier")
2 Add_Ack If this bit is set, the DP-V1 master is indicating that this interrupt
1...0
1 Interrupt appears, slot disrupted
2 Interrupt disappears, slot OK
3 Interrupt disappears, slot still disrupted
The slot generates the interrupt and indicates that it has no further
The slot generates an interrupt and indicates that it has further
CM 1542-5
30Manual, 11/2014, C79000-G8976-C290-02
Page 31
Interrupts, diagnostics messages, error and system alarms
Byte 3: Variant "Status specifier"
Bit no.
Meaning
7...2
- reserved -
Status_Specifier
0
No further distinction
2
Status disappears
3
- reserved -
Bytes 4...62: Module-specific diagnostics: General coding
Bytes 4...62: Module-specific diagnostics with "status type" and "module status"
Byte
Bit assignment
Bit
7 6 5 4 3 2 1
0
4
Module status 4
Module status 3
Module status 2
Module status 1
5
Module status 8
Module status 7
Module status 6
Module status 5
...
...
...
...
...
62
Module status 236
Module status 235
Module status 234
Module status 233
Value
Meaning
00
Data valid
01
Data invalid - error (for example short-circuit)
10
Data invalid - wrong module
11
Data invalid - no module plugged in
6.5 Device-specific diagnostics in DP-V1
Table 6- 9 Structure of byte 3 of the device-specific diagnostics (variant "status specifier")
1...0
1 Status appears
This byte contains data with module-specific information that is described in the relevant
module documentation. The relevant module is identified by the slot (byte 2).
With the variant "status type" of the device-specific diagnostics of DP-V1 slaves (see byte 1,
bit 7) and the setting "Modul_Status" (see byte 1, bits 0...6), there are two status bits here for
each slot (= module). Bits not required are set to 0.
Table 6- 10 Structure of the bytes for module-specific diagnostics data
The status bits are coded as follows:
Table 6- 11 Meaning of the values of the status bits
CM 1542-5
Manual, 11/2014, C79000-G8976-C290-02
31
Page 32
Interrupts, diagnostics messages, error and system alarms
6.6
DP diagnostics frames when the CPU is in STOP
DP diagnostics frames when the CPU is in STOP
6.6 DP diagnostics frames when the CPU is in STOP
All diagnostics frames from DPV0 standard slaves and all DP interrupt frames from DPS7/DPV1 standard slaves arriving when the CPU is in STOP are forwarded to the CPU.
During module startup, the diagnostics frames must then be evaluated by a suitable user
program.
CM 1542-5
32Manual, 11/2014, C79000-G8976-C290-02
Page 33
7
6GK7 542-5DX00-0XE0
Product type name
CM 1542-5
Connection to PROFIBUS
Design of the PROFIBUS interface
1.5 Mbps, 3 Mbps, 6 Mbps, 12 Mbps
Electrical data
Current consumption
Insulation
Design, dimensions and weight
Module format
Compact module S7-1500, single width
Degree of protection
IP20
Weight
Approx. 400 g
Dimensions (W x H x D)
35 x 142 x 129 mm
Installation options
Mounting in an S7-1500 rack
Product functions *
Note the information in the System description of SIMATIC S7-1500 (Page 7).
In addition to the information in the system description, the following technical specifications
apply to the module.
• Number
• Connector
• Transmission speed
Power supply
• via S7-1500 backplane bus
• From backplane bus
• Power dissipation
Insulation tested with 707 VDC (type test)
1 x PROFIBUS interface
1 x D-sub female connector (RS-485)
9.6 Kbps, 19.2 Kbps, 45.45 Kbps
93.75 Kbps, 187.5 Kbps, 500 Kbps
15 V
200 mA
3 W
* You will find the product functions in the section Functional characteristics (Page 13).
CM 1542-5
Manual, 11/2014, C79000-G8976-C290-02
33
Page 34
Technical specifications
CM 1542-5
34Manual, 11/2014, C79000-G8976-C290-02
Page 35
8
Approvals issued
Note
Issued approvals on the type plate of the device
The specified approvals
been obtained when there is a corresponding mark on the product. You can check which of
the following approvals have been granted for your product by the markings on the type
plate. The approvals for shipbuilding are an exception to this.
Certificates for shipbuilding and national approvals
Standards and test specifications
IEC 61131–2
- with the exception of the certificates for shipbuilding - have only
The device certificates for shipbuilding and special national approvals can be found on the
pages of Siemens Automation Customer Support on the Internet
(http://support.automation.siemens.com/WW/news/en/10805878)
Under this entry, go to the required product and select the following settings: "Entry list" tab >
entry type "Certificates".
The device meets the following standards and test specifications. The test criteria for the
module are based on these standards and test specifications.
The SIMATIC NET S7 CPs described in this manual fulfill the requirements and criteria of
the IEC 61131-2 standard (Programmable Logic Controllers, Part 2: equipment requirements
and verifications).
CM 1542-5
Manual, 11/2014, C79000-G8976-C290-02
35
Page 36
Approvals
CE mark
EMC directive
Field of application
Requirements
Emission
Immunity to interference
Industry
EN 61000–6–4
EN 61000–6–2
Explosion Protection Directives
Note
When using (installing) SIMATIC NET products in hazardous area zone 2, make absolutely
sure that the associated conditions are adhered to!
You will find these conditions here:
•
"All Documents" > "Use of subassemblies/modules in a Zone 2 Hazardous Area"
The SIMATIC NET S7-CPs described in this manual fulfill the requirements and protection
goals of the following EC directives and meet the harmonized European standards (EN) that
have been published for the programmable logic controllers in the official journals of the
European communities:
● 94/9/EC "Equipment and protective systems intended for use in potentially explosive
atmospheres" (Explosion Protection Directive)
The EC Declarations of Conformity are available for the responsible authorities according to
the above-mentioned EC Directive at the following address:
● Siemens Aktiengesellschaft
Industry Automation
Industrielle Kommunikation SIMATIC NET
Postfach 4848
D-90327 Nürnberg
You will find the EC Declaration of Conformity at the following address / under the following
entry ID on the Internet (http://support.automation.siemens.com/WW/view/en/16689636)
The SIMATIC NET S7 CPs listed above are designed for use in an industrial environment.
Complying with EN 60079
(electrical apparatus for potentially explosive atmospheres; Type of protection "n")
EN 60079-15, EN 60079-0
II 3 G Ex nA IIC T4 Gc
DEKRA 12 ATEX 0240X
In the SIMATIC NET Manual Collection under
CM 1542-5
36Manual, 11/2014, C79000-G8976-C290-02
Page 37
Approvals
Notice for Australia - C-TICK
Notices for Canada
AVIS CANADIEN
UL and CSA approval
Note
You will recognize the approval, UL/CSA
on the rating plate.
UL approval
CSA approval
cULus Approval, Hazardous Location
The above listed SIMATIC NET S7 CPs meet the requirements of the standard AS/NZS
2064 (Class A).
This class A digital device meets the requirements of the Canadian standard ICES-003.
Cet appareil numérique de la classe A est conforme à la norme NMB-003 du Canada.
or cULus, assigned to your product from the mark
UL Recognition Mark Underwriters Laboratories (UL) nach Standard UL 508:
● Report E 85972
CSA Certification Mark Canadian Standard Association (CSA) nach Standard C 22.2 No.
142:
● Certification Record 063533–C-000
CULUS Listed 7RA9 IND. CONT. EQ. FOR HAZ. LOC.
Underwriters Laboratories Inc. complying with
● UL 508 (Industrial Control Equipment)
● CSA C22.2 No. 142 (Process Control Equipment)
● ANSI ISA 12.12.01, CSA C22.2 No. 213-M1987 (Hazardous Location)
● CSA–213 (Hazardous Location)
APPROVED for Use in
● Cl. 1, Div. 2, GP. A, B, C, D T3...T6
● Cl. 1, Zone 2, GP. IIC T3...T6
CM 1542-5
Manual, 11/2014, C79000-G8976-C290-02
37
Page 38
Approvals
WARNING
Explosion Hazard -
Note
This equipment is suitable for use in Class I, Division 2, Group A, B, C, D or non
locations only.
Note
For devices with C
removed when the power is off.
Note
This plant has to be mounted according to the NEC (National Electrical Code) stipulations.
When used in environments according to class I, division 2 (see above) , the SIMATIC NET
S7 CP
FM approval
WARNING
Personal injury and damage to property may occur.
You will find the temperature class on the type plate on the module.
Do not disconnect while circuit is live unless area is known to be non hazardous.
Explosion Hazard -
Substitution of components may impair suitability for Class I, Division 2.
-hazardous
-PLUG memory: The C-PLUG memory module may only be inserted or
s must be mounted in an enclosure.
Factory Mutual Approval Standard Class Number 3611,
Class I, Division 2, Group A, B, C, D, T3...T6 or
Class I, Zone 2, Group IIC, T3...T6.
You will find the temperature class on the type plate on the module.
In hazardous areas, personal injury or property damage can result if you create or break an
electrical circuit during operation of a SIMATIC NET S7 CP (for example, by means of plugin connections, fuses, switches).
WARNING - EXPLOSION HAZARD: DO NOT DISCONNECT EQUIPMENT WHEN A
FLAMMABLE OR COMBUSTIBLE ATMOSPHERE IS PRESENT.
When used in hazardous locations (division 2 or zone 2), the device must be installed in an
CM 1542-5
38Manual, 11/2014, C79000-G8976-C290-02
enclosure.
Page 39
A
B
C
D
E
F
G
H
I
ATEX, 18
Bus topology, 11
DP mode
General characteristic data, 13
DP slave, 10, 11
Operation as, 10
DP slave mode, 22
DP slaves
General characteristic data, 13
Cabinet, 18
Cable length, 13
Cables for temperatures in excess of 70 °C, 19
Calling program blocks (instructions) for distributed
I/O, 16
CE mark, 36
Changeover
CPU from RUN to STOP, 22
CPU from STOP to RUN, 22
Characteristic data, 13, 14
Configuration data
Configuration and downloading, 15
CSA
Approval, 37
C-Tick
Approval, 37
Data record routing, 10, 14
Diagnostics, 23
Diagnostics options, 25
Diagnostics repeater (DP slave), 11
Diagnostics requests, 11, 14, 14
Direct data exchange, 10
Downloading project data, 20
Downloads, 8
DP diagnostics, 25
DP diagnostics frames when the CPU is in STOP, 32
DP master