s7300 to drive mm440 communication.

nibay

Member
Join Date
Jul 2009
Location
delhi
Posts
42
hi Iam using s7300plc communicate with mm440 drive.
the communicate with each other but some data are not comming in hmi(current )iam sending the program of communication plese any body help me about this.
CALL FB 1 , DB24
IN0 :=PID360
IN1 :=DB30.DBD192
IN2 :=W#16#101B
IN3 :=W#16#1027
OUT4:=PQD360
OUT5:=DB30.DBD196
OUT6:=DB30.DBW200
CALL "DPWR_DAT"
LADDR :=W#16#160
RECORD :=P#DB30.DBX 200.0 BYTE 8
RET_VAL:=MW178
CALL "DPRD_DAT"
LADDR :=W#16#160
RET_VAL:=MW180
RECORD :=P#DB30.DBX 208.0 BYTE 8
CALL FB 2 , DB44
IN0 :=DB30.DBX197.2
IN1 :=DB30.DBX197.3
IN2 :=DB30.DBW198
IN3 :=DB30.DBD212
OUT4:=M50.0
OUT5:=M60.0
OUT6:=DB2.DBD96
OUT7:=DB2.DBD100
OUT8:=DB2.DBD104
in this program OUT 7 is used for current feed back in hmi but theay not comming. ifany parameter set in mm 440 drive for comming all data (PZD).
but the frequency feedback in hmi comming properly........



plese any body help me its urgent........
 
Why did you not include FB1 and FB2, we cant know if your FB2 is really writing right data to that Datablock dword.

Hate when ppl ask questions without all necessary data. Have you written that program yourself?

Have you looked if DPRD_DAT reads all data and ret_val does not show any error?

If show, have you looked that current is stored at right place at DB30?

With insufficient data you have provided, i would guess the problem lies within FB2.
 
FUNCTION_BLOCK FB 2
VERSION : 0.0

VAR_INPUT
IN0 : BOOL ;
IN1 : BOOL ;
IN2 : WORD ;
IN3 : REAL ;
END_VAR
VAR_OUTPUT
OUT4 : BOOL ;
OUT5 : BOOL ;
OUT6 : REAL ;
OUT7 : REAL ;
OUT8 : REAL ;
END_VAR
VAR_TEMP
TEMP9 : DINT ;
END_VAR
BEGIN
NETWORK
TITLE =
A #IN0;
= #OUT4;
A #IN1;
= #OUT5;
NETWORK
TITLE =
L #IN2;
T #TEMP9;
NOP 0;
NETWORK
TITLE =
L #TEMP9;
DTR ;
T #OUT6;
NOP 0;
NETWORK
TITLE =
A T 4;
JNB M001;
L #IN3;
T #OUT7;
M001: NOP 0;
NETWORK
TITLE =
A T 5;
JNB M002;
L #IN3;
T #OUT8;
M002: NOP 0;
END_FUNCTION_BLOCK


this is the program of fb 2
help me.
 
A T 4;
JNB M001;
L #IN3;
T #OUT7;
M001: NOP 0;

As you can see in your code OUT7 only will be updated
if Timer T4 is "true".
Is Timer T4 true?
What value do you have in DB30.DBD212 ?

Please use code Tags in your posts, like this:

Code:
A T 4; 
JNB M001; 
L #IN3; 
T #OUT7; 
M001: NOP 0;
 
You are reading the data from micromaster to DB30.DBB208 and onwards, DBW208 is statusword1, DBW210 is Actual Frequency, rest can be parametrised trough micromaster (if i recall right). So have you set micromaster to output the current to processdataword 3?
 
in which parameter in mm440????
I was set the actule current (r0027)in P2051 (index 3)inmm440 but nothing happend any.
 

Similar Topics

Hello everyone, One of our machine we use Siemens Cpu315-2dp. And this cpu communicate with 4 Lenze servo drives series 9300 via profibus. Also...
Replies
0
Views
184
How can I integrate my S7-300 Simatic with the IFM AS-i Master AC1335 and its slave IOs, such as 2411 and Airbox 2041, into Simatic Manager?
Replies
0
Views
122
Hi guys, I'm having problems converting WinAC (WinLC RTF F application) to S7 300 project based on CPU 319F-3PN or S7 400/416F-3PN. The problem is...
Replies
0
Views
621
Hi Any one here please helpmein simulation of s7 300 plc program with factory io. how to connect. plcsim 5 doesnot have option of s7 300 ..:
Replies
2
Views
1,015
Back
Top Bottom