Beruflich Dokumente
Kultur Dokumente
Application describtion
for SINAMICS G120 with CU230P-2
Warranty, liability and support
Note The Application Examples are not binding and do not claim to be complete
regarding the circuits shown, equipping and any eventuality. The Application
Examples do not represent customer-specific solutions. They are only intended
to pro-vide support for typical applications. You are responsible in ensuring that
the de-scribed products are correctly used. These Application Examples do not
relieve you of the responsibility in safely and professionally using, installing,
operating and servicing equipment. When using these Application Examples, you
recognize that Siemens cannot be made liable for any damage/claims beyond
the liability clause described. We reserve the right to make changes to these
Application Examples at any time without prior notice. If there are any deviations
between the recommendations provided in these Application Examples and
other Siemens publications - e.g. Catalogs - then the contents of the other
documents have priority.
Copyright © Siemens AG 2009 All rights reserved
CU230_Modbus_V1_1_en.doc
Preposition
Aim of the application
This application was created in order to provide the user with an easy introduction
to the subject of commissioning the CU230P-HVAC control unit with MODBUS
interface.
This application contains general instructions on how to connect the CU230P-
HVAC to a MODBUS network.
The application describes each of the steps involved in setting up an S7 project to
control a SINAMIC G120 with the CU230P-HVAC via MODBUS, and how to control
the inverter using a variables table.
Scope
The following core issues are discussed in this application:
Copyright © Siemens AG 2009 All rights reserved
Exclusion
This description can be applied for SINAMICS G120 frequency inverters with
Control Units CU230P-HVAC.
This application does not include any description of the following
• The SIMATIC STEP 7 programming tool
• The basic commissioning of the frequency inverter
• Commissioning higher-level controls
It is assumed that readers have basic knowledge about these two subjects.
Table of Contents
Warranty, liability and support ................................................................................... 3
Preposition ................................................................................................................... 4
Table of Contents......................................................................................................... 5
Application description ............................................................................................... 7
1 Description ......................................................................................................... 7
2 Connecting CU230P-HVACto the MODBUS network ..................................... 9
2.1 Integrating an inverter into the MODBUS fieldbus system................... 9
2.2 MODBUS cable with connector for connection to CP341.................. 10
2.3 General specifications and requirements for fault-free communication10
2.4 Setting the MODBUS address ........................................................... 10
2.5 Communication settings for MODBUS............................................... 11
3 Prerequisites .................................................................................................... 12
3.1 Hardware components ....................................................................... 12
Copyright © Siemens AG 2009 All rights reserved
Application description
This section provides an overview of how to commission a SINAMICS G120 with a
CU230P-HVAC control unit and MODBUS.
1 Description
The CU230 is a Control Unit that has been optimized for pumps and fans. It can be
operated with all power units of the PM240, PM250 and PM260 series.
The CU230 Control Units are available in three versions:
• CU230P HVAC with USS interface via RS485
• CU230P CAN with CANopen interface
• CU230P DP with MODBUS interface
Copyright © Siemens AG 2009 All rights reserved
CU230_Modbus_V1_1_en.doc
It is assumed for the purpose of this application that the motor and inverter (the
power module and the control unit) have been assembled and that the inverter has
undergone the quick commissioning process.
The information required here can be found in the operating instructions for the
SINAMICS G120 and the CU230P-HVAC control units.
(http://www.automation.siemens.com/net/html_76/support/printkatalog.htm)
CU230_Modbus_V1_1_en.doc
Note
Communication with the controller, even when the line voltage is switched
off
You will have to supply the Control Unit with 24 V DC on terminals 31 and 32 if you
require communication to take place with the controller when the line voltage is
switched off.
Note
Important notes for setting the MODBUS address
The fieldbus-address can only be set using p2021. Address 0 is set as default
(factory setting). When setting P2030 = 2 (MODBUS), p2021 is set to „1“ as
default.
The CP341 RS422/485 can only support up to 31 slaves!
A newly set MODBUS address will only come into effect after switching off and on
again. It is particularly important that any external 24 V supply is switched off.
• Modify the communication settings, the parameters that you can use to make
changes are listed in the table below.
P2040 Fieldbus PZD off time, determines the time after which an alarm is
generated if no process data is sent.
3 Prerequisites
3.1 Hardware components
INCL. CONFIG.
PACKAGE ON CD
Drive
SINAMICS G120 Control SIEMENS
CU230P-2 HVAC 6SL3243-0BA30-1HA0 1
Unit
SINAMICS G120 Power
PM240 6SL3224-0BE13-7UA0 1
Module
Intelligent Operator Panel
Operator Panel IOP * 6SL3255-0AA00-4AA0 1
IOP
MODBUS
MODBUS Cable 5 m SIMATIC S7/M7, CABLE 6ES7902-3AB00- 1 SIEMENS
FOR POINT TO POINT 0AA0
CONNECTIONS
RS422 - RS422, 15-POLE
SUBMIN.
D PINS, 5 M LENGTH
Motor / Line
Motor Asynchronous motor 1LA7060-4AB10 1 SIEMENS
Motor cable, 1.5 m Motor cable 6ES7194-1LA01-0AA0 1
Line supply feeder cable Line supply feeder cable - 1 -
PG/PC
PG/PC SIMATIC Field PG M 6ES7712-1BB10- 1 SIEMENS
0AG2
*
The Intelligent Operator Panel IOP is required in order to parameterize the drive. The STARTER
commissioning tool can also be used (refer to the software prerequisites).
Note:
The functionality was tested using the specified hardware components. Similar
products can be used that deviate from the list above.
*
The STARTER commissioning tool is required to parameterize the drive. The operator panel
can also be used (refer to the hardware prerequisites).
Motor
Index 1: Inter-char-delay
Character delay time:
Index 1: 2ms Maximum permissible delay
time between the individual in
the MODBUS frame.
(MODBUS standard
processing time is 1.5 bytes)
Acknowledge the alarm "The following access path(s) was (were) changed:
S7ONLINE (STEP 7) => CP5611 (MPI)" with "OK".
This means that the MODBUS interface of your CP´s can be accessed from STEP
7.
Double-click
In the HW-Config:
• insert a SIMATIC S7-300 rack into the configuration,
• and then draw the desired power supply module from the product tree to slot 1
and the CPU to the slot 2 in the SIMATIC rack.
– When you insert the CPU the window for the settings of the Ethernet
interface opens. Close the window with “OK” (Fig. 8-2).
Click
Result:
Copyright © Siemens AG 2009 All rights reserved
CU230_Modbus_V1_1_en.doc
Selecting and inserting the CP341 module (Fig. 8-4, Fig 8-5 Fig. 8-6)
To create then the MODBUS interface, you have to install the Software
“Configuration Package for Point to Point Communication”, which is included in the
SIMATIC CP341 Module.
Also you have to install the Software “SIMATIC MODBUS Master V3.1 inc. HW-
dongle”. This Software is required to communicate with the CP341.
May you have to install the new Hardware updates to have access to the new
CP341 modules. These Hardware updates could be automatically downloaded in
Siemens SIMATIC Step 7 from the Siemens Website. “open the Hardware config”,
“< Options, Install HW Updates, Download form Internet”
Result:
CU230_Modbus_V1_1_en.doc
Save and compile your configuration by pressing the „Save and compile“
button (Figure 8-5).
Now load the hardware configuration into the CPU by clicking the "Download
to Module" button (Figure 8-5).
Double-click
Result:
The “Properties” window will be displayed and then select the “Addresses”.
These addresses are used later when we writing the PLC program. For this
example we used as Inputs/Outputs Addresses “Start: 256 and End 271”. (Figure
8-8)
Click
Result:
In the window Select “MODBUS Master”, because the “RTU” protocol is assign to
“MODBUS Master”. Acknowledge the “Alarm” (Fig. 8.11) with “YES” and “SAVE”
these settings. (click on the Icon “Save”)
Save
Select
Copyright © Siemens AG 2009 All rights reserved
CU230_Modbus_V1_1_en.doc
“Treiber Laden –box” has now been added into the H/W-config;
The “Load Drivers – box” is now added into HW Config. Only with downloading
the “Drivers” is a communication with the CP341 module possible.
Click
Copyright © Siemens AG 2009 All rights reserved
CU230_Modbus_V1_1_en.doc
Click
Result:
„Load Driver to CP341“ is completed. The „Driver name“ (Treiber-Name) and
Copyright © Siemens AG 2009 All rights reserved
„Driver version“ (Treiber-Version) are displayed and the “Off-line and On-line
version should be the same. (Fig. 8-14)
CU230_Modbus_V1_1_en.doc
On-line Version
Off-line Version
Click
Select “Protocol”
In the “Protocol” will be the “Interface – parameters listed (Fig. 8-16)
Copyright © Siemens AG 2009 All rights reserved
CU230_Modbus_V1_1_en.doc
Select “Interface”
The X27/RS485 is a 2-wire connection. It is possible to create a multipoint
connection (network) connecting up to 31 slaves to one master system. (Fig 8-18)
Copyright © Siemens AG 2009 All rights reserved
CU230_Modbus_V1_1_en.doc
Result:
Save Configuration “, safe file” or Click on the “Save” Icon. When saved, then
the “Save Icon” goes gray. (Fig 8-20)
Save and compile your configuration by pressing the „Save and compile“
button (Figure 8-5).
Now load the hardware configuration into the CPU by clicking the "Download
to Module" button (Figure 8-5).
Copyright © Siemens AG 2009 All rights reserved
CU230_Modbus_V1_1_en.doc
Figure 9-1
Figure 9-2
Note:
When the S7 programming is completed, following S7-Program Blocks should be
listed: See Fig. 9-5
Programming these
functions will automatically
create DB7 and DB8
Copyright © Siemens AG 2009 All rights reserved
CU230_Modbus_V1_1_en.doc
Figure 9-19 Add the following entries to FC3 NW3 (see Figure 9.18)
Application description
Creating and Programming SIMATIC Step-7 Blocks
Application description
Creating and Programming SIMATIC Step-7 Blocks
Contents of DB8
The contents of the DB8 are given from the FC8 (see Figure 9-22):
Application description
Creating and Programming SIMATIC Step-7 Blocks
Contents of DB10
The contents of the DB10 are used for the FC8 (see Figure 9-23):
Application description
Creating and Programming SIMATIC Step-7 Blocks
Contents of DB20
The contents of the DB20 are used for the FC7 (see Figure 9-24):
In the variable table, add the following entries for flag words MW100 etc (see
Figure10-1).
Then load all programmed blocks into the CPU by clicking the "Download"
button.
word 112 (MW 112). Memory word MW112 can be taken from variable table
VAT_1 (memory word MW112 if MW200 = 110, refer to Fig. 10-1).
CU230_Modbus_V1_1_en.doc
The frequency setpoint and actual value are normalized so that 4000(Hex)
corresponds to 50 Hz. The highest value that should be sent is 7FFF. The
normalization frequency (reference frequency) can be changed in P2000 (standard
value, 50 Hz).
The MODBUS function code 06 <SEND data> can only send a 16-bit word. The
“SEND address” is listed in various registers that are used in “MW190” (refer to Fig.
10-3).
Application description
Controlling the drive
VAR-Table:
This table will show the values when the inverter has stopped (Fig. 10.1)
Activate values
MODBUS Register
Number for
SEND/RECEIVE
Application description
Controlling the drive
VAR-Table:
This table will show the values when the inverter is running (Fig. 10.2)
„SEND“ or „RECEIVE”
are Active
Monitoring the
telegramms
ERROR Code
MODBUS used the registers 40100 and above, see Operation Manual Chapter 6.2
For the “SEND” operation the register address has to be entered in “MW200”
For the “RECEIVE” operation the register address has to be entered in “MW190”
In this example:
Copyright © Siemens AG 2009 All rights reserved
– For the “SEND” Main setpoint”, the register address to enter has to be 100
[101-1]
– For the “RECEIVE” “Staus-word”, the register address to enter has to be
109 [110-1]
– For the “RECEIVE” “Main actual value”, the register address to enter has
to be 110 [111-1]
• The value of the “Controlword” or the “Main Setpoint”, depends of the “register
address”, are entered in “MW100”
• The value of the “Statusword” or the “Main actual value”, depends of the
register address, are displayed in “MW110” or “MW112”
Application description
Controlling the drive
Assigning the MODBUS registers to the paramemeters of the CPU230P-2 HVAC (Fig10.3)
10.3 Statusword 1
The MODBUS Statusword 1 (Figure 10-6)
Copyright © Siemens AG 2009 All rights reserved
CU230_Modbus_V1_1_en.doc
11 References
11.1 Reference data
This list is in no way complete and only reflects a selection of suitable references.
Table 11-1
Subject area Title
\1\ Documentation SINAMICS G120
\2\ Application Function block (FC14) to control a drive inverter via
MODBUS-DP
\3\ Application Reading and writing parameters of the frequency
inverters SINAMICS G120/G120D, ET200S FC and
Copyright © Siemens AG 2009 All rights reserved
11.2 History
Table 11-2 History
Version Datum Change
V1.0 April 2009 First edition
V1.1 January 2010 reviewe chapter 2.4