Table of Contents - TG Drives

Table of Contents - TG Drives Table of Contents - TG Drives

28.11.2012 Views

80 Reg, PID regulator GENERAL EXTENDED REGISTER GROUPS The regulator performs a central function in the system. It determines the torque needed to make the motor follow the speed and position commands at all times. It is a parallel PID type of regulator with several feed forward functions. It can be used in several configurations dependant on the applications characteristics. It operates with 1 kHz update rate. The output is a normalized value of the torque calculated each servo cycle. This output is then used by the commutation logic to create two sinusoidal currents. FUNCTION Reg.PosErr Reg.SpdErr Reg.IErr Reg.SpdErr Reg.TorqLim Reg.TorqPLim Reg.TorqNLim Reg.TorqTime Reg.TorqCLim Reg.PGain Reg.IGain Reg.DGain RELATED ITEMS Pg.Apos Pg.ASpeed EXAMPLE USAGE . Reg.TorqLim,8000 Reg.TorqCLim,2000 Reg.TorqTime,500 or Reg.Mode,64 . The inputs to the regulator are the command values for position, speed and acceleration. Each ms the difference between the command values and the actual values are calculated. The acceleration is used only for the feed forward parts. The position error is used in the Proportional and the Integral part, and the speed error is used in the Derivative part. The feed forward parts are Inertia compensation, Viscous friction, Static friction and Torque. These parts makes up the output which is passed trough a limiting function. There are three different limits, maximum positive torque (Reg.TorqPLim), maximum negative torque (Reg.TorqNLim) and maximum continuous torque (Reg.TorqLim). The output torque is always limited to the range bounded by Reg.TorqPLim and Reg.TorqNLim. If enabled, an additional function will limit the output to Reg.TorqLim. If the output has been larger than this limit for more than Reg.TorqTime [ms]. This can be seen as a dynamic torque limit. By adjusting these limits to proper values, the motor can be protected from excessive overheating, permitting the thermal sensor in the motor windings to be able to react fast enough. The gain and other tuning parameters must be calculated and/or established by testing for each application. Command value for position. Command value for speed. ;set maximum torque limit ;set continuos limit to 25 % ;allow 500 ms of max. torque ;activate dynamic torque limit User's Manual 5.1 Inmotion Technologies AB Doc. No.9032 0027 01 (B), Rev. 11.07.2001

EXTENDED REGISTER GROUPS GROUP MEMBERS (GROUP 6) Group.Member Member No Reg.Mode 0 0..255 R(W) Bit-defined, 1. Defines the integration modes of the regulator. Bit 0 and 1 are status bits, showing the internal regulator modes. When Bit3 is activated, the Reg.PGain value must be decreased or set to zero. If both Bit2 and Bit3 are activated (and for simplicity Reg.PGain = 0), we have a Position regulator with integration of position error and speed error. This has the effect of reducing the speed, which with the regulator returns the motor to the correct position after a large position error. The maximum return speed is calculated as (FS = SampleFrequency = 1000 Hz). Re g. SpdErr Re g . PErrLim = Re g. SiScale FS * 2 Thus, the maximum return speed can be calculated to: Re g. PErrLim FS Re g. SiScale 2 Bit0 (1) Integrate up enabled. R Bit1 (2) Integrate down enabled. R Bit2 (4) Integrate from limited Reg.PosErr. RW Bit3 (8) Integrate from unlimited Reg.SpdErr / FS * 2 Reg.SiScale RW Bit4 (16) Enable simple digital filter. RW Bit5 (32) Activates the Torque cam, Gear.Campos is used as SetTorq Bit6 (64) This bit is set to enable the use of Reg.TorqCLim. Bit7 (128) When this bit is set the result of the regulator is to be discarded. Bit2 = 0 Bit3 = 0 Reg.Pgain 0 Bit2 = 0 Bit3 = 0 Reg.Pgain = 0 Bit2 = 1 Bit3 = 0 Reg.PGain0 Bit2 = 0 Bit3 = 1 Reg.PGain = 0 Position regulator without integration. When both Bit2 and Bit3 are Zero and Reg.PGain is non-zero, the result is a position regulator without integration. Speed regulator without integration. When both Bit2 and Bit3 are Zero and Reg.PGain is zero, the result is a speed regulator without integration. Bit2 is activated when a position regulator with integration of position error is desired. Bit3 is activated when a velocity regulator with integration of speed error is desired. Reg.PGain 1 -2 31 ..2 31 -1 RW Reg, PID regulator Range Ability The Proportional or Position feedback gain of the regulator. A value of 1024 corresponds in 1 unit of Torque generated for 1 unit of position error. Limited by Firmware, not alarmed if a value is written, only a smaller value is read. User's Manual 5.1 Inmotion Technologies AB Doc. No.9032 0027 01 (B), Rev. 11.07.2001 81

EXTENDED REGISTER GROUPS<br />

GROUP MEMBERS (GROUP 6)<br />

Group.Member Member<br />

No<br />

Reg.Mode 0 0..255 R(W)<br />

Bit-defined, 1. Defines the integration modes <strong>of</strong> the regulator. Bit 0<br />

and 1 are status bits, showing the internal regulator modes. When<br />

Bit3 is activated, the Reg.PGain value must be decreased<br />

or set to<br />

zero. If both Bit2 and Bit3 are activated (and for simplicity<br />

Reg.PGain = 0), we have a Position regulator with integration <strong>of</strong><br />

position error and speed error. This has the effect <strong>of</strong> reducing the<br />

speed, which with the regulator returns the motor to the correct<br />

position after a large position error.<br />

The maximum return speed is calculated as<br />

(FS = SampleFrequency = 1000 Hz).<br />

Re g.<br />

SpdErr<br />

Re g . PErrLim = Re g.<br />

SiScale<br />

FS * 2<br />

Thus, the maximum return speed can be calculated to:<br />

Re<br />

g.<br />

PErrLim<br />

FS Re g.<br />

SiScale<br />

2<br />

Bit0 (1) Integrate up enabled. R<br />

Bit1 (2) Integrate down enabled. R<br />

Bit2 (4) Integrate from limited Reg.PosErr. RW<br />

Bit3 (8) Integrate from unlimited<br />

Reg.SpdErr / FS * 2 Reg.SiScale<br />

RW<br />

Bit4 (16) Enable simple digital filter. RW<br />

Bit5 (32) Activates the Torque cam, Gear.Campos is used as SetTorq<br />

Bit6 (64) This bit is set to enable the use <strong>of</strong> Reg.TorqCLim.<br />

Bit7 (128) When this bit is set the result <strong>of</strong> the regulator is to be discarded.<br />

Bit2 = 0<br />

Bit3 = 0<br />

Reg.Pgain 0<br />

Bit2 = 0<br />

Bit3 = 0<br />

Reg.Pgain = 0<br />

Bit2 = 1<br />

Bit3 = 0<br />

Reg.PGain0<br />

Bit2 = 0<br />

Bit3 = 1<br />

Reg.PGain = 0<br />

Position regulator without integration. When both Bit2 and Bit3 are<br />

Zero and Reg.PGain is non-zero,<br />

the result is a position regulator<br />

without integration.<br />

Speed regulator without integration. When both Bit2 and Bit3 are<br />

Zero and Reg.PGain is zero,<br />

the result is a speed regulator without<br />

integration.<br />

Bit2 is activated when a position regulator with integration <strong>of</strong> position<br />

error is desired.<br />

Bit3 is activated when a velocity regulator with integration <strong>of</strong> speed<br />

error is desired.<br />

Reg.PGain 1 -2 31 ..2 31 -1 RW<br />

Reg, PID regulator<br />

Range Ability<br />

The Proportional or Position feedback gain <strong>of</strong> the regulator. A value<br />

<strong>of</strong> 1024 corresponds in 1 unit <strong>of</strong> Torque generated for 1 unit <strong>of</strong><br />

position error. Limited by Firmware, not alarmed if a value is written,<br />

only a smaller value is read.<br />

User's Manual 5.1 Inmotion Technologies AB<br />

Doc. No.9032 0027 01 (B), Rev. 11.07.2001<br />

81

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!