How do you send 47E to the Micromaster

NoName

Member
Join Date
Sep 2003
Location
Domžale
Posts
273
Hello.

I have the following problem.
Basicly i wnat to send the following value 047F 1000 FB34 4000 to the micromaster when i press a key on the OP.(This will start the the motor to run forward with 50Hz)
The pressed key would set the M0.4 to "1" and then the motor should start. The problem is that i don't know how to write this function in STL.
I have an C7635OP
The micromaster is networked via profibus and it's addres is 4.It's "I" addres is 256...259(PEW) and "O" addres is 256...259(PAW).

Can someone please tell me how to do this.
I hope that I gave enough info and that it's clear what i want to do.

Thank you.
 
Here you go.




Network 1
A M 4.0//Start Logic
JNB _001
L W#16#47F
T PQW 256
_001: NOP 0


Network 2
AN M 4.0//Stop Logic
JNB _002
L W#16#47E
T PQW 256
_002: NOP 0
 
Hello.

I tried what you've done fore me JRW but when i press the button on the OP, nothing happens just the light on the inverter stops flashing green and goes solid.That means that the PLC and the inverter are comunicating if I'm right. So i realy don't know what i should do now. I tried to type this

A M 4.0//Start Logic
JNB _001
L W#16#047F1000FB344000
T PQW 256
_001: NOP 0

instead of this

Network 1
A M 4.0//Start Logic
JNB _001
L W#16#47F
T PQW 256
_001: NOP 0

But it doesn't work beacouse the word is too long i think.
If I am right i have to send the inverter wich frequency it has to work.
If someone know's how to do that i would be happy for any tips how to do that.

Beacouse if i would know how to do that it would realy open the door for me and compileing my project wouldn't be a problem anymore.

TNX.
 
>> L W#16#047F1000FB344000

What are you trying to do?????
I'm not 100%sure, but I think what happening is 4000 is sent to the drive and the other 12 digits are truncated.

JRW's code should have worked as is.

I am guessing at what you want to do.
47F Start drive
47E Stop drive

You are trying to send 1000hex the speed reference (25%, i think).. You should add:

L W#16#1000
T PQW258

As for FB344000, i don't know what you are doing unless you are using
2 additional control words. If that is so,,

L W#16#FB34
T PQW260

L W#16#4000
T PQW262

The drive will accept control words 3 & 4 only if it has been configured to do so.


-TDK
 
Hello NoName;
In order to start a MicroMaster drive, it has to see a rising edge on bit 0 of the control word (PQW256 in your case).

So you must MOVE the hex value w#16#047E to PQW 256, then MOVE w#16#047F to the same address in another network. This will set it to start running clockwise (w#16#447F will start it counterclockwise). Writing w#16#047E later will stop the drive. You must also send it a speed setpoint in PQW258; if you MOVE w#16#4000 to PQW258, you are requesting 100% of the maximum speed parametrized on the drive; w#16#2000 will request 50%, etc... Actually it would be best to write the speed setpoint before starting the drive.

What I generally would do is to create one (or more) FC block with all the necessary networks to control the drive, and call it (them) conditionally (in OB1 maybe) with the control bit from the operator panel.

Hope this helps,
Daniel Chartier
 
I undestand what i have to do now. I didn't know where to send the frequency set point. That was the main problem.

Thanks for all the help. I'll write back if I have any further questions. You guys have realy helped me out.
 
I have a question again.


I managed to make a program code wich spins th motor clockwise.

Netwotk 1:
A M 0.6
A I 125.7
JNB _001
L W#16#2000
T PQW 262
_001: NOP 0

Network 2:
A M 0.6
A I 125.7
JNB _002
L W#16#47F
T PQW 260
_002: NOP 0

Network 3:
A(
ON M 0.6
ON I 125.7
)
JNB _003
L W#16#47E
T PQW 260
_003: NOP 0
So far it works.

But when i try to add some code that would enable me to spin the motor couterclockwise with a different key (M0.7),it doesn't work.The added code look's like this.

Network 4(This code should spin the motor counterclockwise)
A M 0.7
A I 126.0
JNB _004
L W#16#2000
T PQW 262
_004: NOP 0

Network 5:
A M 0.7
A I 126.0
JNB _005
L W#16#C7F
T PQW 260
_005: NOP 0

Network 6:
A(
ON M 0.7
ON I 126.0
)
JNB _006
L W#16#47E
T PQW 260
_006: NOP 0


When i add this code, only the counterclokwise rotation works.The key wich would start the clockwise rotation doesn't have any effect. Does any one know what am i doing wrong???

Thanks i hope this is understandable what i'm trying to achive.
 
NoName -> Thanks for all the help. I'll write back if I have
NoName -> any further questions. You guys have realy
NoName -> helped me out

I'll send you a bill

As for the CCW problem,
I would examine the drive parameters, to look for a "clockwise only" or "reverse disable" setting.
 
Last edited:

Similar Topics

So I had an odd request from a customer for the above. I have written the logic and tested it all in one PLC with only using 7 outputs and 7...
Replies
15
Views
427
can the slc500 5/05 send a email and text over Ethernet ?
Replies
3
Views
185
Hello Friends I have took the sample program from AB webpage and modified, but I can only send 127 chars...
Replies
1
Views
180
I have followed the videos & still having issues getting the email out. Does anyone have knowledge or has sent an email notification via gp pro ex?
Replies
0
Views
193
Hi there! I have a question to a (maybe) simple issue that I hope some of you can help me with. I''ve made an FC containing the TCON, TDISCON...
Replies
13
Views
3,190
Back
Top Bottom