Вы находитесь на странице: 1из 16

Data Exchange with MM 440 using Profibus

SIMATIC S7 Date: 26.08.2007


SITRAIN Training for
Automation and Drives
Siemens AG 2004. All rights reserved. File: PRO2_07E.1

Contents Page
Data Exchange with MM 420 using Profibus ..................................................................................... 2
Objectives ........................................................................................................................................ 3
Main Tasks of Master-Slave Communication ................................................................................... 4
Configuring a Profibus DP Master System ........................................................................................ 5
Selecting the Command Source and Setpoint Channel ..................................................................... 6
Exercise 1: Reset to Factory Default ................................................................................................. 7
Exercise 2: Setting the Command Source to Profibus, Ramp-up Time, Ramp-down Time................ 8
Exercise 3: Configuring MM420 on the Profibus Network ................................................................. 9
Exercise 4: Micromaster Test with “Monitor/Modify Variables“ .......................................................... 10
Configuration of the MM420, Example PPO Type 3 .......................................................................... 11
Communication with PPO Type 3 ..................................................................................................... 12
Micromaster MM420: Control Word .................................................................................................. 13
Micromaster MM420: Status Word ................................................................................................... 14
Control Word 1 and Status Word 1 according to PROFIdrive Profile ................................................. 15
Exercise 5: Comunication with Micromaster MM420 (FB44) ............................................................. 16
Drive ES (= Engineering System) ..................................................................................................... 17
Overview of the Starter Commissioning Tool .................................................................................... 18
Offline Configuration of a Drive with the Assistant ............................................................................. 19
Online Operation .............................................................................................................................. 20
Diagnostic Function .......................................................................................................................... 21
Control Function ............................................................................................................................... 22
Exercise 6: Configuring the Drive with the Assistant ......................................................................... 23
Exercise 7: Changing the Ramp-up and Ramp-down Times ............................................................. 24
Exercise 8: Using the Control Panel ................................................................................................. 25
Exercise 9: Calling the Diagnostic Function ...................................................................................... 26

SITRAIN Training for ST-PRO2


Automation and Drives Page 1 Data Exchange with MM 420
Data Exchange with MM 440 using Profibus

SIMATIC S7 Date: 26.08.2007


SITRAIN Training for
Automation and Drives
Siemens AG 2004. All rights reserved. File: PRO2_07E.2

Contents Page
If You Want to Know More ............................................................................................................... 27
Exercise 10: Configuration of the MM420 using PPO Type 1 as an Example ................................. 28
Communication with PPO Type 1 .................................................................................................... 29
Reading Consistent Data of a DP-normslave with SFC 14 .............................................................. 30
Writing Consistent Data to DP-normslaves with SFC 15 ................................................................. 31
PKW Mechanism for Processing Parameters ................................................................................. 32
Tables for Request IDs and Response IDs .................................................................................. 33
Exercise 11: Configuration Example for the PKW Mechanism ........................................................ 34

SITRAIN Training for ST-PRO2


Automation and Drives Page 2 Data Exchange with MM 420
Objectives

At the end of the chapter the participant will ...

... know the parameter-assignment of the Profibus interface


... know the principle of data exchange between S7 and Micromaster
... develop a simple program for data communication between the S7-CPU
and Micromaster
… use the system functions SFC 14 and SFC 15 for data communication

SIMATIC S7 Date: 26.08.2007


SITRAIN Training for
Automation and Drives
Siemens AG 2004. All rights reserved. File: PRO2_07E.3

SITRAIN Training for ST-PRO2


Automation and Drives Page 3 Data Exchange with MM 420
Main Tasks of Master-Slave Communication

Master-Slave Communication
Reading and writing of parameters Controlling the drive process
Reading out of fault and diagnostic values Permanent setting of control bits and setpoints
Reading and modifying function values Constant reading of status bits and actual values

Parameter data area (PKW) Process data area (PCD)

Size of the main setpoint


to the inverter
Source of the main setpoint Level of the control bits
Source of the control bit
Size of the main actual value
from inverter
Level of the status bits

How does data transmission take place?


• Only triggered if required • Fast and permanently triggered
• Freely accessible to all parameters • with fixed “wiring“ to the process

Cyclic
Acyclic

SIMATIC S7 Date: 26.08.2007


SITRAIN Training for
Automation and Drives
Siemens AG 2004. All rights reserved. File: PRO2_07E.4

Process Control: Fast data transmission of short data telegrams to all participating stations with the
maximum speed available on the bus. In drive systems these are typically setpoints,
control commands, status replys and actual values (measured values).
Operating Control: In addition to this permanently available data, there is data that is only needed in
particular cases. It would therefore be sensless to permanently put load on the bus if
this data is only needed once per hour or per day, for example, when starting up the
machine (Class 1 Master). Another reason for an expanded communication need could
be the commissioning, optimization or diagnosis of machine components from a central
location. In this case, (such as a fault) a detailed access of an Engineering Tool to the
system components or the drive is enabled. Since, as a rule, only one affected
device/component is directly addressed, this window is only made available once per
bus cycle for one bus station and not simultaneously for every station.
Cyclic Data Exchange:
Cyclic data exchange is used for fulfilling the requirements for a fast, permanent data
exchange.
Acyclical Data Traffic:
Acyclic data traffic is managed exclusively by the PROFIBUS-DP Master. However, it is
not triggered from there.
Triggering, that is, the trigger of a data transmission always occurs from the user
program during the acyclic communication between a Class 1 master and a slave. This
means that the user program decides whether a data exchange with a slave is
necessary or not based on further conditions. Only if required, is a data transmission
request then signalled to the DP master which then executes this request.

SITRAIN Training for ST-PRO2


Automation and Drives Page 4 Data Exchange with MM 420
Configuring a Profibus DP Master System

Reference to DRIVE ES Profile

SIMATIC S7 Date: 26.08.2007


SITRAIN Training for
Automation and Drives
Siemens AG 2004. All rights reserved. File: PRO2_07E.5

Distributed I/O All master systems consisting of a DP master and DP slaves that are connected
using a bus cable and that communicate via the PROFIBUS-DP protocol are
designated as distributed I/Os.

Setting Up DP Master To configure a master system, proceed as follows:


1. Select the Profibus interface X2 of your CPU and insert a master system
(Menu Insert Æ Master System)
2. The dialog box "Properties - PROFIBUS interface DP" is opened. In this
dialog you can define the following properties:
- set up a new PROFIBUS subnet or open an existing one
- set the properties of the PROFIBUS subnet (baud rate, etc.).
- define the PROFIBUS address of the DP master.
3. Acknowledge the settings with "OK". The "bus line" appears as the symbol for
the DP master system. This line is used as a "hanger" for the DP slaves.

Note S7 CPUs that are used as DP master are typically known as Class 1 Masters in
the Profibus standard. That is, they exclusively take care of control tasks on the
Profibus network (cyclic services).
Programming devices and PCs on the Profibus network are known as Class 2
Masters because these devices can typically carry out functions for parameter
download, commissioning, monitoring etc. That is, the majority of the time they
conduct acyclic functions.

SITRAIN Training for ST-PRO2


Automation and Drives Page 5 Data Exchange with MM 420
Selecting the Command Source and Setpoint Channel
Control parameterizing path:
P0927 = 0000 0000 0000 1111 Status word -
Command Source
Bits 0 to 5
BOP/AOP keys 1

Internal sequence control system Micromaster


Digital inputs 2
USS Bus using RS232
4 Control word -
PC-inverter mounting set
USS from BOP Link 5 Bits 0 to 15

Communications module 6 P0700 =

Ramp-function Generator Control reference frequency:


Fixed frequencies Additional setpoint P2000 = 50 [Hz]
FF1 ... ...
... Setpoint
FF2 ... frequency
FF3 ... ...

Actual
Motor potentiometer 1 frequency
Starter
Analog setpoint 2
a Main setpoint
3
b
USS from BOP Link 4 Additional setpoint
Communication module 6 P1000 =

Setpoint Source P1000 = b, a

SIMATIC S7 Date: 26.08.2007


SITRAIN Training for
Automation and Drives
Siemens AG 2004. All rights reserved. File: PRO2_07E.6

Parameterizing Path The Parameter P927 defines with its 4 least significant bits which parameterzing paths
are enabled.
P927 = 0000 0000 0000 1111 means that the user can assign parameters to the
inverter either through the BOP, AOP, USS or PROFIBUS.

Command Sources 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 see the function diagrams at the back of the Micromaster Parameter
List.
In the following exercise examples, the definitions below have been made which you
can monitor 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"

Maximum Frequency The Parameter P1082 sets a maximum motor frequency [Hz] with which the motor
works independent of the frequency setpoint. That way, the output frequency is limited
if the setpoint exceeds the value of P1082.

Fixed Frequencies The fixed frequencies are selected through the terminal strip. By default, the digital
inputs are directly assigned to the fixed frequencies. For example, the digital input 4 (5)
activates the fixed frequency 4 (5).

Two Setpoints The setpoint can be formed by the addition of the main and the additional setpoint. This
is then output through a two-digit value, such as P1000 = 26: the analog additional
setpoint (2) plus the main setpoint from the communications module (6).

SITRAIN Training for ST-PRO2


Automation and Drives Page 6 Data Exchange with MM 420
Exercise 1: Reset to Factory Default

Parameter Value Comment Parameter Value Comment


P0010 30 Reset to P0010 1 Quick
Factory Default Commissioning
P0970 1 End P3900 1 End

Parameter Value Comment


P0010 0 Normal operation

S1 = Drive On/Off
S2 = Reverse direction of rotation
P0010 = Commissioning filter S3 = Acknowledge fault
P0970 = Reset to factory defaults H1 = Fault (is lit when there is no fault)
P3900 = End of quick commissioning P1 = Potentiometer for the frequency/speed

SIMATIC S7 Date: 26.08.2007


SITRAIN Training for
Automation and Drives
Siemens AG 2004. All rights reserved. File: PRO2_07E.7

Task First of all, carry out a Reset to Factory Default to establish a defined output 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.

Attention! 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 DP-Master failure.
Check and modify - if necessary – Parameter P2040 to a value greater than zero.

SITRAIN Training for ST-PRO2


Automation and Drives Page 7 Data Exchange with MM 420
Exercise 2: Setting the Command Source to Profibus, Ramp-up
Time, Ramp-down Time

Parameter number Value Comment


P0003 2 Expanded parameter access
P0700 6 Signal source Profibus
P1000 2 Setpoint from Potentiometer
P0918 6 Profibus address MM420
P1120 2.00 Ramp-up time 2 seconds
P1121 2.00 Ramp-down time 2 seconds

Setpoint before ramp-function generator: Setpoint after ramp-function generator:

Internally generated
Setpoint frequency Setpoint frequency ramp-function
50 Hz 50 Hz

t t
P1120 P1121

SIMATIC S7 Date: 26.08.2007


SITRAIN Training for
Automation and Drives
Siemens AG 2004. All rights reserved. File: PRO2_07E.8

Task The drive is to be assigned parameters in such a way that the control commands +
frequency setpoint 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 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.
Green flashing 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 ST-PRO2


Automation and Drives Page 8 Data Exchange with MM 420
Exercise 3: Configuring MM440 on the Profibus Network

Reference to DRIVE ES Profile

SIMATIC S7 Date: 26.08.2007


SITRAIN Training for
Automation and Drives
Siemens AG 2004. All rights reserved. File: PRO2_07E.9

Task Your training unit is to be expanded by the Micromaster MM 420 component on the
Profibus DP.

What to Do 1. Connect the Micromaster MM420 to the Profibus DP.


2. Under the condition that the "DriveES Basic" software tool is installed in the
SIMATIC Manager, select the "Drive ES" profile from the Hardware Catalog.
3. Link the MM420 to the Profibus master system. You will find the MM420 in the
Hardware Catalog Profile "Drive ES" Æ SIMOVERT Æ MICROMASTER 4 Æ
MICROMASTER 420 (see slide)
4. Assign parameters to the Micromaster MM420 using the following information:
- Device version: V1.0
- Profibus Address: 6
- PPO Type: PPO Type 3, PZD 2/2
- I / O Address: 56

5. Save, complile and download the configuration into the CPU.

6. Define a variable table with the following entries:


- Status word: IW56 "Status_Word_MM420"
- Control word QW56 "Control_Word_MM420"
- Actual frequency IW58 "Actual_Speed_MM420"
- Setpoint frequency QW58 "Setpoint_Speed_MM420"
Notes Features of an expanded normslave when Drive ES Basic is installed:
- the drive no longer appears detached in the S7 project.
- the "Starter" commissioning tool can be started directly from the SIMATIC Manager.
- common data management of SIMATIC and drives

SITRAIN Training for ST-PRO2


Automation and Drives Page 9 Data Exchange with MM 420
Exercise 4: Micromaster Test with “Monitor/Modify Variables“

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.10
1000 4096 12.5 337.50
500 1280 3.91 168.75

SIMATIC S7 Date: 26.08.2007


SITRAIN Training for
Automation and Drives
Siemens AG 2004. All rights reserved. File: PRO2_07E.10

Task You are to be able to interpret and analyze the replys (status word and main actual
value) of the MM420.

What to Do 1. Enter setpoints for the speed on the analog potentiometer and monitor the
corresponding parameters with the "Monitor/Modify Variables" tool.
2. Interpret the replys from the status word and the actual value. For the actual
value, the value 4000H equals a frequency of 50 Hz.
3. Save the variable table and exit the tool

SITRAIN Training for ST-PRO2


Automation and Drives Page 10 Data Exchange with MM 420
Configuration of the MM440, Example PPO Type 3

PPO Type 1: all parameters can PPO Type 3: only the setpoints
be changed can be changed

PKW PCD
PCD1 PCD2
PKE IND PWE STW1 MS PCD3 PCD4 PCD5 PCD6 PCD7 PCD8 PCD9 PCD10 PCD11 PCD12 PCD13 PCD14 PCD15 PCD16
ZSW1 MAV
1. 2. 3. 4. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16.
Word Word Word Word Word Word Word Word Word Word Word Word Word Word Word Word Word Word Word Word

PPO1
PKE = Process ID
PPO3 PWE = Process Value
STW = Control Word
ZSW = Status Word
Free MS = Main Setpoint
max. for MM420 MAV = Main Actual Value

SIMATIC S7 Date: 26.08.2007


SITRAIN Training for
Automation and Drives
Siemens AG 2004. All rights reserved. File: PRO2_07E.11

PPO Types The structure of the user data for the cyclic data exchange is called Parameter Process
data Object (PPO) in the PROFIBUS Profile "DVA".
The PPO Types 1 to 5 have a defined number of PKW and PCD words. You specify the
PPO type in the hardware configuration.
For MM 420, PPO types 1 or 3 are possible:

- PPO type 3 enables you to write a simple program for data transmission. As
setpoint, only the speed can be changed (data transmission with Load / Transfer
instructions)

- With PPO type 1 you can change all drive parameters (consistent data transmission
with the system functions SFC 14 and SFC 15).

SITRAIN Training for ST-PRO2


Automation and Drives Page 11 Data Exchange with MM 420
Communication with PPO Type 3

CPU MM 440

Control word
T QD 56 QD 56
Main setpoint
Profibus

L ID 56
Status word
ID 56
Main actual value

1. Consistent Useful Data are generated in a timely continuity and must also remain in this continuity during
transmission to the drive in order to guarantee an appropriate functioning of the
drive.

2. Load/Transfer Instructions can very quickly consistently transmit up to 2 words. For that reason, they are suitable
for the PCD area of PPO types 1 and 3.

3. System Functions SFC14/15 can also consistently transmit larger amounts of data. They are necessary for
the PKW area with 4 words and for all PCD lengths greater than 4 bytes.

SIMATIC S7 Date: 26.08.2007


SITRAIN Training for
Automation and Drives
Siemens AG 2004. All rights reserved. File: PRO2_07E.12

General Principle The PPO types are synonymus with the cyclic data exchange with drives. Their main
task is the transmission of fast process data between the automation and all drives
located on the bus.
Communication with the PPO Type 3 is a cyclical data exchange that is very easy to
program.
From the SIMATIC CPU, the control word and, if necessary, the main setpoint are sent
to the MM 420. In the response telegram, the MM 420 returns the status word and the
main actual value.
Since only a maximum of two words have to be transferred to the MM420, load and
transfer instructions suffice in the program. With the doubleword transfer, the data
consistency is also ensured.
Except for changing the setpoint speed, no other parameters can be modified. This is
only possible for the PPO Typ 1.

Control Word The control word contains 16 binary signals for controlling (ON/OFF, direction of
rotation) the drive. In our parameter assignment, the signals are transferred to the MM
420 with the instruction T QW 56.

Main Setpoint The main setpoint is the setpoint speed. If this is to be changed from the CPU, it takes
place together with the control word with the instruction T QD 56.

Note Control and status words conform to the regulations according to PROFIdrive Profile
Version 2.0 and Version 3.0 for the operating mode "Speed control".
The exact assignment is described on the following pages.

SITRAIN Training for ST-PRO2


Automation and Drives Page 12 Data Exchange with MM 420
Micromaster MM440: Control Word

Different Control Signals: Summary:


Binary Signals = Data Bits 16 bits = 1data word

In the internal sequence control system Micromaster


ON/OFF 1 Bit Function
0 ON/OFF 1
1 OFF 2
JOG right 2 OFF 3
3 Pulse Enable
6 digital 4 Ramp-function Gen. Enable
JOG left 5 Ramp-function Gen. Start
inputs
or 6 Setpoint Enable
fieldbus 7 Fault Acknowledge
OFF2 link 8 JOG right
eg. Profibus 9 JOG left
10 Control from PLC
Reverse 11 Reverse
12 ---
13 Motor Potentiometer up
Acknowledge fault 14 Motor Potentiometer down
“Outside world“

MICROMASTER

15 Command Data Set Bit 0

Display of Control Word in r0054

SIMATIC S7 Date: 26.08.2007


SITRAIN Training for
Automation and Drives
Siemens AG 2004. All rights reserved. File: PRO2_07E.13

Control Word 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 ramp-function
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 ST-PRO2


Automation and Drives Page 13 Data Exchange with MM 420
Micromaster MM440: Status Word

Different Control Signals: Summary:


Binary Signals = Data Bits 16 bits = 1 data word

From the internal sequence control system Micromaster


Bit Function
0 Drive ready
1 Drive ready to run
Drive ready to run 2 Drive Running
3 Drive fault active
3 digital 4 OFF2 active
Drive fault outputs 5 OFF3 active
or 6 ON inhibit active
Field bus 7 Drive warning active
Drive warning link 8 Deviation setpoint/act. value
eg. Profibus 9 PZD control
10 Max. Frequency reached
Motor Overload 11 Warning: Motor current limit
12 Motor holding brake active
13 Motor overload
14 Motor runs right
MICROMASTER
“Outside world“

15 Inverter overload

Display of Status Word in r0052

SIMATIC S7 Date: 26.08.2007


SITRAIN Training for
Automation and Drives
Siemens AG 2004. All rights reserved. File: PRO2_07E.14

Status Word 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 ST-PRO2


Automation and Drives Page 14 Data Exchange with MM 420
Control Word 1 and Status Word 1 according to PROFIdrive Profile

Example Example Slave >> Master


Master >> Slave
MM4: ON MM4: ON
BIN HEX Bit Mode Speed Control BIN HEX Bit Mode Speed Control
1 EÆF 0 ON/OFF 1 1 0 Drive ready
1 1 No OFF 2 1 1 Drive ready to run

7
1 2 No OFF 3 1 2 Drive operation enabled
1 3 Drive operation enabled 0 3 Fault
1 4 Ramp-function Generator Enable 0 4 No OFF 2
1 5 Ramp-function Generator Activate 0 5 No OFF 3
7

0
1 6 Setpoint Enable 0 6 Switch-on inhibit
0 7 Acknowledge 0 7 Warning
0 8 Jog right 0 8 Set/Act overload in tolerance band
0 9 Jog left 0 9 Control from PLC requested
4

4
1 10 Control from PLC 1 10 f/n achieved
0 11 Setpoint Invert 0 11 Warning Motor at current limit
0 12 Reserve 0 12 Motor holding brake
0 13 Motor Potentiometer up 0 13 Motor overload
0

0
0 14 Motor Potentiometer down 0 14 Motor runs right
0 15 Local/Remote Control 0 15 Inverter overload

The
The drive-specific
drive-specific bits
bits can
can be
be found
found in
in the
the instruction
instruction manuals
manuals of
of the
the respective
respective module.
module.

SIMATIC S7 Date: 26.08.2007


SITRAIN Training for
Automation and Drives
Siemens AG 2004. All rights reserved. File: PRO2_07E.15

General The two tables represent the assignment of control word and status word according to
the ProfiDrive Profile.

Note In so far as you want to experiment by supplying the bits in the control word with values
using the simulator switch, you can compensate the "Byte rotation" through the
instruction CAW:

SITRAIN Training for ST-PRO2


Automation and Drives Page 15 Data Exchange with MM 420
Exercise 5: Comunication with Micromaster MM440 (FB44)
Control word for Motor On:
Hex Bit Function
0 ON/OFF 1
F 1 OFF 2
2 OFF 3
3 Pulse Enable
4 Ramp-function Gen.Enable
Application Jump Distributor JL 5 Ramp-function Gen. Start
7
6 Setpoint Enable
7 Fault Acknowledge
8 JOG right
9 JOG left
4
10 Control from PLC
11 Reverse
12 ---
0 13 Motor Potentiometer up
14 Motor Potentiometer down
15 Command Data Set Bit 0

SIMATIC S7 Date: 26.08.2007


SITRAIN Training for
Automation and Drives
Siemens AG 2004. All rights reserved. File: PRO2_07E.16

Task The goal of this exercise is to write a parameter-assignable function block FB44 that
fulfills the control of the drive according to the following information and that uses the
jump distributor instruction JL to do so:

Variable: #Value: 0 Switch on motor


1 Motor counter-clockwise with 50Hz
2 Motor counter-clockwise with 25 Hz
3 Motor counter-clockwise with 12.5 Hz
4 Motor clockwise with 50 Hz
5 Motor clockwise with 25 Hz
6 Motor clockwise with 12.5 Hz
7 Drive coasts to a standstill, immediate pulse
inhibit
8 Fast stop with shortest braking time

What to Do 1. Use the simple Load and Transfer instructions in connection with the PPO Type 3.
2. Also ensure that the drive can be switched off at any time through the signal
#Motor_off.
3. Indicate the respective actual speed through the output parameter
#Actual_frequency.
4. Test your solution by specifying different values (test function: Modify Variable) in
MW 44. Specify the signal for fast switch off through the bit memory M 46.0.

Note In the multiproject "TIA_PRO2_Participant", S7 project "7_Micromaster_MM420" you


will find a PC-based ProTool/Pro project called "Ch7_Drive_PC" for visualizing the
given task.

SITRAIN Training for ST-PRO2


Automation and Drives Page 16 Data Exchange with MM 420

Вам также может понравиться