Quantcast
Channel: Motion Control and Motor Drives topics
Viewing all 1315 articles
Browse latest View live

Atmega328p sending data through USB

$
0
0

I'm using the atmega328p (here is the atmega328p date sheet) and I would like to send data through the USB to use like the serial monitor in the arduino for code testing purposes, so I doesn't need an LCD to print data. I used USART when simulating my code in proteus, and I believe there is a similar approach using the data pins of the USB connector.


Documentation and examples Softmotion engine

$
0
0

I'm a student and writing my bachelor thesis and for which I need to configure a 3 axis motion system in LabVIEW. After having worked through a book for the basics of LabVIEW I would like to dive into the motion system. 
But I'm having trouble finding examples and documentation concerning the softmotion engine. 
When searching for examples with the search term "softmotion" the results are rather limited. I've found some getting started documentation, but that is also rather brief.

I must be missing something.

What would someone do who purchased the software package to achieve a similar goal. There must be some sort of tutorial or complete guide.

I would greatly appreciate some links or hints were I could find further information.

9512 Scan Engine Softmotion - Calculating Delay - Closed Loop

$
0
0

I am trying to follow the set-up guide here:

http://zone.ni.com/reference/en-XX/help/371093V-01/mclvhowto/howtoclosedloopstepper/

 

Scan Period is set to 10 ms currently.

 

When I command the axis is open loop mode with the feedback selected as NONE it works to get to position very nicely.  We need to run in closed loop though to know we are in the correct position.  When trying to tune per the above link, my Position Error never stabilizes, it just keeps going up and up.

 

Anything that might be causing that?  When we disable the axis and spin it one rev by hand it shows 1 rev in the position feedback - so the encoder counts/rev are correct.

 

9512 running an Applied Motion STR3 stepper drive, LabVIEW 2016, SoftMotion 2016

Motor drive, easy set up on LabView

$
0
0

Hello everyone,

 

I begginner in Labview, I know the bases and some Labview modul like NI-Visa communication.

 

I try to find motor drive which have an easy communication interface. That means with Labview driver or NI-Visa communication but I don't find suppliers which have motor drive available directly on LabView. So if you know supplier, manufacturer where I can find an easy motor drive communication with Labview please let me know.

 

Moreover, I did a lot of researchs with some manufacturers like Scheinder Electric and their motors drive have these following interfaces communication (I add some pictures to illustrate the language for the interfacecommunication, coming from the Schneider User Guide).

 

1-

  • PROFIBUS DP
  • CANopen DS301
  • RS 485    (RS 485 is equivalent to RS 232, so can we communicate with NI-VISA by a simple char ?)

Communication exemple, refer to 1 :

 

  • Default parameter values.PNG

positioning.PNG

 

 

 

 

2-

  • DeviceNet
  • EtherCAT
  • EtherNet/IP
  • Ethernet POWERLINK
  • Modbus TC

 

 

Communication exemple, refer to 2 :

 

exemple_ILS2.D-E-K-P-T.PNG

position-1.PNG

position-2.PNG

position-3.PNG

 

 

 

3-

  • Integrated I/O for motion sequence
  • Integrated pulse/direction 5 V
  • Integrated pulse/direction 24 V
  • Integrated pulse/direction 5 V RS422         (RS422 is like RS232 ?, Can I communicate with NI-Visa ??)

Communication exemple, refer to 3 :

 

ILS1.U-V-W.PNG

 

 

 

 

I don't understand their communications and their User Gudie, I don't know how can I translate that in LabView.

 

So if you have some recommendations or advices, I'm here to heard you, thank you.

 

Sincerely,

 

Aurélien Nicol

(I'm french, if you want to talk in french =)

 

 

 

bode plot for servo motor

$
0
0

hi help,

I am new to Bode plot. i understand what it means, but if i apply to real application, i messed up.

for servo system(servo driver to drive motor with typical A,B,C incremental encoder),

what i get from bode plot is a Gain vs frequency graph.

for example  -20db at 200Hz.

i get it means , at 200Hz, where the motor rotate at certain rpm. the  feedback amplitude/ input amplitude < 1. 

but how can feedback varies in Amplitude if it is ABC encoder?  

isn't it only vary in frequency? 

what is the use of amplitude in this case? 

PWM with NI 9264 using MATLAB

$
0
0

I am trying to generate a continuous background PWM signal using the analog output NI 9264 module. I am providing the code through MATLAB data acquisition toolbox. 

 

When I provide a vector with a constant value (for example, a vector of length 5000, with all values being 4V), the output is a constant 4V. However, when I pulse the signal (for example, a vector with 5000 values, alternating between high and low in groups of 50), the output shows either the high value or the low value, it does not show the PWM pulse train. 

 

Is there a way to achieve a constant PWM output using MATLAB?

SMD-7615 Read IOs

$
0
0

Hello!

I am using a SMD-7615 Ethernet Stepper Drive and try to read digital IO (X1 to X8).

Using invoke node "Read Digital Line" returns nonsense. X1 and X2 seem to be always correct, the rest however changes oddly. E.g. changing a High/Low level on X5 also affects X6 and X7 (but  there is no clear correlation).

However the Inputs X1-X8 displayed in "Drive Status Monitor" of "NI Stepper COnfiguration Utility" show the correct state.

We have the same behavior on 4 SMD-7615, so a faulty device seems unlikely.

 

How do I properly read the state of a digital input from LabVIEW?

 

Attached you find a test-VI and a screenshot of the Configuration Tool.

 

Regards Christoph

Position and torque control (Elevator application & counterbalance system)

$
0
0

Hello, Im Hafiz Alsree working on final-year project about development of counterbalance mechanism for aerospace application in Nanyang Polytechnic.

 

Description:

I will be controlling the elevator system with labVIEW programming based on positioning control of the servo motor.

But I have no experience with labVIEW programming and motion control but willing to learn to achieve my goal.

So, the servo motor will have a cable attached to a load to pull.

And, I need to develop an elevator application where I can control the position (For example: Controlling load position to go up or down with servo motor like an elevator)

 

I have a 1D straight line move labVIEW VI code attached, And I would like to have input control for position and speed of servo motor. 

Please advice and assist on:

How do I continue on the labVIEW VI code for my desired application?

How labVIEW can be set to control the servo motor through PCI-7342?

What is advisable on my step response plot to tune the PID control for my elevator application to pull 1kg load?

Do I need to set a specific torque of servo motor to pull the load?

 

Hardware used: 

AKD3e servo motor

AKD-P00306-NBAN-0000

UMI 7772

NI 7340

 

Software:

NI MAX

Kollmorgen Workbench

NI LabVIEW 2016

 

Please advice and assist.

 

Thank you.

 

Regards

Hafiz Alsree


How to make an Audio Amplifier

$
0
0

I am about to attempt make my first audio amplifier (beyond an LM386 amp). I chose the TDA2030A (dataheet of tda2030a). Since its a dangerous thing to do I chose an smps power supply, which is 24V and 2A. I have been training for this task for the last month and a half, learning to make PCBs etc. Yet realizing the nature of electronics, where there is always some piece of knowledge that is hiding in the bushes and that I wasn't aware of, I decided to ask the community some questions that will help me make this amplifier without killing myself in the process. Just for background, Electronics has been a hobby for the last 3 months and I am an Industrial Engineer myself.

  1. If you look at the circuit diagram, the amps use pin 1 as their non inverting input. In this diagram taken from the datasheet, the amp on the right has its non inverting connected to a resistor that is connected to ground. Both amps drive a single speaker. My question is that if I connect the right amp to the right audio channel and the left of the left audio channel, unlike shown in the diagram, can I drive two speaker? I don't see why it cant be done.

  2. For proper grounding, I create ground planes on my pcb. Then I need to make a hole in my PCB on the ground plane and connect it via wire to the Ground on the smps. Right? (am asking stupidly obvious questions just to know if I am right). Proper grounding seems the key to any proper functioning electronic circuit.

  3. Do I need to have a complex filtering system like capacitor for ripple etc? I ask this because this is smps purchased from the market, it would already have the required components.

  4. What is the V ADJ pin on my SMPS? How do I use it?

Thank you. Any help will go a long way in insuring a long life for me.

Looping move absolute position method - Thorlabs MLJ050 Motorized Lab Jack - Activex

$
0
0

I want to be able to specify an absolute position for the motor to go to and the number of steps to take, i.e. move a total of 20 mm in 2 steps, so the motor should move 10 mm, wait some amount of time, and move the last 10 mm. The user would specify the distance to move and the steps to take and then press a 'go' button. 

 

I am utilizing Thorlabs APT software (with LabVIEW 2016) with activeX methods: SetMoveAbsPos which sends a command to the MoveAbs method. However, I can't get the SetMoveAbsPos command to loop with the number of steps. With the attached VI, the behavior I am getting is that the position input from the user is updated every time the VI loops. For example, if the user inputs a position of 20 mm and do it in 2 steps (cycles), it will go to 10 mm, then moves to 5 mm, and then to 2.5 mm, etc. I have tried different positions (inside vs outside the for loop) for the SetMoveAbsPos command and I have tried to initialize the position control outside the loop but I don't get the results I want: either the motor moves to position/steps and doesn't loop or I get erratic behavior. 

 

Is there anyway to somehow loop the SetMoveAbsPos method for the number of steps I want without it updating the user input position value?

Can't show login message for IMS MDrive23plus motor

$
0
0

Thanks you all. Below is one my problem which I met for MDrive23plus SEM. The model is MDI1PRD23C7-EQ. 

 

I set up connection through USB to 485 cables between the motor and PC. Problem is that I can't see login message in terminal window (PC side). Thus I can't send commend to motor through that window.

Below is some observes.

1) The hot key Ctrl+C can get response from Motor. The current become very small and then become bigger which means system was restarted.

2) I typed command (in terminal window in PC), ctrl+j*PR PYctrl+j. The return value in input line is " " (Ascii code is 0x15). This is shown in attached  pic 2.  

3) I tried View -> Find Comm Settings, software can't detect communication rate. But there is response

under 115200 paud rate. This is shown in attached  pic 3.  

 

In windows device manager, the USB to 422 convertable cable is shown correctly.

It is strange and the motor can't run. I have tried different paud rates via manual set and also by automatic detect.

 

Anyone can hint me some clues?  I checked this issue with IMS agency. It was commented that this could be checksum issue.They suggested me to try command like  *FD+Alt  0+1+4+0. I am not sure if this works. I will try this later.

 

Thanks.

EtherCAT communication to a third party device using cRIO-9035 as Master

$
0
0

I try to use the cRIO-9035 as a EtherCat master and communicate to different EtherCAT slaves. I included them into my project as shown at the picture below. Now my question: How can i send now data and retrieve data from them. Especially from the device 3 and 4 where no objects are shown

2017-07-14 14_22_59-Untitled Project 1 _ - Project Explorer.png

 

 

How to configure MDrive23 Motion Control motor for CW/CWW signals

$
0
0

I am new to motion control, and am trying to interface a motor to a motor drive (already in a computer system) sending CW/CCW signals. Is it possible to configure any of the pins in a MDrive23 Motion Control motor to receive and translate CW+ CW- CCW+ CCW- signals? I have attached a datasheet that includes the pin layout. Other ideas are to convert the CW/CCW to step / dir, or use an Arduino to 'translate' the signal from driver to motor. Any ideas would be greatly appreciated.

 

Thanks!

 

JHenry

commutation for BLDC motor

$
0
0

Hi all,

 

Is the commutation pattern different for star and Delta connected Motor windings? I would like to know how will be the commutation pattern for Delta connected Motor. I tried the commutation pattern for the Motor(Delta construction) which I have now,but the Phase current waveform which I achieved is not impressive. I think the commutation pattern to be changed but I am not sure. Can anyone please answer it?

 

Thanks

Stepper motor drivers - Conflicting documentation, need some guidance.

$
0
0

Hi,

 

I'm a long time LabVIEW user, first time motor driver, looking for some guidance.

 

I want to control a stepper motor via ethernet using simple commands in Labview (e.g. Make x steps, Spin continuously at speed y).

I'm having a hard time finding out what hardware I need to get to achieve this by browsing the NI Store.

 

To amplify my headache, I've been finding conflicting information in the NI documentation. For example, for NI SMD-7613:

The manual says "You need the following to use your NI SMD-761x stepper drive: -a source of step signals, such as a PLC or motion controller" 

However, the quickstart guide makes no mention of either, and says to simply connect the device via ethernet to a pc and send off your command.

 

So to help me make sense of this, I have 2 small questions:

1) Can anyone confirm that no, I do not need a PLC or motion controller for the NI SMD-7613

2) Is there a different/cheaper NI module I could be using for these basic commands? The SMD-7613 comes with more bells and whistles then I need, but so far I haven't found anything cheaper from NI.

 

Thanks in advance,

 


Motion control device selection

$
0
0

Hello, Can anyone please suggest me motion control card to control Panansonic Minas A5 model servo motor? Currently we are using PCI 7390 but as we need to remove bulky CPU and use laptop. So please suggest me the product which we can control through ETHERNET or USB.

Odometry Inaccuracies

$
0
0

To be able to localise our robot position, we are trying to implement odometry in the wheels, but currently each wheel has a different initial time delay leading to inaccuracies. Do you have any suggestion to implement the odometry while considering the time delay?

RTSI-Bus Test NI 7334

$
0
0

I use one encoder phase of a 7334 via RTSI as external clock for NI PCIe 6341. The 6341 was damaged by overvoltage. I changed it. All motion functions off th 7334 seems to work. Only i have problems with the external clock on 6341. Is there any way to test the RTSI bus ?? May only the RTSI part of the 7334 be damaged?

Thanks Anita

How I find out the Board ID in MAX?

$
0
0

Hello,

 

I am trying to install my encoder via a PCI 7334. When I use e.g. Read Encoder Position I need to know the Board ID. Where do I get it from MAX? 

Capture.PNG

Comment trouver Board ID sur MAX?

$
0
0

Comment je peux trouver Board ID de la carte PCI 7334 sur MAX?

Capture.PNG

Viewing all 1315 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>