Table of Contents - TG Drives
Table of Contents - TG Drives Table of Contents - TG Drives
60 RD1, Resolver/Digital converter #1. EXTENDED REGISTER GROUPS error interrupt. Also when running routines in order to adjust the Rdx.singain this mode must be turned off. RD1.Mode=32 Automatic temperature compensation using SysIo.PWM0. When this mode is activated the resolver amplitude RD1.Ampl is monitored with the rate specified in SysIo.ChkTmr. The resolver excitation voltage (SysIo.PWM0) is changed in order to maintain a RD1.Ampl value as specified in RD1.ChkNom. No change is made until the difference exceeds the value in RD1.ChkThreshold. In the case the RD1.Ampl falls below RD1.ChkLowLim or we have reached the max/min adjustment then a resolver error interrupt is generated and a reason code is stored in RD1.ChkErr. ♦ Warning. If you use this mode make sure that any PL code that manipulates SysIo.PWM0 is removed. Additional bits: b7 (128) Set CCW rotation. Note. When used as the commutation source, in order to change the motor rotation, you also need to change the rotation definition on the motor. See Rotation definition change. RD1.Pos 1 -2 31 ..2 31 -1 R The 32-bit extended position in ”increments”, where an electrical turn on the resolver (2-pole) equals 8192 (or 65536) increments. Resolution is approx. 2000-4000 increments/turn or 2-4 increments. RD1.Speed 2 -2 31 ..2 31 -1 R Speed of the resolver in increments-per-second. Resolution is approximately 2000-4000 increments-per-second. RD1.Ampl 3 0..32767 R i The combined amplitude of SIN and COS signals from the resolver. This value is used to adjust the phase of the sample/hold signal so that the SIN and COS signals are sampled at their maximum (10000 to 16000). If this value exceeds 16000, the A/D inputs are overloaded and the accuracy drastically decreases. If the value is less than 15000, the accuracy decreases proportional to the signal level. The content of the SysIo.PWM0 register affects both resolver #1 and #2; since both resolvers are driven from the same excitation circuit. RD1.SHAdj 4 -150..150 RW Sample/Hold phase adjustment. (Time offset for sample/hold signal in microseconds.) This value is used to adjust the phase of the sample/hold signal so that the SIN and COS signals are sampled at their maximum, and thereby the RD1.Ampl reaches its maximum value. At this adjustment, the RD1 is tuned to User's Manual 5.1 Inmotion Technologies AB Doc. No.9032 0027 01 (B), Rev. 11.07.2001
EXTENDED REGISTER GROUPS RD1.FiltSpeed 5 RD1, Resolver/Digital converter #1. perform accurately up to 30000 rpm for a 2-pole (single speed) resolver. If the RD1.Ampl maximum exceeds 16000 and the corresponding resolver is to be used at low speeds only (maximum of 500-1000 rpm for a 2-pole resolver), this value may be detuned to decrease RD1.Ampl below 16000. Not implemented RD1.RPos 6 -2 31 ..2 31 -1 R Relative position counter. Rd1.Rpos = Rd1.pos – Rd1-PosOffs RD1.SinOffs 7 -16384..16383 RW In High-speed mode, these values are the RD-electronics offset calibration values. The offset values are subtracted from the A/D input values to give SysIo.RD1Sin and SysIo.RD1Cos. RD1.CosOffs 8 -16384..16383 RW In High-speed mode, these values are the RD-electronics offset calibration values. The offset values are subtracted from the A/D input values to give SysIo.RD1Sin and SysIo.RD1Cos. RD1.AmplAdj 9 -1..1 R !! This is done more efficiently by using automatic correction!! The result from the resolver monitoring performed with the rate set by SYSIO.ChkTMR. If RD1.Ampl < 15500 then RD1.AmplAdj = -1 If RD1.Ampl > 16000 then RD1.AmplAdj = 1 If RD2.Ampl < 8000 then RD1.AmplAdj = 0 If the resolver interrupt is enabled, the RD1.AmplAdj can be used to modify the SysIo.PWM0 in order to keep the RD1.Ampl within the range 15500 to 16000 by just adding the value to SysIo.PWM0. RD1.SinGain 10 -4096 .. +4096 Sine/cosine gain compensation. To be used in high-resolution mode. This is aprox. +-12.5 % adjustment. -4096 -12.5 % less 0 unity (100%) 4096 12.5 % larger This member is used to compensate gain errors between the sine and the cosine amplifier. The value can be found by rotating the motor while searching the SysIo.RD1Sin maximum and SysIo.RD1Cos maximum (preferably in a PL program), then calculate as; ⎛ sin max* 32768 ⎞ RD 1. SinGain = 32768 − ⎜ ⎟ ⎝ cos max ⎠ User's Manual 5.1 Inmotion Technologies AB Doc. No.9032 0027 01 (B), Rev. 11.07.2001 61
- Page 9: Creating/Editing Source Code ......
- Page 12 and 13: 12 System architecture register val
- Page 14 and 15: 14 B002 Timing and execution flow T
- Page 16 and 17: 16 Function Block Diagram SOFTWARE
- Page 18 and 19: 18 Function Block Diagram Figure 5.
- Page 20 and 21: 20 Function Block Diagram Function
- Page 22 and 23: 22 Load a new firmware release SOFT
- Page 24 and 25: 24 User's Manual 5.1 Inmotion Techn
- Page 26 and 27: 26 Argument types executing results
- Page 28 and 29: 28 Mnemonic Operators PL2 NATIVE PO
- Page 30 and 31: 30 Compiler Symbols PL2 NATIVE POSI
- Page 32 and 33: 32 Compiler directives PL2 NATIVE P
- Page 34 and 35: 34 Compiler directives Warnings: No
- Page 36 and 37: 36 Spline function compilation dire
- Page 38 and 39: 38 Multiline Macro MACRO DEFINITION
- Page 41 and 42: PL2 Mnemonics GENERAL The general f
- Page 43 and 44: PL2 MNEMONICS Standard set Mnemonic
- Page 45 and 46: PL2 MNEMONICS TRACE RELATED MNEMONI
- Page 47 and 48: PL2 MNEMONICS Indexed Addressing Mn
- Page 49 and 50: PL2 MNEMONICS If r_length < r_Membe
- Page 51 and 52: PL2 MNEMONICS Text mode \000 Intern
- Page 53 and 54: Extended register groups INTRODUCTI
- Page 55 and 56: EXTENDED REGISTER GROUPS STACK HAND
- Page 57 and 58: EXTENDED REGISTER GROUPS RD1, Resol
- Page 59: EXTENDED REGISTER GROUPS RD1, Resol
- Page 63 and 64: EXTENDED REGISTER GROUPS RD2, Resol
- Page 65 and 66: EXTENDED REGISTER GROUPS RD2, Resol
- Page 67 and 68: EXTENDED REGISTER GROUPS RD2.ChkLow
- Page 69 and 70: EXTENDED REGISTER GROUPS Pos Inc Pr
- Page 71 and 72: EXTENDED REGISTER GROUPS Pg.ASpeed
- Page 73 and 74: EXTENDED REGISTER GROUPS MOTOR, MOT
- Page 75 and 76: EXTENDED REGISTER GROUPS 2-Pole: 81
- Page 77 and 78: EXTENDED REGISTER GROUPS Motor.Base
- Page 79 and 80: EXTENDED REGISTER GROUPS REG, PID R
- Page 81 and 82: EXTENDED REGISTER GROUPS GROUP MEMB
- Page 83 and 84: EXTENDED REGISTER GROUPS Positive T
- Page 85 and 86: EXTENDED REGISTER GROUPS Reg, PID r
- Page 87 and 88: EXTENDED REGISTER GROUPS Gear.Incr
- Page 89 and 90: EXTENDED REGISTER GROUPS GROUP MEMB
- Page 91 and 92: EXTENDED REGISTER GROUPS Gear, Elec
- Page 93 and 94: EXTENDED REGISTER GROUPS TMR, SYSTE
- Page 95 and 96: EXTENDED REGISTER GROUPS Tmr, Syste
- Page 97 and 98: EXTENDED REGISTER GROUPS RELATED IT
- Page 99 and 100: EXTENDED REGISTER GROUPS SysIo.ADC1
- Page 101 and 102: EXTENDED REGISTER GROUPS Bit10 (102
- Page 103 and 104: EXTENDED REGISTER GROUPS INT, INTER
- Page 105 and 106: EXTENDED REGISTER GROUPS Bit2 (4) =
- Page 107 and 108: EXTENDED REGISTER GROUPS Int, Inter
- Page 109 and 110: EXTENDED REGISTER GROUPS IN, DIGITA
60<br />
RD1, Resolver/Digital converter #1.<br />
EXTENDED REGISTER GROUPS<br />
error interrupt. Also when running routines in order to<br />
adjust the Rdx.singain this mode must be turned <strong>of</strong>f.<br />
RD1.Mode=32 Automatic temperature compensation using SysIo.PWM0.<br />
When this mode is activated the resolver amplitude RD1.Ampl<br />
is monitored with the rate specified in SysIo.ChkTmr. The<br />
resolver excitation voltage (SysIo.PWM0) is changed in order<br />
to maintain a RD1.Ampl value as specified in RD1.ChkNom. No<br />
change is made until the difference<br />
exceeds the value in RD1.ChkThreshold.<br />
In the case the RD1.Ampl falls below RD1.ChkLowLim or we<br />
have reached the max/min adjustment then a resolver error<br />
interrupt is generated and a reason code is stored in<br />
RD1.ChkErr.<br />
♦ Warning. If you use this mode make sure that any PL<br />
code that manipulates SysIo.PWM0 is removed.<br />
Additional bits:<br />
b7 (128) Set CCW rotation.<br />
Note. When used as the commutation source, in order to<br />
change the motor rotation, you also need to change the<br />
rotation definition on the motor. See Rotation definition<br />
change.<br />
RD1.Pos 1 -2 31 ..2 31 -1 R<br />
The 32-bit extended position in ”increments”, where an<br />
electrical turn on the resolver (2-pole) equals 8192 (or 65536)<br />
increments.<br />
Resolution is approx. 2000-4000 increments/turn or 2-4<br />
increments.<br />
RD1.Speed 2 -2 31 ..2 31 -1 R<br />
Speed <strong>of</strong> the resolver in increments-per-second. Resolution is<br />
approximately 2000-4000 increments-per-second.<br />
RD1.Ampl 3 0..32767 R<br />
i<br />
The combined amplitude <strong>of</strong> SIN and COS signals from the<br />
resolver. This value is used to adjust the phase <strong>of</strong> the<br />
sample/hold signal so that the SIN and COS signals are<br />
sampled at their maximum (10000 to 16000). If this value<br />
exceeds 16000, the A/D inputs are overloaded and the<br />
accuracy drastically decreases. If the value is less than 15000,<br />
the accuracy decreases proportional to the signal level.<br />
The content <strong>of</strong> the SysIo.PWM0 register affects both<br />
resolver #1 and #2; since both resolvers are driven from<br />
the same excitation circuit.<br />
RD1.SHAdj 4 -150..150 RW<br />
Sample/Hold phase adjustment. (Time <strong>of</strong>fset for sample/hold<br />
signal in microseconds.) This value is used to adjust the phase<br />
<strong>of</strong> the sample/hold signal so that the SIN and COS signals are<br />
sampled at their maximum, and thereby the RD1.Ampl reaches<br />
its maximum value. At this adjustment, the RD1 is tuned to<br />
User's Manual 5.1 Inmotion Technologies AB<br />
Doc. No.9032 0027 01 (B), Rev. 11.07.2001