Professional Documents
Culture Documents
Et200s Profc v30 en
Et200s Profc v30 en
Et200s Profc v30 en
If you have any questions relating to this document then please send them to us at
the following e-mail address:
online-support.automation@siemens.com
Copyright © Siemens AG 2010 All rights reserved
Table of contents
1 Warranty and liability ........................................................................................ 4
2 Automation function.......................................................................................... 5
2.1 Overview .............................................................................................5
2.1.1 Demarcation ........................................................................................5
2.1.2 Know-how that is required ...................................................................5
2.2 Description of the core functionality .....................................................6
3 Hardware and software components used ..................................................... 7
4 Function mechanisms of this application....................................................... 8
4.1 Function block ET200_FC_DRIV, FB100 ............................................8
4.1.1 Functionality ........................................................................................8
4.1.2 Schematic FBD representation............................................................8
4.1.3 Input and output parameters................................................................9
4.1.4 Timing behavior when transferring parameters from the converter ....12
4.1.5 Timing behavior for parameterizing errors .........................................13
4.1.6 Alarm and fault signals ......................................................................14
5 Installation........................................................................................................ 17
5.1 Installing the hardware ......................................................................17
5.2 Installing the software........................................................................17
Copyright © Siemens AG 2010 All rights reserved
We do not accept any liability for the information contained in this document.
Claims against us - irrespective of the legal grounds - resulting from the use of the
examples described in this application example, information, programs,
engineering and performance data etc. are completely excluded. Such an
exclusion shall not apply where liability is mandatory e.g. under the German
Product Liability Act involving intent, gross negligence, or injury of life, body or
health, guarantee for the quality of a product, fraudulent concealment of a
Copyright © Siemens AG 2010 All rights reserved
2 Automation function
One or several ET200S FC frequency converters (FW 3.0 or higher) or ET200pro
FC are being used in a plant or system. Communication that goes beyond the
standard telegram 1 is to be established using these frequency converters.
2.1 Overview
With the launch of the ET200S FC (FW1.x), a partner block FB100 (V2.2) was also
provided. This partner block can no longer be used for the currently available
ET200S FC (FW 3.0).
A new FB100 (V 3.0) was developed to resolve this problem; this runs from
firmware version V3.0 and higher of the ET200S FC and ET200pro FC. During
development, special emphasis was placed on keeping the differences to the
previous FB100 (V2.2) to a minimum regarding its behavior and how it is
controlled.
2.1.1 Demarcation
The FB100 is released for ET200S FC and ET200pro FC from firmware version
V3.0 and higher. It cannot be used with older firmware versions.
Copyright © Siemens AG 2010 All rights reserved
It is assumed that the reader has basic knowledge about using STEP 7 and the
parameterization of Siemens frequency converters.
Hardware components
Table 3-1 Structure of the core elements 1
Component Qty. MLFB/Order No. Note
CPU315F-2PN/DP 1 6ES7 315-2FH13-0AB0 With the matching
power supply
IM154-4 PAN HE Cu 1 6ES7 154-4AB10-0AB0
ET200pro F-FC 1 6SL3 235-0TE21-1SB0
Only the FB100 has to be integrated for commissioning. The FB100 must be called
once for each frequency converter that is to be controlled. The FB100 is assigned
to the frequency converter using the LADDR formal operands.
The block cyclically transfers the process data (standard: Control word 1,
frequency setpoint) from the SIMATIC to the drive taking into account the
consistency conditions. Status word 1 and the actual frequency are cyclically
received (standard).
The acyclic services, which can be used as required, serve to expand the function.
After the start, the function block is in normal cyclic data exchange with the ET
200S FC or ET200pro FC converters.
In conformance with the appropriate STEP7 rules, the function block can be
integrated in one of the following execution levels:
• Cyclic: OB1
• Time-controlled: e.g. OB35
Copyright © Siemens AG 2010 All rights reserved
ET200S_FC_DRIV
WORD LADDR SFC_ERR BOOL
— —
INT FREQ_SET SFC_ERR_RD INT
— —
DWORD CTRL SFC_ERR_WR INT
— —
INT PAR_ADDRESS FREQ INT
— —
BYTE PAR_INDEX STAT DWORD
— —
REAL WRITE_DATA_VALUE ERR_NO_VALID BOOL
— —
BOOL DIRECTION ERR_NO INT
— —
BOOL REQ READ_DATA_VALUE REAL
— —
BOOL PAR_ERR_ACK BUSY BOOL
— —
BOOL CTRL_SRC PAR_ERR BOOL
— —
BOOL OLD_COMP PAR_ERR_NO BYTE
— —
BOOL CTRL2_ACT
—
BOOL STAT2_ACT
—
Note Read or write access errors are indicated at the FB100 using the outputs
SFC_ERR, SFC_ERR_RD and SFC_ER_WR (using SFC14 and SFC15). The
function of these diagnostics outputs in the FB100 depends on the interface
module IM 151 and the control (CPU) being used
Format: Hexadecimal;
Example: Index 32 means PAR_INDEX = B#16#20
WRITE_DATA_VALUE INPUT REAL Parameter value that should be written
DIRECTION INPUT BOOL 1: Write parameter value
0: Read parameter value
REQ INPUT BOOL Data request. A rising edge starts the data transfer.
READ_DATA_VALUE OUTPUT REAL Read parameter value
BUSY OUTPUT BOOL This output is at TRUE if data is being exchanged
between the function block and the ET 200S FC or
ET200pro FC (sending or receiving).
The timing behavior when parameters are transferred from the converter is shown
in the following diagram.
Communication errors
8092 In ANY reference, type data not equal to BYTE has been specified.
Only for S7-400
Copyright © Siemens AG 2010 All rights reserved
8093 For the logical address specified under LADDR there is no DP module from
which you can read consistent data.
80A0 (RD) A read access error was identified when accessing the I/O
80A1 (WR) A write access error was identified when accessing the I/O
80B1 The length of the specified target area is not equal to the net data length
configured with STEP 7.
80C0 (RD) The data have still not been read from the module
80C1 (WR) The data of the previous write task on the module have still not been
processed by the module.
Parameterizing error
A parameterizing error is signaled if one of the following input errors has been
made:
• incorrect parameter number
• incorrect index
• illegal value
Drive fault
Drive faults of the ET 200S FC are output via the “ERR_NO” output of the FB100.
ERR_NO contains the value of r0947.
Note • Output "ERR_NO_VALID of the FB100 should be used to evaluate drive faults for the
plant or system control!
• A table with all of the possible drive faults is provided in the List Manual of the ET
200S FC or ET200pro FC in the Chapter “Alarm and fault signals”.
• A diagnostics alarm for the particular fault can be programmed using the OB82.
• Diagnostic messages, which can initiate a corresponding diagnostics alarm at the
SIMATIC S7, can be activated or deactivated using parameter p8452 "DIA_LOCK".
LED displays (SF) are also enabled or suppressed.
Copyright © Siemens AG 2010 All rights reserved
5 Installation
Note The safety instructions for the hardware and software being used must always
be carefully observed.
As an alternative, you can also copy the contents of the "Blocks" folder of the
project example into your project.
Two configurations are included in the example. The first is for an ET200S FC -
where one IM 151-7 CPU is used as control. The second is for an ET200pro FC,
which communicates with an S7-300 via Profinet. The blocks are the same.
Open the HW Config of your program and read out the start address of the
frequency converter.
Convert this address into the hexadecimal notation. In the example, an address of
100 HEX is obtained.
Enter this address into your program in the OB1 at the FB100 parameter "LADDR".
Save the OB1 and transfer all of the blocks into the CPU.
Copyright © Siemens AG 2010 All rights reserved
6.2 Commissioning
Table 6-2
No. Action Comment
1 Call the block with the assignment of the DB In the example, located in OB1.
2 Enter the LADDR value. Corresponds to the peripheral See Fig. 5-2 or 5-3
inputs and outputs of the converter as hexadecimal
value.
Copyright © Siemens AG 2010 All rights reserved
3 Adapt the remaining inputs and outputs Pre-assigned in the example so that
the variable tables can be used for
controlling and monitoring.
4 Load the blocks to the control.
Please take any additional status signals from the ET200S FC or ET200pro FC List
Manual, Chapter "Function charts, function chart 4170" .
Control word MD4 (CTRL) is listed in this variable table in the most important
control bits. Below, the function of the control bits used:
• M6.2: From Version V2.2 of the FB100 it is no longer necessary to
set this bit to signal 1. This bit is automatically set by the FB100.
• M7.1 to M7.6: Signal 1 for all control bits - switches the ET200S FC
into the state "Drive ready" (M17.0).
• M7.0: Signal 1 starts the motor. If this control signal is used, control
signals M6.0 (JOG clockwise) and M6.1 (JOG counter-clockwise)
must have a 0 signal.
• M6.3: Setpoint inversion (motor direction of rotation is reversed).
• M6.0 or M6.1: These two control bits control the JOG frequency for
clockwise (p1058) or counter-clockwise (p1059). If these control
signals are used, then M7.0 (ON/OFF1) must have a 0 signal.
understanding, the most important status signals (M17.0 to M17.7) that are
contained in MD14 are listed below. Please take any additional status signals from
the ET200S FC or ET200pro FC List Manual, Chapter "Function charts, function
chart 4170"
The control signals to read the parameters of the ET200S FC or ET200pro FC are
supplied in this variable table via FB100 - and possible error signals when reading
the parameters are displayed.
1 signal. You can then read out the corresponding fault number in MB44
(PAR_ERR_NO). More detailed information on the cause of the error can be
obtained from the error number of Table 7-2 Parameter error numbers
You can acknowledge the error message using M31.1 (PAR_ERR_ACK).
Copyright © Siemens AG 2010 All rights reserved
Writing is started with a signal edge at M30.1 (REQ). During writing, M30.2 (BUSY)
changes from a 0 signal to a 1 signal. Once reading has been completed, M30.2
(BUSY) changes back to a 0 signal.
Profidrive profile.
Formal operands CTRL2_ACT and STAT2_ACT can be used to deactivate acyclic
transfer of control word 2 and status word 2 in order to increase the performance.
In order to obtain compatible behavior to the previous FB100 (FW1.x), both
operands must be pre-assigned a value of 1.
Contrary to the previous block, parts of control word 2 and status word 2 are no
longer used for internal purposes. This means that they are now completely
available.
For the control, it must be observed that the signal for external fault 1 is involved,
which means that it must be set to 1; otherwise, the converter has a fault signal.
Control and status word 2 are now acyclically transferred. This is the reason that
measures were taken to reduce the load on the backplane bus; as a consequence
the response behavior has changed. For control word 2, when changing a bit, only
what has actually been changed is transferred. If no change has occurred - with the
exception of re-initialization using a positive signal edge at CTRL2_ACT - nothing
is transferred.
If STAT2_ACT is activated, if present, the fault signal is updated each time that
status word 2 is called. If STAT2_ACT is not activated, the fault signal is updated
with a positive signal edge of the fault bit - and then subsequently only for
acknowledgment attempts that were not successful.
After jog operation f_act > p1080 f_min = 1 f_act > p1080 f_min = 0 No
9 References
9.1 References
This list in no way complete and only reflects a selection of suitable literature.
Table 9-1
Subject area Title
/1/ STEP7 Automating with STEP7 in STL and SCL
Hans Berger
Publicis MCD Verlag
ISBN 3-89578-113-4
/2/
10 History
Table 10-1
Version Date Change
3.0 15.07.2010 Complete revision of the FB100 to control a ET200S FC and
ET200pro FC with firmware>= V3.0
Copyright © Siemens AG 2010 All rights reserved