Baldor MN1903 installation manual An introduction to closed loop control

Page 55

6.To remove the demand and stop the test, type:

STOP.0

This should cause the demand produced at the Demand 0 output to become 0V.

5.4.2An introduction to closed loop control

This section describes the basic principles of closed loop control. If you are familiar with closed loop control go straight to section 5.5.1.

When there is a requirement to move an axis, the NextMove PCI control software translates this into a demand output voltage. This is used to control the drive (servo amplifier) which powers the motor. An encoder or resolver on the motor is used to measure the motor’s position. Every 1ms* (adjustable using the LOOPTIME keyword) the NextMove PCI compares the demanded and measured positions. It then calculates the demand needed to minimize the difference between them, known as the following error.

This system of constant measurement and correction is known as closed loop control.

[For the analogy, imagine you are in your car waiting at an intersection. You are going to go straight on when the lights change, just like the car standing next to you which is called Demand. You’re not going to race Demand though - your job as the controller (NextMove PCI) is to stay exactly level with Demand, looking out of the window to measure your position ].

The main term that the NextMove PCI uses to correct the error is called Proportional gain (KPROP). A very simple proportional controller would simply multiply the amount of error by the Proportional gain and apply the result to the motor [ the further Demand gets ahead or behind you, the more you press or release the gas pedal ].

If the Proportional gain is set too high overshoot will occur, resulting in the motor vibrating back and forth around the desired position before it settles [ you press the gas pedal so hard you go right past Demand. To try and stay level you ease off the gas, but end up falling behind a little. You keep repeating this and after a few tries you end up level with Demand, travelling at a steady speed. This is what you wanted to do but it has taken you a long time ].

If the Proportional gain is increased still further, the system becomes unstable [ you keep pressing and then letting off the gas pedal so hard you never travel at a steady speed ].

To reduce the onset of instability, a term called Velocity Feedback gain (KVEL) is used. This resists rapid movement of the motor and allows the Proportional gain to be set higher before vibration starts. Another term called Derivative gain (KDERIV) can also be used to give a similar effect.

With Proportional gain and Velocity Feedback gain (or Derivative gain) it is possible for a motor to come to a stop with a small following error [ Demand stopped so you stopped too, but not quite level ].

The NextMove PCI tries to correct the error, but because the error is so small the amount of torque demanded might not be enough to overcome friction.

*The 1ms sampling interval can be changed using the LOOPTIME keyword to either 500µs or 200µs.

MN1903

Operation 5-13

Image 55
Contents NextMove PCI Motion Controller Page Contents Operation Appendices Iv Contents MN1903 General Information Precautions Safety NoticeMN1903 Introduction NextMove PCI featuresIntroduction MN1903 Catalog number PCI001 InstalledReceiving and inspection Identifying the catalog numberUnits and abbreviations PhaseTools and miscellaneous hardware Other information needed for installationIntroduction Hardware requirementsLocation requirements NextMove PCI Expansion card and can Bracket board InstallationThis completes the basic installation Installing the NextMove PCI cardBasic Installation MN1903 Outline 100-pin edge connectorPin Signal 1 100-pin connector pin assignment100-pin connector pin assignment Analog I/O Location Analog inputsPin Name MintMT keyword / description Analog input wiring, AIN0 shown Pin Name Description Analog outputs Drive Demand/CommandDigital I/O Input Common Breakout module connectorDigital input arrangement Stepperio Pin Name MintMT keyword Common Description Digital inputsINX.4 Digital input circuit fast interrupts Digital outputs OUTX.0 Encoder interfaces X12, X13, X14, X15 Other I/OEncoder input frequency Power Relay connections Relay and can powerPin X10 Name X11 Name Description Stepper drive outputs X10Cable length Maximum bit Resistance Conductor Rate Area Can Connections1 CAN1 CANopen 2 CAN2 Baldor can Baldor proprietary can interface using a RJ45 connectorEmulator connection Reset statesSystem watchdog Example minimum system wiring Connection summary minimum system wiringBreakout Pin Name Function This completes the input/output wiringModule Signal Connector Connector details for minimum system wiring shown in FigureInput / Output MN1903 Drivers\nmPCI\win9x Installing the driver software Windows 95, 98 and MEInstalling the driver software Windows Installing the driver software Windows NT\start Installing WorkBenchStarting WorkBench MN1903 Operation Operation MN1903 Help file WorkBenchChoosing an axis 1, 2, 3 and 4 axis cards Configuring an axisChoosing an axis 8 axis card Selecting a scale Setting the drive enable output Testing the drive enable output Testing the drive command output Servo axis testing and tuningAn introduction to closed loop control Summary, the following rules can be used as a guide NextMove PCI servo loop Selecting servo loop gains Servo axis tuning for current controlMN1903 Operation Underdamped response Underdamped responseOverdamped response Overdamped responseCritically damped ideal response Critically damped responseServo axis eliminating steady-state errors Calculating Kvelff Servo axis tuning for velocity controlKvelff Correct value of Kvelff Adjusting Kprop Correct value of Kprop JOG.0=2 Stepper axis testingDigital input configuration Digital input/output configurationDigital output configuration Saving setup information 10.1Loading saved information Operation MN1903 SupportMet feature Problem diagnosisStatus and can LEDs NextMove PCI indicatorsCommunication Symptom CheckMotor control Output polarity Mechanical specifications Digital inputs X1 Encoder interfaces X12 Relay output10CANopen interface Stepper outputs X1011Baldor can interface NextMove PCI Expansion card NextMove PCI Expansion cardExpansion Expansion card Axis numbering when using expansion cardsMain Expansion cards With no One 4-axis One 8-axis Two 4-axisExpansion card status LEDs CBL021-503 NextMove PCI Breakout moduleCatalog number Description PCI003-501 CBL021-501Catalog Description Number OPT025-508 Digital output modulesNextMove PC system adapter SparesBaldor can nodes OPT029-501 NextMove PCI can Bracket boardEncoder Splitter/Buffer board Catalog Description Number OPT008-501Accessories MN1903