s7 200smartussc
s7 200smartussc
Communication with
SINAMICS V20
Siemens
Industry
Online
Support
Legal information
Legal information
Use of application examples
Application examples illustrate the solution of automation tasks through an interaction of several
components in the form of text, graphics and/or software modules. The application examples are
a free service by Siemens AG and/or a subsidiary of Siemens AG ("Siemens"). They are
non-binding and make no claim to completeness or functionality regarding configuration and
equipment. The application examples merely offer help with typical tasks; they do not constitute
customer-specific solutions. You yourself are responsible for the proper and safe operation of the
products in accordance with applicable regulations and must also check the function of the
respective application example and customize it for your system.
Siemens grants you the non-exclusive, non-sub licensable and non-transferable right to have the
application examples used by technically trained personnel. Any change to the application
examples is your responsibility. Sharing the application examples with third parties or copying the
application examples or excerpts thereof is permitted only in combination with your own products.
The application examples are not required to undergo the customary tests and quality inspections
of a chargeable product; they may have functional and performance defects as well as errors. It is
your responsibility to use them in such a manner that any malfunctions that may occur do not
result in property damage or injury to persons.
Disclaimer of liability
Siemens shall not assume any liability, for any legal reason whatsoever, including, without
limitation, liability for the usability, availability, completeness and freedom from defects of the
application examples as well as for related information, configuration and performance data and
any damage caused thereby. This shall not apply in cases of mandatory liability, for example
under the German Product Liability Act, or in cases of intent, gross negligence, or culpable loss of
life, bodily injury or damage to health, non-compliance with a guarantee, fraudulent
non-disclosure of a defect, or culpable breach of material contractual obligations. Claims for
damages arising from a breach of material contractual obligations shall however be limited to the
© Siemens AG 2019 All rights reserved
foreseeable damage typical of the type of agreement, unless liability arises from intent or gross
negligence or is based on loss of life, bodily injury or damage to health. The foregoing provisions
do not imply any change in the burden of proof to your detriment. You shall indemnify Siemens
against existing or future claims of third parties in this connection except where Siemens is
mandatorily liable.
By using the application examples, you acknowledge that Siemens cannot be held liable for any
damage beyond the liability provisions described.
Other information
Siemens reserves the right to make changes to the application examples at any time without
notice. In case of discrepancies between the suggestions in the application examples and other
Siemens publications such as catalogs, the content of the other documentation shall have
precedence.
The Siemens terms of use (https://support.industry.siemens.com) shall also apply.
Security information
Siemens provides products and solutions with Industrial Security functions that support the secure
operation of plants, systems, machines and networks.
In order to protect plants, systems, machines and networks against cyber threats, it is necessary
to implement – and continuously maintain – a holistic, state-of-the-art industrial security concept.
Siemens’ products and solutions constitute one element of such a concept.
Customers are responsible for preventing unauthorized access to their plants, systems, machines
and networks. Such systems, machines and components should only be connected to an
enterprise network or the Internet if and to the extent such a connection is necessary and only
when appropriate security measures (e.g. firewalls and/or network segmentation) are in place.
For additional information on industrial security measures that may be implemented, please visit
https://www.siemens.com/industrialsecurity.
Siemens’ products and solutions undergo continuous development to make them more secure.
Siemens strongly recommends that product updates are applied as soon as they are available
and that the latest product versions are used. Use of product versions that are no longer
supported, and failure to apply the latest updates may increase customer’s exposure to cyber
threats.
To stay informed about product updates, subscribe to the Siemens Industrial Security RSS Feed
at: https://www.siemens.com/industrialsecurity.
Table of contents
Legal information ......................................................................................................... 2
1 Task ..................................................................................................................... 4
1.1 Overview of the automation task .......................................................... 4
1.2 Sequence control ................................................................................. 5
2 Automation solution .......................................................................................... 6
2.2 Hardware and software components used........................................... 6
2.3 Setup .................................................................................................... 7
3 Functional mechanisms .................................................................................... 8
3.2 USS protocol ........................................................................................ 8
3.3 Communication program ...................................................................... 9
4 Commissioning ................................................................................................ 14
4.1 Installing and wiring the hardware ...................................................... 14
4.2 Downloading the SIMATIC program .................................................. 15
4.3 V20 commissioning ............................................................................ 18
5 Operation .......................................................................................................... 24
© Siemens AG 2019 All rights reserved
These sensors used in the application example are inductive BERO proximity
switches, which will not cause mechanical wear. Working principle: When the
Note permeable material approaches the switch sensing surface, the magnetic field is
subject to decay, causing the change of the output signal of the switch.
• PLC deals with these digital inputs and issues commands to the inverter.
2 Automation solution
2.2 Hardware and software components used
2.2.1 Hardware components
User can order these CDs that contain the following software tools:
2.3 Setup
Note The SINAMICS V20 supports communication with Siemens PLC over USS on
RS485. You can parameterize whether the RS485 interface shall apply USS
© Siemens AG 2019 All rights reserved
protocol. USS is the default bus setting. A screened twisted pair cable is
recommended for the RS485 communication.
Make sure that you terminate the bus correctly by fitting a 120 R bus termination
resistor between the bus terminals (P+, N-) of the device at one end of the bus
and a termination network between the bus terminals of the device at the other
end of the bus. The termination network should be a 1.5 k resistor from 10 V to
P+, 120 R from P+ to N- and 470 R from N- to 0 V. A suitable termination network
is available from your Siemens dealer.
3 Functional mechanisms
3.2 USS protocol
The USS protocol was developed in order to exchange process data between a master and one
or more slave stations on an RS485 bus. Each bus station is identified by a unique bus address.
The STEP7-Micro/WIN SMART Instruction Libraries provide subroutines, interrupt
routines, and instructions to support the USS protocol.
The USS protocol is an interrupt driven application. In the worst case, the receive message
interrupt routine requires up to 2.5 ms to execute. During this time, all other interrupt events are
queued for service after the receive message interrupt routine has been executed. If your
application cannot tolerate this worst case delay, then you may want to consider other solutions
for controlling drives.
Initializing the USS protocol dedicates a S7-200 SMART CPU port for USS communications.
You use the USS_INIT instruction to select either USS or PPI for port 0 or port 1. (USS refers to
the USS protocol for Siemens drives.) When a port is set to use the USS protocol for
communicating with drives, you cannot use the port for any other purpose, including
communicating with an HMI. The second communications port allows STEP 7-Micro/WIN
SMART to monitor the control program while USS protocol is running.
The USS instructions affect all of the SM locations that are associated with Freeport
communication on the assigned port.
© Siemens AG 2019 All rights reserved
The USS subroutines and interrupt routines are stored in your program. The USS instructions
increase the amount of memory required for your program by up to 3050 bytes. Depending on
the specific USS instructions used, the support routines for these instructions can increase the
overhead for the control program by at least 2150 bytes and up to 3050 bytes.
The variables for the USS instructions require a 400-byte block of V memory. The starting
address for this block is assigned by the user and is reserved for USS variables.
Some of the USS instructions also require a 16-byte communications buffer. As a parameter for
the instruction, you provide a starting address in V memory for this buffer. It is recommended that
a unique buffer be assigned for each instance of USS instructions.
When performing calculations, the USS instructions use accumulators AC0 to AC3. You can also
use the accumulators in your program; however, the values in the accumulators will be changed
by the USS instructions.
The USS instructions cannot be used in an interrupt routine.
Before sending a command from the controller to a slave, make sure that you activate the
initialization of the interface of the S7-200 Smart controller. This is achieved using the USS_INIT
block, which among other things fixed the baud rate. The USS_INIT instruction is used to
enable and initialize, or to disable Siemens drive communications. Before any other USS
instruction can be used, the USS_INIT instruction must be executed without errors. The
instruction completes and the "Done" bit is set immediately, before continuing to the next
instruction (see Figure 3-1).
3.3.2 Figure 3-1
© Siemens AG 2019 All rights reserved
An RS485 bus transmission uses the USS protocol via a 2-wire connection between a master
(e.g. CPU ST30) and up to 32 slaves (e.g. SINAMICS V20) It is necessary here to identify each
slave via a unique address between 0 and 31.
This figure shows the description and format of the active drive input. Any drive that is marked as "Active"
is automatically polled in the background to control the drive, collect status, and prevent serial link time-outs
in the drive.
• The F_ACK (Fault Acknowledge) bit is used to acknowledge a fault in the drive.
The drive clears the fault (Fault) when F_ACK goes from 0 to 1.
• The DIR (direction) bit indicates in which direction the drive should move.
• The Drive (drive address) input is the address of the Micro Master drive to
which the USS_CTRL command is to be sent. Valid addresses: 0 to 31
• The Type (drive type) input selects the type of drive. For a Micro Master 3 (or
earlier) drive, set Type to 0. For a Micro Master 4 drive, set Type to 1.
• Speed_SP (speed setpoint) is drive speed as a percentage of full speed. Negative
values of Speed_SP cause the drive to reverse its direction of rotation. Range: -
200.0% to 200.0%.
The inputs of speed: The speed setpoint is a percentage of the full speed, and the full
speed can be set with P2000. Furthermore, the value of P2000<= P1082.
a. P2000 represents the reference frequency for frequency values which are displayed and
transferred as a percentage or a hexadecimal value.
b. P1082 represents the maximum frequency. Set maximum motor frequency at which
motor runs irrespective of the frequency setpoint. The value set here is valid for both
clockwise and anticlockwise rotations.
Detail of speed signal:
a. Hexadecimal 4000H means 100 %==> P2000
b. Real 100.0 means 100% ==> P2000
© Siemens AG 2019 All rights reserved
• Fault indicates the state of the fault bit (0 - no fault, 1 - fault). The drive displays the
fault code. (Refer to the manual for your drive). To clear the Fault bit, correct the cause
of the fault and turn on the F_ACK bit.
• Inhibit indicates the state of the inhibit bit on the drive (0 - not inhibited, 1 - inhibited).
To clear the inhibit bit, the Fault bit must be off, and the RUN, OFF2, and OFF3 inputs
must also be off.
• D_Dir indicates the drive's direction of rotation.
• Run_EN (RUN enable) indicates whether the drive is running (1) or stopped (0).
• Speed is drive speed as a percentage of full speed. Range: -200.0% to 200.0%
• Status is the raw value of the status word returned by the drive.
• Error is an error byte that contains the result of the latest communication request to
the drive. The Iinstructions, topic defines the error conditions that could result from
executing the instruction.
• The Resp_R (response received) bit acknowledges a response from the drive. All
the Active drives are polled for the latest drive status information. Each time the S7-
200 receives a response from the drive, the Resp_R bit is turned on for one scan
and all the following values are updated
© Siemens AG 2019 All rights reserved
Note To clear forbidden positions, make sure you clear the active faults RUN, OFF2,
OFF3 inputs also need be cleared. After error cleared, set F_ACK to clear Fault.
Note It is assumed here that the necessary software has been installed on your
computer and that you are familiar with handing the software.
Furthermore, it is assumed, that STEP7 Micro/WIN SMART has been
installed on the standard Windows PC for operator control.
Note When commissioning the inverter, the connection macro setting is a one-off
setting. Make sure that you proceed as follows before you change the
connection macro setting to a value different from your last setting:
1. Do a factory reset (P0010 = 30, P0970 = 1)
2. Repeat the quick commissioning and change the connection macro
Failure to observe may cause the inverter to accept the parameter settings from
both the currently and the previously selected macros, which may lead to
undefined and unexplainable inverter operation.
However, communication parameters P2010, P2011, P2021 and P2023 for
connection macros Cn010 and Cn011 are not reset automatically after a factory
reset. If necessary, reset them manually.
After changing P2023 setting for Cn010 or Cn011, power-cycle the inverter.
During the power-cycle, wait until LED has gone off or the display has gone blank
(may take a few seconds) before re-applying power.
1.
Install and connect the inverter system, check the following and then power on the inverter.
• Check that all cables have been connected correctly and that all
relevant product and plant/location safety precautions have been
complied with.
• Ensure that the motor and the inverter are configured for the correct
supply voltage.
• Tighten all screws to the specified tightening torque.
2.
Set the 50/60 Hz selection menu. Choose 50Hz or 60Hz depending on in which region or
country the inverter is used. Do a factory reset (P0010 = 30, P0970 = 1)
© Siemens AG 2019 All rights reserved
3.
Perform quick commissioning using the setup menu.
Sub-menu Functionality
Sets nominal motor parameters for
1) Motor data
quick commissioning
Sets macros required for standard
2) Connection macro selection wiring arrangements
Sets macros required for certain
3) Application macro selection
common applications
Sets parameters necessary for
4) Common parameter selection inverter performance optimization
frequency[Hz]
Maximum motor
P1082 frequency[Hz] 50
0.5(without
P1120 Ramp-up time[s]
load)
0.5(without
P1121 Ramp-down time[s]
load)
3-5
Press the “M” button for 2 second to exit quick commission.
4.
Update communication parameters according to the actual application example.
Parameter Description Value
P0003 User access level =3
=6
P2010 USS baud rate (9600bps)
P2000 Reference frequency[Hz] 50
To switch on the inverter with the PLC, observe the following requirements:
Note
• The baud rate of the inverter (P2010) and the PLC program must
be the same.
• The USS address of the inverter and the PLC program must be the
same.
• After parameterization, switch off the power and then restart the inverter and
the PLC.
5 Operation
5.1 Jog reverse
5.1.1 Display
When Jog reverses, switch off I1.0 and I1.6, switch on I1.5.
When you set the input signals as indicated in the Table 5-1, the status changes are shown as
follows:
© Siemens AG 2019 All rights reserved
When you set the input signals as indicated in Table5-2, the status changes are shown as
follows:
© Siemens AG 2019 All rights reserved
6 Appendix
6.1 Service and support
Industry Online Support
Do you have any questions or need assistance?
Siemens Industry Online Support offers round the clock access to our entire service
and support know-how and portfolio.
The Industry Online Support is the central address for information about our
products, solutions and services.
Product information, manuals, downloads, FAQs, application examples and videos –
all information is accessible with just a few mouse clicks:
support.industry.siemens.com
Technical Support
The Technical Support of Siemens Industry provides you fast and competent support
regarding all technical queries with numerous tailor-made offers
– ranging from basic support to individual support contracts. Please send queries to
Technical Support via Web form:
www.siemens.com/industry/supportrequest
© Siemens AG 2019 All rights reserved
Service offer
Our range of services includes the following:
• Plant data services
• Spare parts services
• Repair services
• On-site and maintenance services
• Retrofitting and modernization services
• Service programs and contracts
You can find detailed information on our range of services in the service catalog web
page:
support.industry.siemens.com/cs/sc
Pre-sales Support
Email: [email protected]
Online Support
/3/ V20 manual http://support.automation.siemens.com/WW/view/en/63899889
/4/ Industry Mall- https://eb.automation.siemens.com/goos/WelcomePage.aspx?regionUrl=/d
Siemens DE e&language=en
/5/ S7-200 https://assets.new.siemens.com/siemens/assets/api/uuid:aa045b50-b9f4-
SMART 4e46-a4c4-ca882c5f00ec/version:1573480788/s7-200-smart-system-
System Manual manual-en-us.pdf
/6/ S7-200 SMART https://new.siemens.com/in/en/products/automation/systems/industrial/plc/si
website matic-s7-200-smart.html