Simatic Net: S7-Cps For Industrial Ethernet
Simatic Net: S7-Cps For Industrial Ethernet
Simatic Net: S7-Cps For Industrial Ethernet
Manual Part B2
CP 343-1 PN
6GK7343-1 HX00-0XE0 Version 3 and higher (Firmware version V1.1)
for SIMATIC S7–300 / C7–300
LED displays
AUI/ITP port:
15-pin sub-D female
connector with sliding locking
mechanism
Note
All the notices in the Product Information Bulletin shipped with this device are
valid and must be adhered to.
Contents
Contents – Part A
Ethernet CPs – General Information . . . . . . . . . . . . . . . . . . . see general part
Note
Please remember that Part A of the manual also belongs to the description of the
CPs. Among other things, this includes an explanation of the safety–related
notices and other information that applies to all S7 CPs for Industrial Ethernet.
You can also obtain this general section from the Internet:
http://www4.ad.siemens.de/view/cs/en/8774037
Contents – Part B2
1 Properties / Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B2–5
2 Requirements for Use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B2–8
3 Installation and Commissioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B2–9
4 Using the CP 343-1 PN with PROFInet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B2–11
4.1 Preparing to Configure with STEP 7 . . . . . . . . . . . . . . . . . . . . . . . . . . . . B2–11
4.2 PROFInet Configuration with SIMATIC iMap . . . . . . . . . . . . . . . . . . . . . B2–11
4.3 Programming – the PN_InOut (FB88) Block . . . . . . . . . . . . . . . . . . . . . . B2–15
5 Using PROFInet Communication and Standard Communication at the
Same Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B2–19
6 Displays and Mode Selector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B2–21
7 Performance Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B2–24
7.1 General Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B2–24
7.2 Characteristics of S7 Communication . . . . . . . . . . . . . . . . . . . . . . . . . . . B2–24
7.3 Characteristics of Connections
(SEND/RECEIVE Interface) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B2–24
7.4 Characteristics of the PROFInet Interface . . . . . . . . . . . . . . . . . . . . . . . B2–25
8 Compatibility with the Previous Product . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B2–27
8.1 Extended functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B2–27
8.2 Compatibility with Previous Products / Use as a Replacement . . . . . . B2–27
9 Further Information on Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B2–28
9.1 Clear / Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . B2–28
1 Properties / Services
Application
The CP 343-1 PN communications processor is the communications module of the
SIMATIC S7-300 for Industrial Ethernet with additional PROFInet functionality.
As shown in the graphic, the PROFInet functionality allows access over networks
to devices on PROFIBUS.
PC with PN
OPC server
S7-300 with Mobic
Panel PC 670 PG
CP 343-1 PN
Ind. Ethernet
Program
Data access download
IE/PB Link
PROFIBUS-DP
Drive Drive
ET 200X ET 200S
Communication between
independent PROFIBUS
devices
Figure 1-1
Configuring
You can configure the CP 343-1 PN over MPI or LAN/Industrial Ethernet. You
require STEP 7 V5.1 SP3 or higher with NCM S7 for Industrial Ethernet
(abbreviated to “NCM IE” below).
To use the CP 343–1 PN under PROFInet, you require the engineering tool
SIMATIC iMap version 1.1 or higher to configure the interconnections.
Services
The CP 343-1 PN supports the following communication services:
S Use of a SIMATIC S7-300 for Component based Automation based on the new
PROFInet Standard of the PNO. This standard makes the following possible:
– Component technology in automation
Notice
We recommend that you always use the latest block versions for all module types.
You will find information on the latest block version and links to download the
current blocks in our Customer Support on the Internet:
http://www4.ad.siemens.de/view/cs/de/8797900
If you are using older block types, this recommendation only applies if you also
have the latest firmware version.
You will find further information and Internet addresses in the Preface of the
General Part of this manual.
General Operation
The following table shows the S7-300 CPUs with which the CP 343-1 PN can be
operated with the range of functions described here:
Table 2-1
The table lists the CPUs approved at the time of printing this product information
bulletin. S7-300 CPUs approved later and not listed in the table also support the
range of functions described here.
Procedure / Steps
Table 3-1
Note
The two front panels must be kept closed during operation.
The module must be installed so that its upper and lower ventilation slits are not
covered, allowing adequate ventilation.
Configuration
To initialize the CP for communication services, use the configuration tool NCM S7
for Industrial Ethernet. Refer to Chapter 1 of this manual.
To use the CP 343–1 PN under PROFInet, you require the engineering tool
SIMATIC iMap to configure the interconnections.
Notice
If you use 10 Mbps network components that do not support “Autonegotiation”,
you may have to set the mode manually during CP configuration using STEP 7 /
HW Config (in the properties dialog of the CP). As default, the CP is configured for
automatic detection.
PG/PC Connection
You can connect the PG when configuring the CP as follows:
S via Industrial Ethernet
S via MPI
Note
When using PROFInet, you must use the interface over Industrial Ethernet to load
the interconnections over iMap.
Functionality in PROFInet
The CP 343-1 PN is a PROFInet-compliant device. An S7-300 station equipped
with this CP can be interconnected in SIMATIC iMap as a PROFInet component.
You configure the interconnections between the PROFInet components in the plant
view of SIMATIC iMap.
Ind. Ethernet
PROFIBUS DP
S7-300 stations
with CP 343-1 PN
S7-300 stations
with CP 343-1 PN
Notice
Please remember that you must assign an address for the CP 343-1 PN once in
STEP 7; this is described in Chapter LEERER MERKER.
If you select the CP 343-1 PN in the network view, you can set the IP addresses.
You can also enter management information (technological names).
Notice
The ”Replace module without PG” functionality (configuration data stored on the
CPU) can no longer be used fully after downloading interconnections since the
interconnection information is stored only on the CP.
After replacing a module, you must download the interconnection information to
the new CP using SIMATIC iMap.
Note
For more detailed information about adopting the STEP 7 configuration and using
it in PROFInet and in the SIMATIC iMap engineering tool, refer to the
documentation on SIMATIC iMap.
How it Works
FB88 transfers data from the interface DB to the CP 343-1 PN and from the
CP 343-1 PN to the interface DB. The interface DB itself is the interface to the user
program.
To allow this, FB88 must be called cyclically. It is also possible to call FB88 more
than once in a cycle.
On the interface, FB88 requires only the module address of the CP 343-1 PN.
To ensure data consistency, you can only modify the data to be transferred or start
to read the received data when the job is completed (DONE=1).
Once DONE=1 or ERROR=1 is set, the transfer is either completed or has been
terminated due to an error. Data can now be evaluated or set again. Data are
transferred again the next time the block is called.
In your user program, make sure that on completion of data transfer FB88 is called
again only after all the input data have been read and all output data have been
written to the interface DB.
Note
You will find detailed information on the structure and handling of the interface DB
in the SIMATIC iMap documentation /11/:
You will find a model interface DB (DB100) in the block library described below
under Supplied with the Block Library.
Notice
Calling communications blocks for S7–300 (SIMATIC NET block libraries for
S7–300 in STEP 7) in several priority classes is not permitted! If, for example, you
call a communications block in OB1 and in OB35, the block execution could be
interrupted by the higher–priority OB.
If you call the blocks in several OBs, you must write your program so that an
executing communication block cannot be interrupted by another communication
block (for example, by disabling/enabling SFC alarms).
Do not modify the instance DB of FB88 (this is known as the call interface with
DB88 below)!
Call Interface
FB88
STL Explanation
Call FB 88 , DB88 //Block call with instance DB88
LADDR := W#16#0120
DONE := M 99.1
ERROR := M 99.0
STATUS := MW 104
You can find out which SFCs are used that are relevant to the error evaluation in
the Properties dialog of the FB described here in the “Calls” tab
Note
For entries coded 8FxxH in the STATUS column, refer also to the STEP 7
Standard and System Functions reference manual. You will find information in the
chapter “Evaluating Errors with the Output Parameter RET_VAL”
NAME Version FB No. Local Data MC7 Load Memory Work Memory
Bytes Bytes Requirements Requirements
Bytes Bytes
PN_InOut 1.4 88 54 2034 2464 2070
Overview
With the CP, it is possible to operate PROFInet communication and standard
communication at the same time using the S7 communication services and
S5-compatible communication.
This mode is relevant to your application, for example, when you want to
implement communication between existing ”conventional” SIMATIC devices and
PROFInet devices in an existing system.
The ”problem” in this case, is that communication with PROFInet devices must be
configured with the SIMATIC iMap application. Communication with conventional
devices, on the other hand, requires that connections are configured in STEP 7.
Recommended Procedure
Here, we would like to give you a few tips and recommendations.
Use S7, TCP, or ISO-on-TCP connections for communication between the
PROFInet device and a conventional device.
Configure the S7 and TCP connections in STEP 7 as follows:
S With S7 communication
– PROFInet device:
No configuration necessary, the device can only be operated as a server for
S7 communication.
– Conventional device: only one end of connection active
S In S5–compatible communication (TCP– / ISO–on–TCP connections)
– PROFInet device: unspecified passive
– Conventional device: unspecified active
This achieves the following:
S With STEP 7, you can specify the connection partner for the conventional
devices at any time.
S You use the PROFInet devices in SIMATIC iMap and can therefore interconnect
them without having to change the connection configuration again in STEP 7;
the devices are ready to send and receive on the configured connections (the
connection is established by the active partner).
For the PROFInet device, this means that you should follow the procedure below:
1. First configure unspecified connections in STEP 7 (only with TCP – see above).
2. Create suitable user programs in STEP 7 that will handle communication with
the conventional devices.
3. Then generate the PROFInet components in STEP 7 and import them into the
SIMATIC iMap library.
4. Interconnect the PROFInet components in SIMATIC iMap.
5. Download the components from SIMATIC iMap to the PROFInet device; the
configuration data created with STEP 7 with the unspecified connections are
also downloaded.
Table 6-1
Running (RUN)
Stopping (RUN->STOP)
1) Note:
If this status occurs, the module must be turned off and on again; simply activating the RUN selector will
not bring about a restart.
CP Communication State
In addition to the LEDs that signal the CP state, the front panel also includes LEDs
that provide information about the status of the CP interface to Industrial Ethernet.
Table 6-2
Note
Read the explanations of the operating modes in the NCM S7 for Industrial
Ethernet manual /2/.
Mode Selector
With the mode selector, you can set the following modes:
S Switch from STOP to RUN:
The CP reads the configured and/or modified data into the work memory and
then changes to the RUN mode.
Note
The modes can only be controlled using NCM S7 or the SIMATIC Manager when
the selector is set to RUN.
Note
Read the sections about downloading configuration data to the CP in the NCM S7
for Industrial Ethernet manual /2/.
7 Performance Data
S Data field length The maximum length of the data fields is 2048
bytes.
S No reception of UDP broadcast To avoid overload resulting from a high broadcast
load, the CP does not permit reception of UDP
broadcast.
Table 7-5
Notice
If you have a large system or when using other services at the same time (for
example online monitoring), it may not be possible to guarantee a configured
transmission frequency of 100 ms in all cases. To remedy this, it is advisable to
increase the interval to at least 200 ms.
Danger
! Please remember that if you use this module as a replacement, you should only
use the blocks permitted for the configured CP type on SEND/RECEIVE interface!
If you configure the module described here as module type
6GK7 343-1HX00-0XE0 in STEP 7, you must use the blocks specified for this
module type:
AG_SEND (V4.1 and higher)
AG_RECV (V4.5 and higher)
AG_LOCK (V4.0 and higher)
AG_UNLOCK (V4.0 and higher)
You can only continue to use blocks of the older types if you configure the module
as module type 6GK7 343-1EX10-0XE0 in STEP 7 (as a replacement module).
Available Functions
The CP has a two-level function available for resetting memory:
S Clear / reset
Following this memory reset, the CP retains the preset MAC address and the
retentive parameters. The CP is therefore immediately ready for downloads
using the IP address.
The retentive parameters include:
– IP address and IP parameters
– A newly set MAC address
– LAN settings
S Resetting to factory defaults
After this memory reset, the CP retains only the factory-set MAC address (as
shipped).
Note
If you store the configuration data on the CPU, please read the note below.
Using the functions described here to reset the memory, you do not modify the
configuration data on the CPU!
If you subsequently upload the configuration data from the CPU to a PG you will
always obtain the configuration data that were previously on the CP (with
parameters, connections, IP address).
Further Notes:
S If you use 10/100 Mbps network components that do not support
“Autonegotiation”, you may have to set the mode manually during CP
configuration using STEP 7 / HW Config (in the properties dialog of the CP). As
default, the CP is configured for automatic detection.
S If your application requires a fixed mode instead of “Autonegotiation”, you will
need to match up the partner devices.
S Remember that if you configure the CP manually, it will not react to an
autonegotiation query! As a result, a connected partner will not be able to set
the required mode and communication will not be ideal.
Example:
If, for example, the CP is set to “100 Mbps – full duplex”, a CP connected as
partner will set “100 Mbps – half duplex”. Reason: Due to the fixed setting, no
autonegotiation response is possible; the connected partner recognizes the 100
Mbps with autosensing but nevertheless remains in half duplex.
S Recommendation: Change “Individual network settings” only over MPI
If you modify the LAN settings using the “Individual network settings” option of
the CP, these changes will be adopted by the CP and activated when the
configuration data is downloaded to the CP.
We therefore recommend that you download configuration data to the S7
station over an MPI connection if you change this setting.
If you download the configuration data over the LAN interface, depending on
the selected setting, it is possible that the current download will not be
completed due to the changes to the configuration taking immediate effect.
Example:
The download is started initially with the setting TP/ITP at 10 Mbps half duplex.
If the “Individual network setting” changes this to AUI, the download cannot be
completed.
Notice
Calling communications blocks for S7–300 (SIMATIC NET block libraries for
S7–300 in STEP 7) in several priority classes is not permitted! If, for example, you
call a communications block in OB1 and in OB35, the block execution could be
interrupted by the higher–priority OB.
If you call the communications blocks in several OBs, you must write your program
so that an executing block cannot be interrupted by another communications block
(for example, by disabling/enabling SFC alarms).
Modify the call parameters of the FC after the FC has confirmed job execution
Notice
Once the job has been triggered, you can only modify the call parameters of the
FC call interface of FC AG_SEND or AG_RECV again after the FC has confirmed
job execution with DONE=1 or with ERROR=1.
If you ignore this, it is possible that execution of the job will be aborted with an er-
ror.
Requirements
You download new firmware to a SIMATIC NET CP using the firmware loader
shipped with the STEP 7 option NCM S7 for Industrial Ethernet.
To download firmware, you require an Industrial Ethernet CP module in the PG/PC
(for example, CP 1613) or a normal Ethernet module with the “Softnet” software
package.
Notice
The emergency address 00.AF.FE.AF.FE.00 is no longer used with the module
described here.
If you can no longer start the download either with the configured or the default
MAC address, you should turn the entire rack off and on again. You can then
trigger the firmware download again within 10 seconds with the mode selector set
to STOP. In this case, you must always use the default MAC address.
During this time, the CP indicates “Ready for Firmware Download”.
11 Technical Specifications
Table 11-1 Technical Specifications
All the information in /1/ in the Section “General Technical Specifications“ regarding
the following topics also applies to the CP 343-1:
S Electromagnetic compatibility
S Transportation and storage conditions
S Mechanical and climatic ambient conditions
S Insulation tests, class of protection and degree of protection