Controling Axis1 Speed with Virtual Axis & MAG instruction

mallorz

Member
Join Date
Oct 2011
Location
W
Posts
61
I am very new to programming Motion and am able to program a motor to spin (not that I understand all the parameters). The training kit that I am working with has a potentiometer that I have programmed to change the speed. However, this is not done "live." When the speed changes, in order for the motor to react you must re-push the start button.

I heard that you can use a virtual axis with a Motion Axis Gear instruction to control the Axis1 speed by making the virtual axis the "master". However, the error bit on my MAG instruction is constantly true. I have changed around some of the inside parameters to no avail. When programming, I referenced the Motion Reference Manual from the Rockwell website.

Can anyone give me some tips or ideas? I am really just doing this for my own benefit. My program is very simple, features MAH, MAS, and MAJ.
 
A couple comments (without seeing your program, I can't do much more).

1. A servo does exactly what it's told to do. If you tell it to Jog at a particular speed, it will jog at that speed until told to do something else. The jog command executes exactly once when the command goes true. Turning the MAJ false does not stop the motor from jogging - you must send a stop command. Similarly, if you want to change speeds, you need to give it another command(it does not constantly check for a new jog speed - it follows the speed that you told it to go when the MAJ command executed). The MCD (Motion Change Dynamics) works well to change the speed. Note, you would need to monitor your reference speed (pot?) and re-issue the MCD command everytime the reference speed changes.

2. Don't know what you're doing wrong with the MAG - just guessing - did you create a virtual axis? ie. it should be listed under your motion group as an axis.

Good luck
 
I tried using a MCD initally, you can see the speed changing on the screen but the motor does not react to the change. How do you link the two together? I am also using a Scale with Parameters (SCP) instruction to control my potentiometer.

Michael - This may be a dumb question, but I don't really understand Extended Error Codes. From where are you supposed to retrieve that value?
 
I got it to work with using an MCD.

I put the MCD in front of the MAJ and then made a branch that skips over the original input instructions with the Axis1_MCD.DN bit to transition the state of the rung again to send a signal that checks for a change in status.

It's a bit sketchy because it is constatnly transitioning and probably not an ideal method but it works. Satisfies me enough!
 
MAJ

I use something similar to the following rung for continuously changing speed reference

NEQ --------------|/|-----|------ MAJ
Speedref MAJ.EN | Speed Ref
LastMAJRef |
|--MOV
SpeedRef
LastMAJRef



When the reference changes perform a MAJ providing that last scan you did not perform the MAJ
 

Similar Topics

Hallo together, I am new to the interfacing of PLC with Indra drive. I would like to control motor via Indra Drive through PLC. Need an example...
Replies
0
Views
2,205
Hello to everybody! This time I need to make a program to control temperature ... Some help? I don't know how to use an analog module, I'm just...
Replies
1
Views
1,838
Hey, I am using a CompactLogix L32E, and trying to control my input module(1769-IQ16 (which is 24VDC sink/source)), using a Panel view 700 HMI. I...
Replies
1
Views
2,237
Hello All: I am just starting on a new machine. It has a Yaskawa MP2310siec controller and 5) V1000 drives (and lots of other stuff). The V1000's...
Replies
1
Views
2,572
hi guys, im using q series , GxWork 2 , ladder Programm i got 14 modules connected. Station 12- Aj65sbt-AD , Connect with 2 Diffrential...
Replies
0
Views
1,388
Back
Top Bottom