Introduction to Micromaste Micromasterr MM420 (1 (1)
SIMATIC S7
Date: File:
Siemens AG 2005. All rights reserved.
14.10.2005 PRO1_10E.1
Co n t en t s Object Objective ives s
SITRAIN Training for Automation and Industrial Industrial Solutions
Pag e ...... ......... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... .....
2
Princi Principle ple of an Invert Inverter er ...... ......... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ..... ..... ...... ...... ...... ..... Overview: Overview: Standard Standard Drives ............ ................. .......... .......... .......... ........... ........... .......... .......... .......... ........... ........... .......... .......... .......... .......... ........... ........... .......... .......... .......
3 4
Communicat Communication: ion: PROFIBUS PROFIBUS DP ........... ................ ........... ............ ........... .......... .......... ........... ........... .......... ........... ........... ........... ........... ........... ........... ........... ........... .....
5
Drive Drive ES (= Engine Engineeri ering ng System System)) ...... ......... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ..... .. BOP (Basic (Basic Operator Operator Panel) Panel) Standard Standard Operator Operator Panels Panels ...... ......... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... ...... .....
6 7
Keys on the Operator Operator Panel ............ ................. .......... ........... ........... .......... .......... .......... ........... ........... .......... .......... ........... ............ ............ ........... .......... .......... ........... ........ .. PROFIBUS PROFIBUS Communicat Communications ions Module: Module: Setting Setting the Address Address ........... ................ .......... .......... .......... ........... ............ ............ ............ ............ ........ ..
8 9
Exercise 1: 1: Reset Reset to Factory Factory Default Default ........... ................. ........... ........... ........... .......... .......... ........... ............ ........... .......... .......... .......... ........... ............ ............ .......... ....
10
Exercise 2: 2: Using Using the the BOP BOP as as Command Command Source Source ........... ................. ........... .......... .......... .......... ........... ........... .......... .......... .......... .......... .......... ......... ....
11
Exercise 3: 3: Setting Setting the Comma Command nd Source Source to PROFIB PROFIBUS, US, Ramp-up Ramp-up Time, Time, Ramp-dow Ramp-down n Time..... Time.......... .......
12
Exercise 4: 4: Linking Linking Micromaste Micromasterr to PROFIBUS PROFIBUS DP ........... ................. ........... ........... ........... ........... ........... ........... ........... .......... ........... ............ ........ ..
13
Exercise xercise 5: Function Function Test - Micromaste Micromasterr .......... ............... ........... ............ ........... .......... .......... .......... ........... ............ ............ ........... ........... ............ ........... ......... ....
14
If You You Want Want to Know More
15
........... ................ .......... .......... .......... ........... ........... .......... ........... ............ ............ ........... ........... ............ ........... .......... .......... ........... ............ ......... ...
Simple Simple S7 S7 Program Program for Controlling Controlling the Drive
.......... ................ ........... .......... .......... ........... ........... .......... ........... ............ ............ ............ ........... .......... ........ ...
16
Micromaster Micromaster MM420: MM420: Control Control Word
.......... ................ ........... .......... .......... ........... ............ ............ ........... .......... ........... ........... ........... ............ ........... .......... .......... .......
17
Micromaster Micromaster MM420: MM420: Status Status Word
............ ................. .......... .......... .......... ........... ........... .......... .......... ........... ............ ............ ........... .......... ........... ........... .......... ....... ..
18
Digital Digital Control Control Signals Signals OFF1, OFF1, OFF2, OFF3
........... ................. ........... ........... ........... .......... ........... ............ ........... .......... .......... .......... ........... ........... .......... .....
19
Selecting Selecting the Command Command Source Source and Setpoint Setpoint Channel Channel .......... ............... .......... ........... ............ ........... .......... .......... .......... .......... .......... ........... ........
20
SITRAIN Training for Automation and Industrial Solutio ns
Page 1
ST-PRO1 Introducti Introduction on to Micromaster Micromaster (1)
Objectives Upon comple completion tion of the chapte chapterr the parti participa cipant nt will .. ... ...
understand the principle of an inverter
…
be able to reset the inverter to factory defaults
...
be able to op operate the BOP st standard operating panel
...
be able to set basic parameters using the Basic Operator Panel (BOP)
…
be able to monitor and control the Micromaster
SIMATIC S7 Siemens AG 2005. All rights reserved.
SITRAIN Training for Automation and Industrial Solutio ns
Date: File:
14.10.2005 PRO1_10E.2
Page 2
SITRAIN Training for Automation and and Industrial Solutions
ST-PRO1 Introducti Introduction on to Micromaster Micromaster (1)
Principle of an Inverter Infeed (Rectifier)
DC link
Power module (Inverter)
Three-phase mains system such as 3 AC, 400V, 50 Hz
Induction motor Inverter
U
Variable speed
U t
U t
SIMATIC S7
Date: File:
Siemens AG 2005. All rights reserved.
t
SITRAIN Training for Automation and Industrial Solutions
14.10.2005 PRO1_10E.3
Direct On-line Operation
Three-phase AC motors (here: induction motors) can be operated directly on the three-phase mains system. They are switched on and off by means of a contactor (= relay for high currents). For example: a pump for a water storage tank.
Motor Starter
To achieve a smooth start-up, a reduced voltage starter (= motor starter) is frequently used. After start-up, the motor is then operated directly on the mains. For example: the drive of an escalator.
Inverter
If the motor speed is to be variable, an inverter is used. For example: the drive of a container crane. Some applications require a precise adherence to a predefined speed. This is frequently connected to positioning tasks. These are then servo drives. In simple terms, servo drives are used everywhere where movement used to be carried out manually. For example: machine tools, packaging machines, robots.
The Way it Works
With a rectifier circuit, the three-phase current of the public supply system is rectified. This results in a DC voltage that is buffered by capacitors (DC link). A power module with transistors generates a three-phase current with variable frequency and voltage from this DC voltage. Variable voltage? The motor represents an inductive resistance for the current flow. With rising frequency the inductive resistance increases. For that reason, the inverter must also increase the output voltage proportional to the output frequency.
Configuration
It is possible to connect several power modules for several motors to a rectifier (such as SIMODRIVE 611, MASTERDRIVES).
Rectifier
If a rectifier circuit with transistors instead of diodes is used then electrical energy can be fed back into the system during ramping down.
SITRAIN Training for Automation and Industrial Solutio ns
Page 3
ST-PRO1 Introduction to Micromaster (1)
Overview: Standard Drives
Application example: Controlled pumps and fans in an air conditioner
MICROMASTER 4 Inverter (here the different sizes with a performance of about 0.1 to 90 kW)
SIMATIC S7
Application example: Conveyor belt
Date: File:
Siemens AG 2005. All rights reserved.
14.10.2005 PRO1_10E.4
SITRAIN Training for Automation and Industrial Solutions
Categorization
Standard drives are used for applications that only require a low to medium dynamic as far as speed control is concerned. Many applications in the past used to be driven with three-phase motors connected directly to the mains. In the 90s, inverters became so economical that the advantages of a speedcontrolled drive could be utilized in many areas (energy savings in the partialload operation, smooth ramp-up and controlled ramping down, quality improvement in production).
Design
The MICROMASTER inverters are now in the fouth generation. They are "Stand-Alone" devices. That is, the inverter is complete and is connected between the mains and the motor. The MICROMASTER 4 inverter family comprises several versions: MICROMASTER 420: for simple control requirements such as pumps and fans. MICROMASTER 440: for demanding control requirements (dynamic and precise speed control). MICROMASTER 410: for the simplest requirements with only a limited ability to parameterize. MICROMASTER 411: the integration of motor and converter (= COMBIMASTER). The inverter is located in a special housing piggy-backed on the motor.
Appl icati ons
• • • • •
Pumps and fans (for heating, air conditioning, ventilation, chemistry, foodstuffs ...) Conveyor belt systems (for packages, baggage, mail) Automatic doors ((house) entrances, elevator doors, garages) Washing machines, dryers and ironing machines (industrial field) Car washes ...
SITRAIN Training for Automation and Industrial Solutio ns
Page 4
ST-PRO1 Introduction to Micromaster (1)
Commun ication: PROFIBUS DP
PROFIBUS modul e
SIMATIC S7
Date: File:
Siemens AG 2005. All rights reserved.
SITRAIN Training for Automation and Industrial Solutions
14.10.2005 PRO1_10E.5
Field Bus
A field bus connects distributed sensors and actuators (such as, valves, light barriers, measuring devices, drives, operator control panels) with the central PLC. PROFIBUS DP is a manufacturer-independent, open field bus. PROFIBUS has been standardized and continuously further developed by the PNO (Profibus User Organization) since 1990.
Master-Slave
The master (usually a PLC with a PROFIBUS interface module, such as, S7-315-2 DP) controls the data communication on the bus. Slaves only send data when they are prompted by the master. That way, no collision results between two senders.
Cyclical Range
The slaves are cyclically (= one after the other) supplied with process data by the master and their process data is scanned. In Drives, process data are, for example, • speed setpoint, switch-on signals from the master or • actual speeds, error signals from the drive. The data telegrams consist of 2 to 16 words (á 16 bit). Cycle times lie between about 2 to 20 ms.
Event-driven Range As well, there is often the need to read or change the parameters of a drive. This occurs (in today‘s applications) only when prompted. The cyclic operation is then briefly interrupted and a longer data telegram with up to 117 words is sent. Master Class 2
The "normal“ master is called Master Class 1. For commissioning, you can also connect a PC or PG (= SIMATIC programming device) as a Master Class 2. Independent of the actual data communication, the Master Class 2 can access the drives.
PROFIBUS Address
The minimum requirement for commissioning the PROFIBUS option module is the setting of the PROFIBUS address.
SITRAIN Training for Automation and Industrial Solutio ns
Page 5
ST-PRO1 Introduction to Micromaster (1)
Drive ES (= Engineering Sys tem)
Drive ES Basic
Drive ES SIMATIC
Drive ES Graphic
Drive ES PCS7
SIMATIC S7
Date: File:
Siemens AG 2005. All rights reserved.
14.10.2005 PRO1_10E.6
SITRAIN Training for Automation and Industrial Solutions
Software
Drive ES is an (chargable) option software as an add-on to the SIMATIC Manager.
Drive ES Basic
Enables you to integrate the drives as objects in the SIMATIC Manager. They then appear in the project tree, like for example, SIMATIC CPUs. In this manner, the commissioning software of the drives is then also started.
Drive ES Graphic
Exclusively for MASTERDRIVES and SIMOREG DC-MASTER. Is used for user-friendly, graphic assignment of internal signal sequences and available function blocks.
Driv e ES SIMATIC
This package contains STEP 7 Block Libraries (= Data and function blocks) for user-friendly configuration of communication using PROFIBUS DP.
Driv e ES PCS7
This package contains faceplates for user-friendly configuration of the process control system PCS7.
Starter
The "STARTER" commissioning software for drives supports the user in: •
parameter assignment
•
commissioning
•
diagnosis
•
the service of MICROMASTER 4.
STARTER can be executed as stand alone. The tool is, however, also integrated in the Drive ES configuration program from Totally Integrated Automation.
SITRAIN Training for Automation and Industrial Solutio ns
Page 6
ST-PRO1 Introduction to Micromaster (1)
BOP (Basic Operator Panel) Standard Operator Panels BOP (= Basic Operator Panel)
SDP (= Status Display Panel)
Setting parameters (changeable parameters):
SIEMENS SIEMENS
5. 00 I O
<>
Fn
5
Jog
P
6
MICROMASTER 440
Index of a parameter (sub-parameters):
MICROMASTER 440
Parameter keypad for easy commissioning or changing individual parameters
As delivered from factory LED Status display
SIMATIC S7
Date: File:
Siemens AG 2005. All rights reserved.
SDP
Monitoring parameters:
SITRAIN Training for Automation and Industrial Solutions
14.10.2005 PRO1_10E.7
The standard version of the MICROMASTER is fitted with the SDP (= Status Display Panel). The MICROMASTER is already parameterized in such a way that it can be operated through the terminal strip. The SDP has a status indicator with a green and yellow LED (16 different messages)
BOP
The BOP (= Basic Operator Panel) can be ordered as an option. It is inserted instead of the SDP – temporarily for commissioning or long-term. Available functions are: •
LCD display with 5-digit 7-segment display and unit symbols (Hz, min-1, V, A, kWh)
•
Access to all parameters up to Acess Level 3 (Expert)
Parameter Lis t
Unlike a PLC controller (SIMATIC), drives are not programmed. No program is written. Settings are made in parameters. The basic program in the digital drive is fixed and is called firmware. By assigning parameters, the inverter is adapted to the task.
Indexed Parameter
Many parameters contain sub-parameters. Parameters with similar functions are often grouped there.
Monitoring Parameters
Some parameters are only used to display values. So that you can differentiate them from the others at first glance, an "r" (= read only) is placed in front of them instead of a "P".
Trigger Parameters
Some parameters can only be changed from 0 to 1. An internal action in the MICROMASTER is usually triggered with this, for example, Reset to Factory Default.
SITRAIN Training for Automation and Industrial Solutio ns
Page 7
ST-PRO1 Introduction to Micromaster (1)
Keys on the Operator Panel Start the converter with parameterized ramp-up time Bring the converter to a standstill with parameterized ramp down rate. Press twice and the converter coasts to a standstill. Changes the direction of rotation Motor starts and rotates at the preset jog frequency. Motor rotates as long as the button remains pressed Parameter access. Is used to select the parameter number and to accept the value Increase parameter number or value
Decrease parameter number or value This key has a series of functions: - Roll function to display the 5 most important values - More exact setting of parameters, e.g. decimal places - Jump to Parameter 0000. The display shows r0000
SIMATIC S7
Date: File:
Siemens AG 2005. All rights reserved.
Ac cess Levels
Command Source
Setpoint Source
SITRAIN Training for
14.10.2005 PRO1_10E.8
SITRAIN Training for Automation and Industrial Solutions
For simple applications, only a few parameters have to be changed. For complex applications, an "exotic" parameter may be needed from time to time. For that reason, access levels were established in parameter P003: •
Level 1 = Standard:
Only the 17 most important parameters are displayed
•
Level 2 = Extended:
In this level, additional parameters are visible for the input and output terminals, as well as for communication through field bus or for example, for the setpoint channel
•
L ev el 3 = Ex per t:
Here you have access to all necessary parameters. For the MICROMASTER, this is about 600 parameters
•
Level 4 = Service:
Some specific parameters are only meant for authorized service personnel. The level is protected by codeword.
Commands are: on signal, off signal, jog, and acknowledge fault messages, for example. On the training unit, you can select the following sources using parameter P0700: •
P0700= 1
BOP operator panel
•
P0700 = 2
Switches S1-S3 on the demo case
•
P0700 = 6
From the CPU through PROFIBUS
Setpoint is, the inverter frequency, for example. On the training unit, you can select the following sources using parameter P1000: •
P1000 = 1
BOP operator panel with the higher/lower buttons (only with r0000)
•
P1000 = 2
Potentiometer on the demo case
• nsP1000 = 6 Automation and Industrial Solutio
ST-PRO1 From the CPU through PROFIBUS Page 8 Introduction to Micromaster (1)
PROFIBUS Communications Module: Setting the Address
Switch number
1
2
3
4
5
6
7
Add to addr ess
1
2
4
8
16
32
64
Example 1: Address = 6
off
on
on
off
off
off
off
Example 2: Address = 88
off
off off
on
on
off on
Some addresses have a “particular“ meaning Address
Meanin g
0
PROFIBUS address is specified by Parameter P0918
1 to 125
valid PROFIBUS address
126, 127
invalid PROFIBUS address
SIMATIC S7
Date: File:
Siemens AG 2005. All rights reserved.
14.10.2005 PRO1_10E.9
SITRAIN Training for Automation and Industrial Solutions
At ten ti on
The minimum requirement for commissioning the PROFIBUS communications module is the setting of the PROFIBUS address.
Setting
You can set the PROFIBUS address in two ways:
Note
-
through the 7 DIP switch on the module or
-
through Parameter P0918
To change the DIP switch, the inverter must be in a switched off state (no voltage) (for already mounted communications module). A change to the DIP switch only takes effect after the PROFIBUS module is restarted. The restart must be triggered by a Power OFF / Power ON. This is true for an inverter supply as well as through a separate 24V supply.
SITRAIN Training for Automation and Industrial Solutio ns
Page 9
ST-PRO1 Introduction to Micromaster (1)
Exercise 1: Reset to Factory Default Parameter
Value
Comment
P0010
30
Reset to Factory Default
P0970
1
End
P0010 = Commissioning filter P0970 = Reset to factory defaults P3900 = End of quick commissioning
S1 = Dri ve On/Off S2 = Reverse direction of rotation S3 = Acknowledge fault H1 = Fault (is lit when there is no fault) P1 = Potentiometer for the frequency/speed
SIMATIC S7
Date: File:
Siemens AG 2005. All rights reserved.
Task
14.10.2005 PRO1_10E.10
SITRAIN Training for Automation and Industrial Solutions
First of all, carry out a Reset to Factory Default to establish a defined initial state. In the factory default, the inverter is already functional and can be controlled using binary inputs.
What to Do
1. Change the parameter P0010 to the value 30 2. Change the parameter P0970 to the value 1 3. Wait until the P---- indicator "disappears" on the display 4. Test the inverter using the switches and potentiometer on the demo case
Note
If parameter P0010 is set to the value 1, carry out a quick commissioning of the inverter and the motor. By selecting quick commissioning, only the most frequently required parameters are displayed. This simplifies operation because only the most important motor (characteristic) data are entered. The end of quick commissioning is completed with the parameter P3900: •
P3900 = 1
Reset to factory default and motor data calculation
•
P3900 = 2
Only motor data calculation
•
P3900 = 3
Reset the parameter assignments of input and output settings
This procedure is also described in the "Getting Started" Guide that is included with every unit. We will not practice the quick commissioning in this exercise.
SITRAIN Training for Automation and Industrial Solutio ns
Page 10
ST-PRO1 Introduction to Micromaster (1)
Exercise 2: Using the BOP as Command Source Parameter number
Value
Comment
P0700
1
Select the command source
P1000
1
Select the frequency setpoint
Reverse direct ion
ON
I
<>
Fn
OFF1
O
Jog
P
Increase frequency
5
Decrease frequency
6
Jog operation (Set-up operation )
SIMATIC S7
Date: File:
Siemens AG 2005. All rights reserved.
SITRAIN Training for Automation and Industrial Solutions
14.10.2005 PRO1_10E.11
Task
The drive is to be operated from the BOP operator panel.
What to Do
1. Change the parameter P0700 to the value 1 2. Change the parameter P1000 to the value 1 3. Test the inverter using the buttons on the BOP
Notes
Pressing the higher/lower keys only affects the speed in r0000 (press Fn key and then P key). Otherwise they are only used for assigning parameters. Changing the speed using the "faster" signal or the "slower" signal is called motor potentiometer (MOP).
Jo g Key:
In certain circumstances, it is necessary to control the drive independent of the current inverter setpoint or the normal ON commands. If, for example, the control signals come from a SIMATIC S7-300 by default, then the control must take place "by hand" in a service case or when setting the drive to a new position. The key only functions in the ready state. That is, the signal OFF1 = 1. The frequency is 5 Hz in the factory default.
Fn Key:
With the "Fn" (Function key) key, you can carry out the following actions •
acknowledge alarm and fault messages when the cause of the error no longer exists
•
jump between decimal positions in parameter changes
•
display of important inverter data, such as, voltage of DC current link (Roll function when "Fn" key is pressed for 2 seconds).
SITRAIN Training for Automation and Industrial Solutio ns
Page 11
ST-PRO1 Introduction to Micromaster (1)
Exercise 3: Setting the Command Source to PROFIBUS, Ramp-up Time, Ramp-down Time If the PROFIBUS address was set from the hardware side, Control P0918 can be dispensed with.
Parameter n umber
Value
P0003
2
Expanded parameter access
P0700
6
Signal source PROFIBUS
P1000
2
Setpoint from Potentiometer / Terminal
P0918
6
PROFIBUS address MM420
P1120
2.00
Ramp-up time 2 seconds
P1121
2.00
Ramp-down time 2 seconds
X
Comment
Setpoint before ramp-function generator :
Setpoint after ramp-function generator: Internally generated ramp-function
50 Hz
Setpoint frequency
Setpoint frequency 50 Hz
t
SIMATIC S7
P1120
Date: File:
Siemens AG 2005. All rights reserved.
14.10.2005 PRO1_10E.12
P1121
t
SITRAIN Training for Automation and Industrial Solutions
Task
The drive is to be assigned parameters in such a way that the control commands are transmitted from the CPU through PROFIBUS.
What to Do
Set all parameters as shown in the slide.
Diagnosis
The tri-colored LED is located on the front of the PROFIBUS-DP interface card. The following table explains possible LED displays and error causes and helps you with the following exercise:
Off
no power
Red flashing
invalid PROFIBUS address (126/127 is invalid) or hardware/software error
Red on
temporary state during startup or new communication configuration; if constant state, then PROFIBUS interface or inverter defective
Orange flashing
communication to inverter built-up; no connection to PROFIBUS, or PROFIBUS connector not inserted or faulty or PROFIBUS master is switched off
Orange on
communication link to converter and connection PROFIBUS has been established but no cyclic data exchange is taking place.
Green flashi ng
cyclic process data exchange exists, but setpoints are invalid (control word = 0, because S7 master is in the "STOP" state, for example:
Green on
cyclic process data exchange is built-up.
Ramp-up Time
Internally, the setpoint value changes according to a step function. To achieve a controlled ramp-up transition, a ramp-function generator is integrated, that generates a ramp-type setpoint for the controller.
SITRAIN Training for Automation and Industrial Solutio ns
Page 12
ST-PRO1 Introduction to Micromaster (1)
Exercise 4: Linking Micromaster to PROFIBUS DP
SIMATIC S7
Date: File:
Siemens AG 2005. All rights reserved.
SITRAIN Training for Automation and Industrial Solutions
14.10.2005 PRO1_10E.13
Task
Configuration and parameter assignment of the Micromaster 420 as well as connection to the PROFIBUS DP network.
What to Do
1. Link the MM420 to the PROFIBUS mastersystem. You will find the MM420 in the Hardware Catalog Profile "Drive ES" SIMOVERT MICROMASTER 4 MICROMASTER 420 (see slide) 2. Assign parameters to the MM420 as shown in the slide: -
Device version V1.0 or V1.1 (depending on the available device type, check type label on the MM420) PROFIBUS Address: 6
-
PPO Type: PPO Type 3.PZD 2/2
-
I / O Address 56 (Length 2 words each)
3. Save, compile and download the configuration to the CPU. Note
Through the Reset to Factory Default, Parameter P2040 is set to = 0, among other things. This parameter defines a telegram off time between 0 and 65,535 ms, after which a fault message is triggered on the MM420. When t = 0, a possibly running motor is therefore not switched off with CPU – Stop or DPMaster failure. The setting of Parameter P2040 is only possible in Expert mode P0003 = 3. Check and modify - if necessary – Parameter P2040 to a value greater than zero. You will find additional information in the Parameter List for the MM420.
SITRAIN Training for Automation and Industrial Solutio ns
Page 13
ST-PRO1 Introduction to Micromaster (1)
Exercise 5: Function Test - Micromaster
Actual Value (Hexa) Act. Value (Decimal) Act.Val.(Frequency) Act.Val.under rated load (rpm) 4000
16384
50
1350
3000
12288
37.5
1,012.5
2000
8192
25
675
1500
5376
16.41
443.1
1000
4096
12.5
337.5
500
1280
3.91
105.57
SIMATIC S7
Date: File:
Siemens AG 2005. All rights reserved.
14.10.2005 PRO1_10E.14
SITRAIN Training for Automation and Industrial Solutions
Task
You are to input the setpoint speed to the Micromaster through the potentiometer. Jog operation (5Hz) is also possible. Test both possibilities.
What to Do
1. In the SIMATIC Manager, open the project called"TIA_PRO1_Participant" with the S7 program "C10_Micromaster" . Copy the blocks (FC 42, OB 86, VAT "Control_Micromaster") into your current S7 project. 2. Call the FC 42 function ("FC_MM420") in OB 1 and also download the OB 86 block into the CPU. After a successful CPU restart, all components should be ready to go and it should be possible to control the Micromaster through the PROFIBUS. 3. On the TP170B, call the MM420 screen and test the drive by operating the buttons. 4. At the same time check the actual speed value (IW 58) using the "Monitor/Modify Variables" test function. To do so, open the Variable Table "Control_Micromaster" located in the Blocks folder. Establish a connection to your CPU using the menu options PLC Connect to Configured CPU and switch the Variable table online using the "Glasses".
Note
You will find a printout of the sample program used along with an explanation at the end of this chapter and in the Solution Suggestions.
At ten ti on
The Micromaster MM420 switches on with an edge change from 0 1 from the On/Off bit (Bit 0 in the control word). For that reason, when you assign the control word, you have to pay attention to the following sequence: 1. Control word W#16#047E 2. Control word W#16#047F
SITRAIN Training for Automation and Industrial Solutio ns
Page 14
ST-PRO1 Introduction to Micromaster (1)
If You Want to Know More
SIMATIC S7
Date: File:
Siemens AG 2005. All rights reserved.
Note
14.10.2005 PRO1_10E.15
SITRAIN Training for Automation and Industrial Solutions
The following pages contain either further information or are for reference to complete a topic.
SITRAIN Training for Automation and Industrial Solutio ns
Page 15
ST-PRO1 Introduction to Micromaster (1)
Simple S7 Program for Controlling the Drive Control word for Motor ON: Hex Bi t Function F
7
4
0
SIMATIC S7
Date: File:
Siemens AG 2005. All rights reserved.
General
14.10.2005 PRO1_10E.16
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
ON/OFF 1 OFF 2 OFF 3 Pulse Enable Ramp-function Gen.Enable Ramp-function Gen. Start Setpoint Enable Fault Acknowledge JOG right JOG left Control from PLC Reverse --Motor Potentiometer up Motor Potentiometer down Command Data Set Bit 0
SITRAIN Training for Automation and Industrial Solutions
Since the actual value for the speed is specifed through the potentiometer on the MM 420 Demo case, it is sufficient to only transfer the control word. With the PPO Type 3, you can carry out a consistent data transfer with Load and Transfer instructions or with the "MOVE" Box.
Motor ON (NW 1)
Transferring takes place when "Motor_On_HMI" has signal "1". This is a bit memory that is set through the "On" button in the "MM420" screen on the touch panel and is reset through the "Off" button. On the right side of the slide you can see the colored bits of the control word that are set by the program.
Moto r OFF (NW 2)
Bit 0 of the control word is set to zero. The motor slows down with the parameterized lag time.
Jog Motor Right (NW 3)
Instead of bit 0, bit 8 is set for "JOG right". As long as the "Jog right" button is pressed on the touch panel, the motor moves to the right. In the momentary parameter assignment of the MM 420, a frequency of 5 Hz is set, that can also be changed through the parameter P1058.
Jog Motor Left (NW 4)
Instead of bit 0, bit 9 is set for "JOG left". As long as the "Jog left " button is pressed on the touch panel, the motor moves to the left. In the momentary parameter assignment of the MM 420, a frequency of 5 Hz is set, that can also be changed through the parameter P1059.
Note
You will receive additional detailed information on the various PPO Types, structure of the control word etc., in Programming Course 2.
SITRAIN Training for Automation and Industrial Solutio ns
Page 16
ST-PRO1 Introduction to Micromaster (1)
Micromaster MM420: Control Word Different Control Signals:
Summary:
Binary Signals = Data Bits
16 bits = 1data word Bi t Function
ON/OFF 1
JOG right
JOG left
OFF2
6 digital inputs or fieldbus link eg. Profibus
Reverse
Ac kn ow led ge faul t
“ d l r o w e d i s t u O “
SIMATIC S7
ON/OFF 1 OFF 2 OFF 3 Pulse Enable Ramp-function Gen. Enable Ramp-function Gen. Start Setpoint Enable Fault Acknowledge JOG right JOG left Control from PLC Reverse --Motor Potentiometer up Motor Potentiometer down Command Data Set Bit 0
Display of Control Word in r0054
Date: File:
Siemens AG 2005. All rights reserved.
Control Word
R E T S A M O R C I M
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
14.10.2005 PRO1_10E.17
I n t h e i n t e r n a l s e q u e n c e c o n t r o l s y s t e m M i c r o m a s t e r
SITRAIN Training for Automation and Industrial Solutions
The control word is a collection of 16 internal binary signals that have to be available for the internal sequence control system / closed-loop controller of the inverter. When inverter and SIMATIC S7 are linked with one another using Profibus, the control word can be ‘made available‘ using an associated output word, such as QW56. You will find a possible example in FC42. The control word (bits 0 to 10) conforms to the Standard PROFIdrive Profile. Bit 11 to 15 is MICROMASTER specific.
ON/OFF1
To switch on, an edge change is necessary and OFF2 and OFF3 may not be active. During switching off, the motor brakes on the braking ramp of the rampfunction generator and the inverter then switches off.
OFF2
The motor ramps down without braking (coasts to a standstill) and the inverter switches off immediately.
OFF3
The motor brakes with the back edge of the out signal. The inverter remains on.
SITRAIN Training for Automation and Industrial Solutio ns
Page 17
ST-PRO1 Introduction to Micromaster (1)
Micromaster MM420: Status Word Different Control Signals:
Summary:
Binary Signals = Data Bits
16 bits = 1 data word Bi t Function
Drive ready to run 3 digital outputs or Fieldbus link eg. Profibus
Drive fault
Drive warning
Motor Overload
“
d l r o w e d i s t u O “
SIMATIC S7
Drive ready Drive ready to run Drive Running Drive fault active OFF2 active OFF3 active ON inhibit active Drive warning active Deviation setpoint/act. value PZD control Max. Frequency reached Warning: Motor current limit Motor holding brake active Motor overload Motor runs right Inverter overload
Display of Status Word in r0052
Date: File:
Siemens AG 2005. All rights reserved.
Status Word
R E T S A M O R C I M
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
14.10.2005 PRO1_10E.18
F r o m t h e i n t e r n a l s e q u e n c e c o n t r o l s y s t e m M i c r o m a s t e r
SITRAIN Training for Automation and Industrial Solutions
The status word is a collection of 16 internal binary signals that are made available from the internal sequence control system / closed-loop controller of the inverter. When inverter and SIMATIC S7 are linked with one another using PROFIBUS, the status word can be monitored and analyzed using an associated input word such as IW56. The status word (bits 0 to 10) conforms to the Standard PROFIdrive Profile. Bit 11 to 15 is MICROMASTER specific.
Switch-on Inhibit
This status is reached after an error elimination and acknowledgement of a drive fault. A subsequent switching on is only possible through OFF1 and then ON.
Warning, Message
Messages (bit 13, bit 15) and Warnings (bit 11).
SITRAIN Training for Automation and Industrial Solutio ns
Page 18
ST-PRO1 Introduction to Micromaster (1)
Digital Control Signals OFF1, OFF2, OFF3 OFF1 = 0 ! ⇒
n
Motor brakes on the braking ramp of the ramp-function generator. Inverter then switches off. Sequence
t
1 0
OFF2 = 0 !
⇒
n
Motor ramps down without braking (coast to standstill). Inverter switches off immediately.
ON/OFF1 t
1 0
OFF2 t
1 0 t
t
OFF3 = 0 ! n
⇒
OFF3
Motor brakes at the ramp for OFF3 (P1135). Inverter remains on.
ON/OFF1 is edge triggered for switching on and is only accepted when OFF2 and OFF3 are not active!
t
SIMATIC S7
Date: File:
Siemens AG 2005. All rights reserved.
14.10.2005 PRO1_10E.19
SITRAIN Training for Automation and Industrial Solutions
General
To control the drive using PROFIBUS, several definitions have to be made with regards to the control signals OFF1 to OFF3. You have become familiar with one possible example in FC42 "FC_MM420". You will receive more detailed information on the topics of control word and status word, PPO Types, cyclic and acyclic data transmission etc., in Programming Course 2.
Control Signals
Control Signal OFF1 = 0: Motor brakes on the braking ramp of the ramp-function generator and the inverter then switches off. Control Signal OFF2 = 0: Motor ramps down without braking (coasts to a standstill) and the inverter switches off immediately. Control Signal OFF3 = 0: Motor brakes at the ramp for OFF3 that can be set through Parameter P1135. The inverter remains on.
Sequence
The signal for switching on the drive - ON/OFF1 - is edge triggered and is only accepted when the signal OFF2 and OFF3 are not active.
SITRAIN Training for Automation and Industrial Solutio ns
Page 19
ST-PRO1 Introduction to Micromaster (1)
Selecting the Command Source and Setpoint Channel
Command Source
USS Bus using RS232 PC-Inverter mounting set
BOP/AOP keys
1
Digital inputs
2 5 6
Communications module
Fixed frequencies
Control word Bits 0 to 15
4 USS from BOP Link
FF1 ... FF2 ... FF3 ...
P0700 =
Ramp-function Generator
Add it io nal setp oi nt
Status word Bits 0 to 15
... ... ...
Control reference frequency: P2000=50 [Hz]
Setpoint frequency
Motor potentiometer
1
Analog setpoint
2
Ac tu al frequency
Starter
3 USS from BOP Link
4
Communications module
6
i n t e r n a l s e q u e n c e c o n t r o l s y s t e m M i c r o m a s t e r
P1000 =
Setpoint Source
SIMATIC S7
Date: File:
Siemens AG 2005. All rights reserved.
Command Sources
SITRAIN Training for Automation and Industrial Solutions
14.10.2005 PRO1_10E.20
The representation shown in the slide only covers the most important components of the setpoint channel as well as the selection of the command source. For the complete representation also see the function diagrams at the back of the Micromaster Parameter List. In our exercise example, the following definitions were made that you monitored using a Variable table: •
Status word:
IW56
"Status_Word_MM420"
•
Control word
QW56
"Control_Word_MM420"
•
Actual frequency
IW58
"Actual_Speed_MM420"
•
Setpoint frequency QW58
"Setpoint_Speed_MM420"
Reference Frequency The reference frequency of 50 Hertz can be controlled through Parameter P2000 (P2000 = 50Hz). Starter Software
The "Starter" commissioning and diagnostic software enables a user friendly configuration and monitoring of Micromaster parameters.
SITRAIN Training for Automation and Industrial Solutio ns
Page 20
ST-PRO1 Introduction to Micromaster (1)