micro master configuring through profibus

13
Micromaster configuring through profibus Hi, I'm working with PLC S7 313C 2DP and with micromaster 420. I need to connect them via profibus but now when I'm trying to configure with Simatic Manager, I always get errors from the micromaster. I set the CB address on the micromaster through the P value P0918. I've given it there the address 3. So in my simatic manager, I say that mm is connected at profibus with profibus address 3. The dip switches on profibus module are all on 0 so the P-value is the main one. I download the configuration and get error on my PLC. I'm getting desperate here and hope someone can help me. regards FlatLiner FlatLiner View Public Profile Find More Posts by FlatLiner May 13th, 2004, 05:23 AM #2 JesperMP Member Quote: I always get errors from the micromaster.

Upload: vikramtambe

Post on 09-Apr-2015

242 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Micro Master Configuring Through Profibus

Micromaster configuring through profibus

Hi,

I'm working with PLC S7 313C 2DP and with micromaster 420.

I need to connect them via profibus but now when I'm trying to configure with Simatic Manager, I always get errors from the micromaster.

I set the CB address on the micromaster through the P value P0918. I've given it there the address 3. So in my simatic manager, I say that mm is connected at profibus with profibus address 3. The dip switches on profibus module are all on 0 so the P-value is the main one.

I download the configuration and get error on my PLC. I'm getting desperate here and hope someone can help me.

regardsFlatLiner

 

FlatLiner

View Public Profile

Find More Posts by FlatLiner

May 13th, 2004, 05:23 AM   #2

JesperMP Member

 

 Join Date: Feb 2003Location: Copenhagen.Posts: 8,172

Quote:

I always get errors from the micromaster.

Which error code(s) ?

Quote:

I download the configuration and get error on my PLC

Which error code(s) ?

Please provide details about the hardware configuration. __________________

Jesper

Page 2: Micro Master Configuring Through Profibus

 

JesperMP

View Public Profile

Visit JesperMP's homepage!

Find More Posts by JesperMP

May 18th, 2004, 04:14 AM   #3

FlatLiner Member

 Join Date: May 2004Posts: 4

Oh, sorry I wasn't that clear

Now, I have the mm connected with profibus (with help from a friend) and he wrote a little program so the engine starts running at 12.5.

OB1 looks like this but I dont understand it anymore and my friend left for holiday :'(

In Network 1:

CALL "RSE_FB" , "RSE_DB"

Network 2:

CALL "DPRD_DAT"LADDR :=W#16#100RET_VAL:=MW100RECORD :=P#M 0.0 BYTE 4

CALL "DPWR_DAT"LADDR :=W#16#100RECORD :=P#M 10.0 BYTE 4RET_VAL:=MW102

Network 3:

CALL "DPRD_DAT"LADDR :=W#16#104RET_VAL:=MW110RECORD :=P#M 20.0 BYTE 32

CALL "DPWR_DAT"LADDR :=W#16#104

Page 3: Micro Master Configuring Through Profibus

RECORD :=P#M 60.0 BYTE 32RET_VAL:=MW112

I download this into the PLC and if i go now through the VAT this is what is there:

MW 0 "Status_Word" HEX MW 2 "Act_freq" HEX MW 10 "Control_Word" HEX W#16#057FMW 6 "Setpoint" HEX W#16#1000M 11.0 "OFF1" BOOL

If i update the M11.0 BOOL to 1, the engine starts running at 12.5 (since 12.5 is 1000HEX I thought if I update the W#16#1000 to let us say W#16#2000 --> I think the engine should go running at 25 but the engine wont listen)

So for the moment, I only can let the engine running at 12.5.

Is it possible to give me a brief explanation of all the things he put in network 1,2 and 3 and how do I change the motor speed.

txFlatLiner

*EDIT* Before anyone ask after the symbol table, it looks like this

Act_freq MW 2 WORD ALARM_SC SFC 19 SFC 19 Query the Acknowledgment Status of the last ALARM_SQ Entering State MessageALARM_SQ SFC 17 SFC 17 Generate Block-Related Messages with AcknowledgmentControl_Word MW 10 WORD DIS_AIRT SFC 41 SFC 41 Delay the Higher Priority Interrupts and Asynchronous ErrorsDPNRM_DG SFC 13 SFC 13 Read Diagnostic Data of a DP SlaveDPRD_DAT SFC 14 SFC 14 Read Consistent Data of a Standard DP SlaveDPWR_DAT SFC 15 SFC 15 Write Consistent Data to a Standard DP SlaveEN_AIRT SFC 42 SFC 42 Enable Higher Priority Interrupts and Asynchronous ErrorsFault_Ack M 11.7 BOOL

Page 4: Micro Master Configuring Through Profibus

I/O_FLT1 OB 82 OB 82 I/O Point Fault 1OFF1 M 11.0 BOOL OFF2 M 11.1 BOOL OFF3 M 11.2 BOOL RACK_FLT OB 86 OB 86 Loss of Rack FaultRDSYSST SFC 51 SFC 51 Read a System Status List or Partial ListRSE_DB DB 49 FB 49 Diagnostic block for Report System ErrorRSE_FB FB 49 FB 49 Diagnostic block for Report System ErrorSetpoint MW 6 WORD Status_Word MW 0 WORD VAT_1 VAT 1

 

FlatLiner

View Public Profile

Find More Posts by FlatLiner

May 18th, 2004, 04:30 AM   #4

JesperMP Member

 

 Join Date: Feb 2003Location: Copenhagen.Posts: 8,172

If you are OK to send the entire project, then I would do that.Use the Archive function in STEP7 to create a compressed project file that can be posted on the forum.

The problem is that the Micromaster can be setup in many ways. Have you or your friend taken note of the settings you/he has altered in the Micromaster ?You need to know these settings to find out how the setpoint is configured. From what source ?Limits ?etc..

You could start to study the manuals for the Micromaster to find out about where and how the speed setpoint is setup. But prepare to put in an effort, because there are MANY settings. __________________

Jesper

 

JesperMP

Page 5: Micro Master Configuring Through Profibus

View Public Profile

Visit JesperMP's homepage!

Find More Posts by JesperMP

May 18th, 2004, 04:59 AM   #5

FlatLiner Member

 Join Date: May 2004Posts: 4

Tx for the quick answer. I will upload the archived project as soon as I get home (@ school now).

I've read through the manuals a lot and did some research on the inet but since I'm complete noob at PLC configuring/programming. Most of it is chinese for me

What you mean with settings altered on micromaster. Values changed areP0918 -> 7 (address for profibus)P0700 -> 6P1000 -> 6 (both for telling mm that working through profibus)P2040 -> 20 (sais in mm profibus manual that they recommend putting it on 20 so the drive can be stopped in case of error)P3900 -> 3 (in that same manual sais, finish of with this parameter putting it on 1 or 3 to calculate motor data)

 

FlatLiner

View Public Profile

Find More Posts by FlatLiner

May 18th, 2004, 05:04 AM   #6

JesperMP Member

 

 Join Date: Feb 2003Location: Copenhagen.

OK, you know how to enter settings ("parameters") on the MM.

There must be some parameters that define how the speed setpoint is configured. If it is some kind of standard setup, then there must be a description of this in the manual. Also try to look for some example STEP7 project that can help you out. __________________

Jesper

Page 6: Micro Master Configuring Through Profibus

Posts: 8,172

 

JesperMP

View Public Profile

Visit JesperMP's homepage!

Find More Posts by JesperMP

May 18th, 2004, 05:24 AM   #7

PLucas Member

 

 Join Date: Apr 2002Location: Gillingham KentPosts: 1,737

FlatLiner

Have a look at what data is contained in MB12 and MB13, going by what your friend has written this should be the set point word written to the drive, I state this because according to the information you gave us in the symbol table, M11.0 etc would be part of control word 1. So that means that network two is the network (using SFC15) that transfers the controlling data to the drive.

Using these SFC's to control the drive is a bit ellaborate, as you can acheive the same results just using a Load (L) and Transfer (T) command to the required PQW (output word), this is especially true for the two control words.

I am also a little bit confused, from what I remember the first four bytes written to the drive (in your case address 100 - 103) is data for the PKW area of the drive, or in English, the area of the drive where you can write to parameters to make changes to the way the drive behaves or is setup. The next 32 bytes (in your case address 104 - 135) is the area used for drive control, again the first two words being the important ones.

Perhaps someone could confirm this for me, (I can't find my notes on this)

Paul

P.S I think it's P443 for determining where the set point value comes from. __________________

Page 7: Micro Master Configuring Through Profibus

There are 10 types of people in this world..Those who understand binary and those who don't!

Last edited by PLucas; May 18th, 2004 at 05:46 AM.

 

PLucas

View Public Profile

Find More Posts by PLucas

May 18th, 2004, 06:22 AM   #8

PLucas Member

 

 Join Date: Apr 2002Location: Gillingham KentPosts: 1,737

Quote:

Originally posted by PLucas P.S I think it's P443 for determining where the set point value comes from.

No, I got it wrong!!

Perhaps I should have read the manual before I opened my mouth. banghead

It is P1000 for the source of the setpoint, this being set at 6 does select the CB card.

Paul __________________There are 10 types of people in this world..Those who understand binary and those who don't!

 

PLucas

View Public Profile

Find More Posts by PLucas

May 18th, 2004, 08:44 AM   #9

Greg Fowlds Member

These are settings I used on a recent job with Micromaster 430 drives.

P918 PB Address

Page 8: Micro Master Configuring Through Profibus

 

 Join Date: Apr 2004Location: Currently Waiheke Island, NZPosts: 56

P0003 3 P1000 6 P2012.0 4 P2012.1 4 P2051.0 52 P2051.1 21 P2051.2 27 P2051.3 53 P2040 0 P2041.2 1 P1110 0

Sending and reading directly from PIWxxx and PQWxxxSet SpeedL 4000T PQW302Set RunningL 1150T PQW300L 1151T PQW300

Reading speedL PIW 300T "Status word"L PIW302T "Speed"

Keep it simple untill it works.

 

Greg Fowlds

View Public Profile

Find More Posts by Greg Fowlds

May 19th, 2004, 01:15 AM   #10

FlatLiner Member

 Join Date: May 2004

Tx all for your help.

The archived project is attached with this msg Attached Files

microm.zip (271.5 KB, 81 views)

Page 9: Micro Master Configuring Through Profibus

Posts: 4

 

FlatLiner

View Public Profile

Find More Posts by FlatLiner

May 19th, 2004, 01:58 AM   #11

Peter Nachtwey Member

 

 Join Date: Apr 2002Location: Vancouver, WA, USSA, United Socialist States of AmericaPosts: 4,502

Doesn't the Micromaster require data consistency?

If so, then writing directly to the I/O is a bad idea.

 

Peter Nachtwey

View Public Profile

Visit Peter Nachtwey's homepage!

Find More Posts by Peter Nachtwey

May 19th, 2004, 02:15 AM   #12

PLucas Member

 

 

Re: Doesn't the Micromaster require data consistency?

Quote:

Originally posted by Peter Nachtwey If so, then writing directly to the I/O is a bad idea.

Peter

Page 10: Micro Master Configuring Through Profibus

Join Date: Apr 2002Location: Gillingham KentPosts: 1,737

That maybe so, but you do get four bytes of consistant data when using the load and transfer functions, so for the two control words that is fine.

Paul __________________There are 10 types of people in this world..Those who understand binary and those who don't!